MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / IsHex

Function IsHex

extern/nfd/nfd_portal.cpp:945–947  ·  view source on GitHub ↗

Returns true if ch is in [0-9A-Za-z], false otherwise.

Source from the content-addressed store, hash-verified

943
944// Returns true if ch is in [0-9A-Za-z], false otherwise.
945bool IsHex(char ch) {
946 return ('0' <= ch && ch <= '9') || ('A' <= ch && ch <= 'F') || ('a' <= ch && ch <= 'f');
947}
948
949// Returns the hexadecimal value contained in the char. Precondition: IsHex(ch)
950char ParseHexUnchecked(char ch) {

Callers 1

TryUriDecodeLenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected