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

Class TFromHexZeroTerm

library/cpp/string_utils/quote/quote.cpp:24–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23namespace {
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]))
38 return '%';
39 ui8 c = 0;
40
41 GETSBXC;
42 GETSBXC;
43 return c;
44 }
45 };
46
47 class TFromHexLenLimited {
48 public:

Callers 1

CGIUnescapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected