MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / sax_parse

Method sax_parse

extern/json/json.hpp:12263–12277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12261 template<typename SAX>
12262 JSON_HEDLEY_NON_NULL(2)
12263 bool sax_parse(SAX* sax, const bool strict = true)
12264 {
12265 (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
12266 const bool result = sax_parse_internal(sax);
12267
12268 // strict mode: next byte must be EOF
12269 if (result && strict && (get_token() != token_type::end_of_input))
12270 {
12271 return sax->parse_error(m_lexer.get_position(),
12272 m_lexer.get_token_string(),
12273 parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr));
12274 }
12275
12276 return result;
12277 }
12278
12279 private:
12280 template<typename SAX>

Callers 10

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_bjdataFunction · 0.80
basic_json from_bsonFunction · 0.80
from_bsonFunction · 0.80

Calls 3

get_token_stringMethod · 0.80
createFunction · 0.70
parse_errorMethod · 0.45

Tested by

no test coverage detected