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

Function HexDigit

library/cpp/yson/writer.cpp:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 // Copied from <util/string/escape.cpp>
17 namespace {
18 inline char HexDigit(char value) {
19 Y_ASSERT(value < 16);
20 if (value < 10)
21 return '0' + value;
22 else
23 return 'A' + value - 10;
24 }
25
26 inline char OctDigit(char value) {
27 Y_ASSERT(value < 8);

Callers 1

EscapeCFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected