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

Function sax_parse

3rd/nlohmann_json/include/nlohmann/json.hpp:7052–7061  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7050 template <typename InputType, typename SAX>
7051 JSON_HEDLEY_NON_NULL(2)
7052 static bool sax_parse(InputType&& i, SAX* sax,
7053 input_format_t format = input_format_t::json,
7054 const bool strict = true,
7055 const bool ignore_comments = false)
7056 {
7057 auto ia = detail::input_adapter(std::forward<InputType>(i));
7058 return format == input_format_t::json
7059 ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
7060 : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
7061 }
7062
7063 template<class IteratorType, class SAX>
7064 JSON_HEDLEY_NON_NULL(3)

Callers 1

acceptMethod · 0.50

Calls 4

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

Tested by

no test coverage detected