Returns the hexadecimal value contained in the char. Precondition: IsHex(ch)
| 948 | |
| 949 | // Returns the hexadecimal value contained in the char. Precondition: IsHex(ch) |
| 950 | char ParseHexUnchecked(char ch) { |
| 951 | if ('0' <= ch && ch <= '9') return ch - '0'; |
| 952 | if ('A' <= ch && ch <= 'F') return ch - ('A' - 10); |
| 953 | if ('a' <= ch && ch <= 'f') return ch - ('a' - 10); |
| 954 | #if defined(__GNUC__) |
| 955 | __builtin_unreachable(); |
| 956 | #endif |
| 957 | } |
| 958 | |
| 959 | // Returns true if the given file URI is decodable (i.e. not malformed), and false otherwise. |
| 960 | // If this function returns true, then `out` will be populated with the length of the decoded URI |
no outgoing calls
no test coverage detected