| 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 | |
| 151 | using Rapidjson = RapidjsonGeneric<rapidjson::ParseFlag::kParseNoFlags>; |
nothing calls this directly
no test coverage detected