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

Method parse_multi

tests/autotester/json11.hpp:953–965  ·  view source on GitHub ↗

Documented in json11.hpp

Source from the content-addressed store, hash-verified

951
952// Documented in json11.hpp
953vector<Json> Json::parse_multi(const string &in,
954 string &err,
955 JsonParse strategy) {
956 JsonParser parser { in, 0, err, false, strategy };
957
958 vector<Json> json_vec;
959 while (parser.i != in.size() && !parser.failed) {
960 json_vec.push_back(parser.parse_json(0));
961 // Check for another object
962 parser.consume_garbage();
963 }
964 return json_vec;
965}
966
967/* * * * * * * * * * * * * * * * * * * *
968 * Shape-checking

Callers

nothing calls this directly

Calls 2

parse_jsonMethod · 0.80
consume_garbageMethod · 0.80

Tested by

no test coverage detected