# fmt: allow uppercase prefix to be parsed in std.fmt.parseInt\(\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/77e5b042a084e227515e68d8baca5258c2019eaf)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 77e5b042a084e227515e68d8baca5258c2019eaf

Requested commit: 77e5b042a084e227515e68d8baca5258c2019eaf

Commit: 77e5b042a084e227515e68d8baca5258c2019eaf

Tree: 37fba97bd9953e6d0d55ee8446823099d236304c

Author: iddev5

Committer: Jakub Konka

## Message

```
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.

```

## Parents

- [5283a52af565521094bcd1186efc179b4be7ee8c](https://git.cafe/gitcafe/zig/commit/5283a52af565521094bcd1186efc179b4be7ee8c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/77e5b042a084e227515e68d8baca5258c2019eaf?format=markdown)
