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

Function JsonQuote

tools/enum_parser/enum_parser/main.cpp:59–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static inline TString JsonQuote(const TString& s) {
60 TString quoted = s;
61 JsonEscape(quoted);
62 return "\"" + quoted + "\""; // do not use .Quote() here, it performs escaping!
63}
64
65
66/// Simplifed JSON map encoder for generic types

Callers 2

OutKeyFunction · 0.85
OutItemFunction · 0.85

Calls 1

JsonEscapeFunction · 0.85

Tested by

no test coverage detected