MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / parse

Method parse

tests/autotester/json11.hpp:940–950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938};
939
940Json Json::parse(const string &in, string &err, JsonParse strategy) {
941 JsonParser parser { in, 0, err, false, strategy };
942 Json result = parser.parse_json(0);
943
944 // Check for any trailing garbage
945 parser.consume_garbage();
946 if (parser.i != in.size())
947 return parser.fail("unexpected trailing " + esc(in[parser.i]));
948
949 return result;
950}
951
952// Documented in json11.hpp
953vector<Json> Json::parse_multi(const string &in,

Callers

nothing calls this directly

Calls 4

escFunction · 0.85
parse_jsonMethod · 0.80
consume_garbageMethod · 0.80
failMethod · 0.80

Tested by

no test coverage detected