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

Method Prettify

library/cpp/json/json_prettifier.cpp:264–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262 };
263
264 bool TJsonPrettifier::Prettify(TStringBuf in, IOutputStream& out) const {
265 TPrettifier p(out, *this);
266 if (Strict) {
267 TMemoryInput mIn(in.data(), in.size());
268 return ReadJson(&mIn, &p);
269 } else {
270 return ReadJsonFast(in, &p);
271 }
272 }
273
274 TString TJsonPrettifier::Prettify(TStringBuf in) const {
275 TStringStream s;

Callers 3

PrettifyJsonFunction · 0.80
CompactifyJsonFunction · 0.80
Y_UNIT_TESTFunction · 0.80

Calls 4

ReadJsonFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45
StrMethod · 0.45

Tested by

no test coverage detected