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

Method x2c

library/cpp/string_utils/quote/quote.cpp:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 class TFromHexZeroTerm {
25 public:
26 static inline char x2c(const char*& x) {
27 if (!IsAsciiHex((ui8)x[0]) || !IsAsciiHex((ui8)x[1]))
28 return '%';
29 ui8 c = 0;
30
31 GETXC;
32 GETXC;
33 return c;
34 }
35
36 static inline char x2c(TStringBuf& x) {
37 if (!IsAsciiHex((ui8)x[0]) || !IsAsciiHex((ui8)x[1]))

Callers 1

UnescapeFunction · 0.45

Calls 1

IsAsciiHexFunction · 0.85

Tested by

no test coverage detected