MCPcopy Create free account
hub / github.com/apache/brpc / CharToDigit

Function CharToDigit

src/butil/strings/string_number_conversions.cc:105–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103};
104
105template<int BASE, typename CHAR> bool CharToDigit(CHAR c, uint8_t* digit) {
106 return BaseCharToDigit<CHAR, BASE, BASE <= 10>::Convert(c, digit);
107}
108
109// There is an IsWhitespace for wchars defined in string_util.h, but it is
110// locale independent, whereas the functions we are replacing were

Callers

nothing calls this directly

Calls 1

ConvertClass · 0.85

Tested by

no test coverage detected