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

Method GetStringRobust

library/cpp/json/ordered_maps/json_value_ordered.cpp:667–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665 }
666
667 TString TJsonValue::GetStringRobust() const {
668 switch (Type) {
669 case JSON_ARRAY:
670 case JSON_MAP:
671 case JSON_BOOLEAN:
672 case JSON_DOUBLE:
673 case JSON_INTEGER:
674 case JSON_UINTEGER:
675 case JSON_NULL:
676 case JSON_UNDEFINED:
677 default: {
678 NJsonOrderedWriter::TBuf sout;
679 sout.WriteJsonValue(this);
680 return sout.Str();
681 }
682 case JSON_STRING:
683 return Value.String;
684 }
685 }
686
687 NJson::TJsonValue TJsonValue::GetNonOrderedJsonValue() const {
688 NJson::TJsonValue res;

Callers 2

Y_UNIT_TESTFunction · 0.45
Y_UNIT_TESTFunction · 0.45

Calls 2

WriteJsonValueMethod · 0.45
StrMethod · 0.45

Tested by

no test coverage detected