MCPcopy Create free account
hub / github.com/catboost/catboost / HexToChar

Function HexToChar

library/cpp/tokenizer/nlpparser.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 inline char HexToChar(char h) {
27 Y_ASSERT(isxdigit(h));
28 return (
29 h >= 'a' ? h - 'a' + 10 : h >= 'A' ? h - 'A' + 10 : h >= '0' ? h - '0' : 0);
30 }
31}
32
33#ifdef ROBOT_OLDTOK

Callers 1

ExecuteMethod · 0.85

Calls 1

isxdigitFunction · 0.50

Tested by

no test coverage detected