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

Method GetStringRobust

library/cpp/json/writer/json_value.cpp:624–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622 }
623
624 TString TJsonValue::GetStringRobust() const {
625 switch (Type) {
626 case JSON_ARRAY:
627 case JSON_MAP:
628 case JSON_BOOLEAN:
629 case JSON_DOUBLE:
630 case JSON_INTEGER:
631 case JSON_UINTEGER:
632 case JSON_NULL:
633 case JSON_UNDEFINED:
634 default: {
635 NJsonWriter::TBuf sout;
636 sout.WriteJsonValue(this);
637 return sout.Str();
638 }
639 case JSON_STRING:
640 return Value.String;
641 }
642 }
643
644 bool TJsonValue::GetBoolean(bool* value) const noexcept {
645 if (Type != JSON_BOOLEAN) {

Callers 15

PatchMethod · 0.45
DiffFunction · 0.45
ParseJsonMethod · 0.45
Y_UNIT_TESTFunction · 0.45
Y_UNIT_TESTFunction · 0.45
OutputResultsMethod · 0.45
get_keysFunction · 0.45
dumpFunction · 0.45
dump_feature_namesFunction · 0.45
PlainJsonToOptionsMethod · 0.45
LoadMethod · 0.45
WriteMethod · 0.45

Calls 2

WriteJsonValueMethod · 0.45
StrMethod · 0.45

Tested by

no test coverage detected