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

Function WrapJsonToCallback

library/cpp/json/writer/json.cpp:491–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489 }
490
491 TString WrapJsonToCallback(const TBuf& buf, TStringBuf callback) {
492 if (!callback) {
493 return buf.Str();
494 } else {
495 return TString::Join(callback, "(", buf.Str(), ")");
496 }
497 }
498
499 TBufState TBuf::State() const {
500 return TBufState{NeedComma, NeedNewline, Stack};

Callers 1

Y_UNIT_TESTFunction · 0.50

Calls 2

JoinFunction · 0.50
StrMethod · 0.45

Tested by

no test coverage detected