Commit ac385bd8a6

Meghan <hello@nektro.net>
2023-05-10 16:46:58
std.fmt.parseIntSizeSuffix: add R and Q
https://www.nist.gov/pml/owm/metric-si-prefixes https://www.npl.co.uk/si-prefix
1 parent cd7e2bf
Changed files (1)
lib
lib/std/fmt.zig
@@ -1925,6 +1925,8 @@ pub fn parseIntSizeSuffix(buf: []const u8, radix: u8) ParseIntError!usize {
         'E' => 6,
         'Z' => 7,
         'Y' => 8,
+        'R' => 9,
+        'Q' => 10,
         else => 0,
     };
     var without_suffix = without_i;