Lines Matching defs:sax

161     bool sax_parse(SAX* sax, const bool strict = true)
164 const bool result = sax_parse_internal(sax);
169 return sax->parse_error(m_lexer.get_position(),
180 bool sax_parse_internal(SAX* sax)
197 if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1))))
205 if (JSON_HEDLEY_UNLIKELY(!sax->end_object()))
215 return sax->parse_error(m_lexer.get_position(),
219 if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string())))
227 return sax->parse_error(m_lexer.get_position(),
242 if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1))))
250 if (JSON_HEDLEY_UNLIKELY(!sax->end_array()))
270 return sax->parse_error(m_lexer.get_position(),
275 if (JSON_HEDLEY_UNLIKELY(!sax->number_float(res, m_lexer.get_string())))
285 if (JSON_HEDLEY_UNLIKELY(!sax->boolean(false)))
294 if (JSON_HEDLEY_UNLIKELY(!sax->null()))
303 if (JSON_HEDLEY_UNLIKELY(!sax->boolean(true)))
312 if (JSON_HEDLEY_UNLIKELY(!sax->number_integer(m_lexer.get_number_integer())))
321 if (JSON_HEDLEY_UNLIKELY(!sax->string(m_lexer.get_string())))
330 if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(m_lexer.get_number_unsigned())))
340 return sax->parse_error(m_lexer.get_position(),
354 return sax->parse_error(m_lexer.get_position(),
385 if (JSON_HEDLEY_UNLIKELY(!sax->end_array()))
400 return sax->parse_error(m_lexer.get_position(),
413 return sax->parse_error(m_lexer.get_position(),
418 if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string())))
426 return sax->parse_error(m_lexer.get_position(),
439 if (JSON_HEDLEY_UNLIKELY(!sax->end_object()))
454 return sax->parse_error(m_lexer.get_position(),