MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / sax_parse

Function sax_parse

lesson6-Segmentation/json.hpp:23291–23300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23289 template <typename InputType, typename SAX>
23290 JSON_HEDLEY_NON_NULL(2)
23291 static bool sax_parse(InputType&& i, SAX* sax,
23292 input_format_t format = input_format_t::json,
23293 const bool strict = true,
23294 const bool ignore_comments = false)
23295 {
23296 auto ia = detail::input_adapter(std::forward<InputType>(i));
23297 return format == input_format_t::json
23298 ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
23299 : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
23300 }
23301
23302 template<class IteratorType, class SAX>
23303 JSON_HEDLEY_NON_NULL(3)

Callers 1

acceptMethod · 0.85

Calls 4

input_adapterFunction · 0.85
sax_parseMethod · 0.80
parserFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected