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

Method parse_impl

benchmark/sonic.hpp:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 public:
140 using node_type = NodeType;
141 bool parse_impl(std::string_view json, SonicParseResult<NodeType> &pr) const {
142 // sonic_json::Parser<NodeType> parser;
143 // auto ret = parser.Parse(json.data(), json.size(), pr.doc);
144 pr.doc.Parse(json.data(), json.size());
145 if (pr.doc.HasParseError()) {
146 return false;
147 }
148 return true;
149 }
150};
151
152using SonicDynParseResult = SonicParseResult<sonic_json::DNode<>>;

Callers

nothing calls this directly

Calls 2

ParseMethod · 0.80
HasParseErrorMethod · 0.80

Tested by

no test coverage detected