/third_party/json/include/nlohmann/detail/input/ |
D | binary_reader.hpp | 97 bool sax_parse(const input_format_t format, in sax_parse() 107 case input_format_t::bson: in sax_parse() 111 case input_format_t::cbor: in sax_parse() 115 case input_format_t::msgpack: in sax_parse() 119 case input_format_t::ubjson: in sax_parse() 123 case input_format_t::json: // LCOV_EXCL_LINE in sax_parse() 131 if (format == input_format_t::ubjson) in sax_parse() 162 get_number<std::int32_t, true>(input_format_t::bson, document_size); in parse_bson_internal() 190 if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "cstring"))) in get_bson_cstr() 219 …, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::bson, "string… in get_bson_string() [all …]
|
D | input_adapters.hpp | 26 enum class input_format_t { json, cbor, msgpack, ubjson, bson }; enum
|
/third_party/json/doc/mkdocs/docs/api/basic_json/ |
D | sax_parse.md | 8 input_format_t format = input_format_t::json, 16 input_format_t format = input_format_t::json, 58 : the format to parse (JSON, CBOR, MessagePack, or UBJSON) (optional, `input_format_t::json` by … 59 [`input_format_t`](input_format_t.md) for more information
|
D | input_format_t.md | 1 # basic_json::input_format_t 4 enum class input_format_t {
|
D | index.md | 54 - [**input_format_t**](input_format_t.md) - type to choose the format to parse
|
/third_party/json/single_include/nlohmann/ |
D | json.hpp | 5353 enum class input_format_t { json, cbor, msgpack, ubjson, bson }; enum 8387 bool sax_parse(const input_format_t format, in sax_parse() 8397 case input_format_t::bson: in sax_parse() 8401 case input_format_t::cbor: in sax_parse() 8405 case input_format_t::msgpack: in sax_parse() 8409 case input_format_t::ubjson: in sax_parse() 8413 case input_format_t::json: // LCOV_EXCL_LINE in sax_parse() 8421 if (format == input_format_t::ubjson) in sax_parse() 8452 get_number<std::int32_t, true>(input_format_t::bson, document_size); in parse_bson_internal() 8480 if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "cstring"))) in get_bson_cstr() [all …]
|
/third_party/json/test/src/ |
D | unit-bson.cpp | 774 CHECK(!json::sax_parse(incomplete_bson, &scp, json::input_format_t::bson)); 792 CHECK(!json::sax_parse(incomplete_bson, &scp, json::input_format_t::bson)); 816 CHECK(!json::sax_parse(incomplete_bson, &scp, json::input_format_t::bson)); 833 CHECK(!json::sax_parse(incomplete_bson, &scp, json::input_format_t::bson)); 843 CHECK(!json::sax_parse(bson_vec, &scp, json::input_format_t::bson)); 854 CHECK(!json::sax_parse(bson_vec, &scp, json::input_format_t::bson)); 896 CHECK(!json::sax_parse(bson, &scp, json::input_format_t::bson));
|
D | unit-ubjson.cpp | 1617 …CHECK_THROWS_AS(_ = json::sax_parse(v_ubjson, &scp, json::input_format_t::ubjson), json::out_of_ra… 1631 …CHECK_THROWS_AS(_ = json::sax_parse(v_ubjson, &scp, json::input_format_t::ubjson), json::out_of_ra… 1642 CHECK(!json::sax_parse(v, &scp, json::input_format_t::ubjson)); 1649 CHECK(!json::sax_parse(v, &scp, json::input_format_t::ubjson)); 1656 CHECK(!json::sax_parse(v, &scp, json::input_format_t::ubjson)); 1663 CHECK(!json::sax_parse(v, &scp, json::input_format_t::ubjson)); 1670 CHECK(!json::sax_parse(v, &scp, json::input_format_t::ubjson)); 1677 CHECK(!json::sax_parse(v, &scp, json::input_format_t::ubjson));
|
D | unit-msgpack.cpp | 1582 CHECK(!json::sax_parse(v, &scp, json::input_format_t::msgpack)); 1589 CHECK(!json::sax_parse(v, &scp, json::input_format_t::msgpack)); 1596 CHECK(!json::sax_parse(v, &scp, json::input_format_t::msgpack));
|
D | unit-cbor.cpp | 1623 CHECK(json::sax_parse(input, &cbp, json::input_format_t::cbor)); 1894 CHECK(!json::sax_parse(v, &scp, json::input_format_t::cbor)); 1901 CHECK(!json::sax_parse(v, &scp, json::input_format_t::cbor)); 1908 CHECK(!json::sax_parse(v, &scp, json::input_format_t::cbor));
|
D | unit-class_parser.cpp | 266 CHECK_NOTHROW(json::sax_parse(s, &el, json::input_format_t::json, false)); in accept_helper()
|
/third_party/json/include/nlohmann/ |
D | json.hpp | 249 using input_format_t = detail::input_format_t; typedef in nlohmann::basic_json 7037 input_format_t format = input_format_t::json, in sax_parse() 7042 return format == input_format_t::json in sax_parse() 7050 input_format_t format = input_format_t::json, in sax_parse() 7055 return format == input_format_t::json in sax_parse() 7064 input_format_t format = input_format_t::json, in sax_parse() 7069 return format == input_format_t::json in sax_parse() 7727 …const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, … in from_cbor() 7744 …const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, … in from_cbor() 7771 …const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, … in from_cbor() [all …]
|
/third_party/json/include/nlohmann/detail/output/ |
D | binary_writer.hpp | 208 write_compact_float(j.m_value.number_float, detail::input_format_t::cbor); in write_cbor() 532 write_compact_float(j.m_value.number_float, detail::input_format_t::msgpack); in write_msgpack() 1559 void write_compact_float(const number_float_t n, detail::input_format_t format) in write_compact_float() 1569 oa->write_character(format == detail::input_format_t::cbor in write_compact_float() 1576 oa->write_character(format == detail::input_format_t::cbor in write_compact_float()
|