MCPcopy Create free account
hub / github.com/audacity/audacity / HexCharToNum

Function HexCharToNum

libraries/lib-string-utils/HexHelpers.h:20–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18{
19
20inline uint8_t HexCharToNum (char c) noexcept
21{
22 assert (std::isxdigit (c) != 0);
23
24 if ('0' <= c && c <= '9')
25 return c - '0';
26 else if ('A' <= c && c <= 'F')
27 return c - 'A' + 10;
28 else if ('a' <= c && c <= 'f')
29 return c - 'a' + 10;
30
31 return 0;
32}
33
34}

Callers 2

readByteFunction · 0.85
UrlDecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected