MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / sax_parse

Function sax_parse

3rd/nlohmann_json/single_include/nlohmann/json.hpp:24553–24562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24551 template <typename InputType, typename SAX>
24552 JSON_HEDLEY_NON_NULL(2)
24553 static bool sax_parse(InputType&& i, SAX* sax,
24554 input_format_t format = input_format_t::json,
24555 const bool strict = true,
24556 const bool ignore_comments = false)
24557 {
24558 auto ia = detail::input_adapter(std::forward<InputType>(i));
24559 return format == input_format_t::json
24560 ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
24561 : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
24562 }
24563
24564 template<class IteratorType, class SAX>
24565 JSON_HEDLEY_NON_NULL(3)

Callers 1

acceptMethod · 0.70

Calls 4

input_adapterFunction · 0.70
parserFunction · 0.70
sax_parseMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected