MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / parse

Method parse

python-package/compile/src/io/json11.cpp:729–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727} // namespace
728
729Json Json::parse(const string &in, string &err, JsonParse strategy) {
730 JsonParser parser { in, 0, err, false, strategy };
731 Json result = parser.parse_json(0);
732
733 // Check for any trailing garbage
734 parser.consume_garbage();
735 if (parser.failed)
736 return Json();
737 if (parser.i != in.size())
738 return parser.fail("Unexpected trailing " + esc(in[parser.i]));
739
740 return result;
741}
742
743// Documented in json11.hpp
744vector<Json> Json::parse_multi(const string &in,

Callers

nothing calls this directly

Calls 6

escFunction · 0.70
JsonClass · 0.50
parse_jsonMethod · 0.45
consume_garbageMethod · 0.45
sizeMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected