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

Function DigitToChar

util/string/hex.h:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <util/system/yassert.h>
6
7inline static char DigitToChar(unsigned char digit) {
8 if (digit < 10) {
9 return (char)digit + '0';
10 }
11
12 return (char)(digit - 10) + 'A';
13}
14
15extern const char* const Char2DigitTable;
16

Callers 1

HexEncodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected