MCPcopy Create free account
hub / github.com/apache/arrow / ParseHexDigit

Function ParseHexDigit

cpp/src/arrow/util/string.cc:76–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74constexpr uint8_t kInvalidHexDigit = -1;
75
76constexpr uint8_t ParseHexDigit(char c) {
77 if (c >= '0' && c <= '9') return c - '0';
78 if (c >= 'A' && c <= 'F') return c - 'A' + 10;
79 return kInvalidHexDigit;
80}
81
82Status ParseHexValue(const char* data, uint8_t* out) {
83 uint8_t high = ParseHexDigit(data[0]);

Callers 1

ParseHexValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected