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

Function OutItem

tools/enum_parser/enum_parser/main.cpp:96–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94/// Simplifed JSON map encoder for array items
95template<typename T>
96void OutItem(IOutputStream& out, const T& value, bool escape = true) {
97 TString quoted = ToString(value);
98 if (escape) {
99 quoted = JsonQuote(quoted);
100 }
101 out << quoted << ",\n";
102}
103
104/// Cut trailing ",\n" or ","
105static inline void FinishItems(TStringStream& out) {

Callers 2

GenerateEnumFunction · 0.85
mainFunction · 0.85

Calls 2

JsonQuoteFunction · 0.85
ToStringFunction · 0.50

Tested by

no test coverage detected