| 114 | }; |
| 115 | |
| 116 | class YYjson : public JsonBase<YYjson, YYjsonParseResult> { |
| 117 | public: |
| 118 | bool parse_impl(std::string_view json, YYjsonParseResult &pr) const { |
| 119 | pr.doc = yyjson_read(json.data(), json.size(), 0); |
| 120 | // yyjson_mut_doc *docm = yyjson_doc_mut_copy(pr.doc, NULL); |
| 121 | if (pr.doc == NULL) { |
| 122 | return false; |
| 123 | } |
| 124 | return true; |
| 125 | } |
| 126 | }; |
| 127 | |
| 128 | #endif |
nothing calls this directly
no outgoing calls
no test coverage detected