Lines Matching refs:sax
110 sax = sax_; in sax_parse()
151 … return sax->parse_error(chars_read, get_token_string(), parse_error::create(110, chars_read, in sax_parse()
173 if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1)))) in parse_bson_internal()
183 return sax->end_object(); in parse_bson_internal()
228 return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, in get_bson_string()
250 return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, in get_bson_binary()
280 …return get_number<double, true>(input_format_t::bson, number) && sax->number_float(static_cast<num… in parse_bson_element_internal()
287 …td::int32_t, true>(input_format_t::bson, len) && get_bson_string(len, value) && sax->string(value); in parse_bson_element_internal()
304 …td::int32_t, true>(input_format_t::bson, len) && get_bson_binary(len, value) && sax->binary(value); in parse_bson_element_internal()
309 return sax->boolean(get() != 0); in parse_bson_element_internal()
314 return sax->null(); in parse_bson_element_internal()
320 … return get_number<std::int32_t, true>(input_format_t::bson, value) && sax->number_integer(value); in parse_bson_element_internal()
326 … return get_number<std::int64_t, true>(input_format_t::bson, value) && sax->number_integer(value); in parse_bson_element_internal()
334 return sax->parse_error(element_type_parse_position, cr_str, in parse_bson_element_internal()
369 if (!is_array && !sax->key(key)) in parse_bson_element_list()
395 if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1)))) in parse_bson_array()
405 return sax->end_array(); in parse_bson_array()
454 return sax->number_unsigned(static_cast<number_unsigned_t>(current)); in parse_cbor_internal()
459 return get_number(input_format_t::cbor, number) && sax->number_unsigned(number); in parse_cbor_internal()
465 return get_number(input_format_t::cbor, number) && sax->number_unsigned(number); in parse_cbor_internal()
471 return get_number(input_format_t::cbor, number) && sax->number_unsigned(number); in parse_cbor_internal()
477 return get_number(input_format_t::cbor, number) && sax->number_unsigned(number); in parse_cbor_internal()
505 return sax->number_integer(static_cast<std::int8_t>(0x20 - 1 - current)); in parse_cbor_internal()
510 …return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_… in parse_cbor_internal()
516 …return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_… in parse_cbor_internal()
522 …return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_… in parse_cbor_internal()
528 …return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_… in parse_cbor_internal()
564 return get_cbor_binary(b) && sax->binary(b); in parse_cbor_internal()
599 return get_cbor_string(s) && sax->string(s); in parse_cbor_internal()
736 … return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, in parse_cbor_internal()
813 return get_cbor_binary(b) && sax->binary(b); in parse_cbor_internal()
823 return sax->boolean(false); in parse_cbor_internal()
826 return sax->boolean(true); in parse_cbor_internal()
829 return sax->null(); in parse_cbor_internal()
874 return sax->number_float((half & 0x8000u) != 0 in parse_cbor_internal()
882 …return get_number(input_format_t::cbor, number) && sax->number_float(static_cast<number_float_t>(n… in parse_cbor_internal()
888 …return get_number(input_format_t::cbor, number) && sax->number_float(static_cast<number_float_t>(n… in parse_cbor_internal()
894 return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, in parse_cbor_internal()
990 return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, in get_cbor_string()
1090 return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, in get_cbor_binary()
1105 if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len))) in get_cbor_array()
1131 return sax->end_array(); in get_cbor_array()
1143 if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len))) in get_cbor_object()
1156 if (JSON_HEDLEY_UNLIKELY(!get_cbor_string(key) || !sax->key(key))) in get_cbor_object()
1172 if (JSON_HEDLEY_UNLIKELY(!get_cbor_string(key) || !sax->key(key))) in get_cbor_object()
1186 return sax->end_object(); in get_cbor_object()
1333 return sax->number_unsigned(static_cast<number_unsigned_t>(current)); in parse_msgpack_internal()
1411 return get_msgpack_string(s) && sax->string(s); in parse_msgpack_internal()
1415 return sax->null(); in parse_msgpack_internal()
1418 return sax->boolean(false); in parse_msgpack_internal()
1421 return sax->boolean(true); in parse_msgpack_internal()
1436 return get_msgpack_binary(b) && sax->binary(b); in parse_msgpack_internal()
1442 …return get_number(input_format_t::msgpack, number) && sax->number_float(static_cast<number_float_t… in parse_msgpack_internal()
1448 …return get_number(input_format_t::msgpack, number) && sax->number_float(static_cast<number_float_t… in parse_msgpack_internal()
1454 return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number); in parse_msgpack_internal()
1460 return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number); in parse_msgpack_internal()
1466 return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number); in parse_msgpack_internal()
1472 return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number); in parse_msgpack_internal()
1478 return get_number(input_format_t::msgpack, number) && sax->number_integer(number); in parse_msgpack_internal()
1484 return get_number(input_format_t::msgpack, number) && sax->number_integer(number); in parse_msgpack_internal()
1490 return get_number(input_format_t::msgpack, number) && sax->number_integer(number); in parse_msgpack_internal()
1496 return get_number(input_format_t::msgpack, number) && sax->number_integer(number); in parse_msgpack_internal()
1556 return sax->number_integer(static_cast<std::int8_t>(current)); in parse_msgpack_internal()
1561 return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, in parse_msgpack_internal()
1644 return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, in get_msgpack_string()
1773 if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len))) in get_msgpack_array()
1786 return sax->end_array(); in get_msgpack_array()
1795 if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len))) in get_msgpack_object()
1804 if (JSON_HEDLEY_UNLIKELY(!get_msgpack_string(key) || !sax->key(key))) in get_msgpack_object()
1816 return sax->end_object(); in get_msgpack_object()
1937 …return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_mes… in get_ubjson_string()
2038 … return sax->parse_error(chars_read, get_token_string(), parse_error::create(113, chars_read, in get_ubjson_size_value()
2054 … return sax->parse_error(chars_read, get_token_string(), parse_error::create(113, chars_read, in get_ubjson_size_value()
2070 … return sax->parse_error(chars_read, get_token_string(), parse_error::create(113, chars_read, in get_ubjson_size_value()
2086 … return sax->parse_error(chars_read, get_token_string(), parse_error::create(113, chars_read, in get_ubjson_size_value()
2091 … return sax->parse_error(chars_read, get_token_string(), out_of_range::create(408, in get_ubjson_size_value()
2141 … return sax->parse_error(chars_read, get_token_string(), out_of_range::create(408, in get_ubjson_size_value()
2156 …return sax->parse_error(chars_read, get_token_string(), parse_error::create(113, chars_read, excep… in get_ubjson_size_value()
2180 …if (JSON_HEDLEY_UNLIKELY(!sax->start_object(3) || !sax->key(key) || !sax->start_array(dim.size()))) in get_ubjson_size_value()
2190 …return sax->parse_error(chars_read, get_token_string(), out_of_range::create(408, exception_messag… in get_ubjson_size_value()
2192 … if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(static_cast<number_unsigned_t>(i)))) in get_ubjson_size_value()
2198 return sax->end_array(); in get_ubjson_size_value()
2218 …return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_mes… in get_ubjson_size_value()
2247 return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, in get_ubjson_size_type()
2264 return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, in get_ubjson_size_type()
2273 … return sax->parse_error(chars_read, get_token_string(), parse_error::create(112, chars_read, in get_ubjson_size_type()
2286 … return sax->parse_error(chars_read, get_token_string(), parse_error::create(112, chars_read, in get_ubjson_size_type()
2307 return sax->boolean(true); in get_ubjson_value()
2309 return sax->boolean(false); in get_ubjson_value()
2312 return sax->null(); in get_ubjson_value()
2317 return get_number(input_format, number) && sax->number_unsigned(number); in get_ubjson_value()
2323 return get_number(input_format, number) && sax->number_integer(number); in get_ubjson_value()
2329 return get_number(input_format, number) && sax->number_integer(number); in get_ubjson_value()
2335 return get_number(input_format, number) && sax->number_integer(number); in get_ubjson_value()
2341 return get_number(input_format, number) && sax->number_integer(number); in get_ubjson_value()
2351 return get_number(input_format, number) && sax->number_unsigned(number); in get_ubjson_value()
2361 return get_number(input_format, number) && sax->number_unsigned(number); in get_ubjson_value()
2371 return get_number(input_format, number) && sax->number_unsigned(number); in get_ubjson_value()
2421 return sax->number_float((half & 0x8000u) != 0 in get_ubjson_value()
2429 …return get_number(input_format, number) && sax->number_float(static_cast<number_float_t>(number), … in get_ubjson_value()
2435 …return get_number(input_format, number) && sax->number_float(static_cast<number_float_t>(number), … in get_ubjson_value()
2453 … return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, in get_ubjson_value()
2457 return sax->string(s); in get_ubjson_value()
2463 return get_ubjson_string(s) && sax->string(s); in get_ubjson_value()
2476 …return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_mes… in get_ubjson_value()
2504 return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, in get_ubjson_array()
2509 if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->string(type))) in get_ubjson_array()
2520 if (JSON_HEDLEY_UNLIKELY(!sax->key(key) || !sax->start_array(size_and_type.first) )) in get_ubjson_array()
2533 return (sax->end_array() && sax->end_object()); in get_ubjson_array()
2538 if (JSON_HEDLEY_UNLIKELY(!sax->start_array(size_and_type.first))) in get_ubjson_array()
2569 if (JSON_HEDLEY_UNLIKELY(!sax->start_array(static_cast<std::size_t>(-1)))) in get_ubjson_array()
2584 return sax->end_array(); in get_ubjson_array()
2602 return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, in get_ubjson_object()
2609 if (JSON_HEDLEY_UNLIKELY(!sax->start_object(size_and_type.first))) in get_ubjson_object()
2618 if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key) || !sax->key(key))) in get_ubjson_object()
2633 if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key) || !sax->key(key))) in get_ubjson_object()
2647 if (JSON_HEDLEY_UNLIKELY(!sax->start_object(static_cast<std::size_t>(-1)))) in get_ubjson_object()
2654 if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, false) || !sax->key(key))) in get_ubjson_object()
2667 return sax->end_object(); in get_ubjson_object()
2707 return sax->parse_error(chars_read, number_string, parse_error::create(115, chars_read, in get_ubjson_high_precision_number()
2714 return sax->number_integer(number_lexer.get_number_integer()); in get_ubjson_high_precision_number()
2716 return sax->number_unsigned(number_lexer.get_number_unsigned()); in get_ubjson_high_precision_number()
2718 return sax->number_float(number_lexer.get_number_float(), std::move(number_string)); in get_ubjson_high_precision_number()
2734 … return sax->parse_error(chars_read, number_string, parse_error::create(115, chars_read, in get_ubjson_high_precision_number()
2892 return sax->parse_error(chars_read, "<end of file>", in unexpect_eof()
2969 json_sax_t* sax = nullptr; member in detail::binary_reader