MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / HexDigitToInt

Function HexDigitToInt

internal/strings.cc:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35constexpr char kHexTable[] = "0123456789abcdef";
36
37constexpr int HexDigitToInt(char x) {
38 if (x > '9') {
39 x += 9;
40 }
41 return x & 0xf;
42}
43
44constexpr bool IsOctalDigit(char x) { return x >= '0' && x <= '7'; }
45

Callers 1

UnescapeInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected