aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriddev5 <ayushbardhan5@gmail.com>2022-02-15 23:11:52 +0530
committerJakub Konka <kubkon@jakubkonka.com>2022-02-16 11:27:10 +0100
commit77e5b042a084e227515e68d8baca5258c2019eaf (patch)
tree37fba97bd9953e6d0d55ee8446823099d236304c /test
parent5283a52af565521094bcd1186efc179b4be7ee8c (diff)
downloadzig-77e5b042a084e227515e68d8baca5258c2019eaf.tar.gz
zig-77e5b042a084e227515e68d8baca5258c2019eaf.zip
fmt: allow uppercase prefix to be parsed in std.fmt.parseInt()
std.fmt.parseHexFloat allow both 0x and 0X as prefix, so in order to keep things consistent. This commit modifies std.fmt.parseWithSign to check for the prefix case insensitively in order to allow both upper case and lower case prefix. This change now allows: 0O, 0B and 0X as prefixes for parsing.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions