std.fmt.parseIntSizeSuffix: add R and Q

https://www.nist.gov/pml/owm/metric-si-prefixes

https://www.npl.co.uk/si-prefix
This commit is contained in:
Meghan 2023-05-10 07:46:58 -07:00 committed by Veikka Tuominen
parent cd7e2bf57a
commit ac385bd8a6

View File

@ -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;