MCPcopy Create free account
hub / github.com/Mixaill/FakePDB / sax_parse

Method sax_parse

src_cpp/include/nlohmann/json.hpp:10265–10280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10263 template<typename SAX>
10264 JSON_HEDLEY_NON_NULL(2)
10265 bool sax_parse(SAX* sax, const bool strict = true)
10266 {
10267 (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
10268 const bool result = sax_parse_internal(sax);
10269
10270 // strict mode: next byte must be EOF
10271 if (result && strict && (get_token() != token_type::end_of_input))
10272 {
10273 return sax->parse_error(m_lexer.get_position(),
10274 m_lexer.get_token_string(),
10275 parse_error::create(101, m_lexer.get_position(),
10276 exception_message(token_type::end_of_input, "value")));
10277 }
10278
10279 return result;
10280 }
10281
10282 private:
10283 template<typename SAX>

Callers 9

sax_parseFunction · 0.80
basic_json from_cborFunction · 0.80
from_cborFunction · 0.80
basic_json from_msgpackFunction · 0.80
from_msgpackFunction · 0.80
basic_json from_ubjsonFunction · 0.80
from_ubjsonFunction · 0.80
basic_json from_bsonFunction · 0.80
from_bsonFunction · 0.80

Calls 3

createFunction · 0.85
get_token_stringMethod · 0.80
parse_errorMethod · 0.45

Tested by

no test coverage detected