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

Function WrapJsonToCallback

library/cpp/json/ordered_maps/json_ordered.cpp:498–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496 }
497
498 TString WrapJsonToCallback(const TBuf& buf, TStringBuf callback) {
499 if (!callback) {
500 return buf.Str();
501 } else {
502 return TString::Join(callback, "(", buf.Str(), ")");
503 }
504 }
505
506 TBufState TBuf::State() const {
507 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