MCPcopy Create free account
hub / github.com/apache/kvrocks / HexDigitToInt

Function HexDigitToInt

src/common/string_util.cc:289–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289static int HexDigitToInt(const char c) {
290 if (c >= '0' && c <= '9') {
291 return c - '0';
292 } else if (c >= 'a' && c <= 'f') {
293 return c - 'a' + 10;
294 } else if (c >= 'A' && c <= 'F') {
295 return c - 'A' + 10;
296 }
297 return 0;
298}
299
300StatusOr<std::vector<std::string>> SplitArguments(std::string_view in) {
301 std::vector<std::string> arguments;

Callers 1

SplitArgumentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected