MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / parse_impl

Method parse_impl

benchmark/rapidjson.hpp:138–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 RapidjsonParseResult> {
137 public:
138 bool parse_impl(std::string_view json, RapidjsonParseResult &pr) const {
139#if RAPIDJSON_MINOR_VERSION > 0
140 pr.document.Parse<RapidjsonParseFlags>(json.data(), json.size());
141#else
142 pr.document.Parse<RapidjsonParseFlags>(json.data());
143#endif
144 if (pr.document.HasParseError()) {
145 return false;
146 }
147 return true;
148 }
149};
150
151using Rapidjson = RapidjsonGeneric<rapidjson::ParseFlag::kParseNoFlags>;

Callers

nothing calls this directly

Calls 1

HasParseErrorMethod · 0.80

Tested by

no test coverage detected