Home
last modified time | relevance | path

Searched refs:input_format_t (Results 1 – 17 of 17) sorted by relevance

/third_party/json/include/nlohmann/detail/input/
Dbinary_reader.hpp84 …explicit binary_reader(InputAdapterType&& adapter, const input_format_t format = input_format_t::j… in binary_reader()
105 bool sax_parse(const input_format_t format, in sax_parse()
115 case input_format_t::bson: in sax_parse()
119 case input_format_t::cbor: in sax_parse()
123 case input_format_t::msgpack: in sax_parse()
127 case input_format_t::ubjson: in sax_parse()
128 case input_format_t::bjdata: in sax_parse()
132 case input_format_t::json: // LCOV_EXCL_LINE in sax_parse()
140 if (input_format == input_format_t::ubjson || input_format == input_format_t::bjdata) in sax_parse()
171 get_number<std::int32_t, true>(input_format_t::bson, document_size); in parse_bson_internal()
[all …]
Dinput_adapters.hpp34 enum class input_format_t { json, cbor, msgpack, ubjson, bson, bjdata }; enum
/third_party/json/docs/mkdocs/docs/api/basic_json/
Dsax_parse.md8 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
Dinput_format_t.md1 # <small>nlohmann::basic_json::</small>input_format_t
4 enum class input_format_t {
38 …The example below shows how an `input_format_t` enum value is passed to `sax_parse` to set the inp…
Dindex.md96 - [**input_format_t**](input_format_t.md) - type to choose the format to parse
/third_party/json/tests/abi/include/nlohmann/
Djson_v3_10_5.hpp5233 enum class input_format_t { json, cbor, msgpack, ubjson, bson }; enum
8267 bool sax_parse(const input_format_t format, in sax_parse()
8277 case input_format_t::bson: in sax_parse()
8281 case input_format_t::cbor: in sax_parse()
8285 case input_format_t::msgpack: in sax_parse()
8289 case input_format_t::ubjson: in sax_parse()
8293 case input_format_t::json: // LCOV_EXCL_LINE in sax_parse()
8301 if (format == input_format_t::ubjson) in sax_parse()
8332 get_number<std::int32_t, true>(input_format_t::bson, document_size); in parse_bson_internal()
8360 if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "cstring"))) in get_bson_cstr()
[all …]
/third_party/json/single_include/nlohmann/
Djson.hpp6103 enum class input_format_t { json, cbor, msgpack, ubjson, bson, bjdata }; enum
9158 …explicit binary_reader(InputAdapterType&& adapter, const input_format_t format = input_format_t::j… in binary_reader()
9179 bool sax_parse(const input_format_t format, in sax_parse()
9189 case input_format_t::bson: in sax_parse()
9193 case input_format_t::cbor: in sax_parse()
9197 case input_format_t::msgpack: in sax_parse()
9201 case input_format_t::ubjson: in sax_parse()
9202 case input_format_t::bjdata: in sax_parse()
9206 case input_format_t::json: // LCOV_EXCL_LINE in sax_parse()
9214 if (input_format == input_format_t::ubjson || input_format == input_format_t::bjdata) in sax_parse()
[all …]
/third_party/json/include/nlohmann/
Djson.hpp172 using input_format_t = detail::input_format_t; typedef in basic_json
4076 input_format_t format = input_format_t::json, in sax_parse()
4081 return format == input_format_t::json in sax_parse()
4091 input_format_t format = input_format_t::json, in sax_parse()
4096 return format == input_format_t::json in sax_parse()
4110 input_format_t format = input_format_t::json, in sax_parse()
4115 return format == input_format_t::json in sax_parse()
4337 …ool res = binary_reader<decltype(ia)>(std::move(ia), input_format_t::cbor).sax_parse(input_format_… in from_cbor()
4353 …ool res = binary_reader<decltype(ia)>(std::move(ia), input_format_t::cbor).sax_parse(input_format_… in from_cbor()
4380 …ool res = binary_reader<decltype(ia)>(std::move(ia), input_format_t::cbor).sax_parse(input_format_… in from_cbor()
[all …]
/third_party/json/tests/src/
Dunit-bson.cpp742 CHECK(!json::sax_parse(incomplete_bson, &scp, json::input_format_t::bson));
758 CHECK(!json::sax_parse(incomplete_bson, &scp, json::input_format_t::bson));
780 CHECK(!json::sax_parse(incomplete_bson, &scp, json::input_format_t::bson));
795 CHECK(!json::sax_parse(incomplete_bson, &scp, json::input_format_t::bson));
805 CHECK(!json::sax_parse(bson_vec, &scp, json::input_format_t::bson));
816 CHECK(!json::sax_parse(bson_vec, &scp, json::input_format_t::bson));
855 CHECK(!json::sax_parse(bson, &scp, json::input_format_t::bson));
Dunit-bjdata.cpp215 …nlohmann::detail::binary_reader<json, decltype(ia)> br{std::move(ia), json::input_format_t::bjdata…
2135 CHECK_FALSE(json::sax_parse(v, &scp, json::input_format_t::bjdata));
2142 CHECK_FALSE(json::sax_parse(v, &scp, json::input_format_t::bjdata));
2149 CHECK_FALSE(json::sax_parse(v, &scp, json::input_format_t::bjdata));
2156 CHECK_FALSE(json::sax_parse(v, &scp, json::input_format_t::bjdata));
2163 CHECK_FALSE(json::sax_parse(v, &scp, json::input_format_t::bjdata));
2170 CHECK_FALSE(json::sax_parse(v, &scp, json::input_format_t::bjdata));
2177 CHECK_FALSE(json::sax_parse(v, &scp, json::input_format_t::bjdata));
2184 CHECK_FALSE(json::sax_parse(v, &scp, json::input_format_t::bjdata));
2191 CHECK_FALSE(json::sax_parse(v, &scp, json::input_format_t::bjdata));
[all …]
Dunit-ubjson.cpp1594 …CHECK_THROWS_AS(_ = json::sax_parse(v_ubjson, &scp, json::input_format_t::ubjson), json::out_of_ra…
1608 …CHECK_THROWS_AS(_ = json::sax_parse(v_ubjson, &scp, json::input_format_t::ubjson), json::out_of_ra…
1619 CHECK(!json::sax_parse(v, &scp, json::input_format_t::ubjson));
1626 CHECK(!json::sax_parse(v, &scp, json::input_format_t::ubjson));
1633 CHECK(!json::sax_parse(v, &scp, json::input_format_t::ubjson));
1640 CHECK(!json::sax_parse(v, &scp, json::input_format_t::ubjson));
1647 CHECK(!json::sax_parse(v, &scp, json::input_format_t::ubjson));
1654 CHECK(!json::sax_parse(v, &scp, json::input_format_t::ubjson));
Dunit-msgpack.cpp1536 CHECK(!json::sax_parse(v, &scp, json::input_format_t::msgpack));
1543 CHECK(!json::sax_parse(v, &scp, json::input_format_t::msgpack));
1550 CHECK(!json::sax_parse(v, &scp, json::input_format_t::msgpack));
Dunit-cbor.cpp1598 CHECK(json::sax_parse(input, &cbp, json::input_format_t::cbor));
1804 CHECK(!json::sax_parse(v, &scp, json::input_format_t::cbor));
1811 CHECK(!json::sax_parse(v, &scp, json::input_format_t::cbor));
1818 CHECK(!json::sax_parse(v, &scp, json::input_format_t::cbor));
Dunit-deserialization.cpp575 using nlohmann::detail::input_format_t;
589 input_format_t::json, false));
Dunit-class_parser.cpp248 CHECK_NOTHROW(json::sax_parse(s, &el, json::input_format_t::json, false)); in accept_helper()
/third_party/json/docs/examples/
Dsax_parse__binary.cpp104 bool result = json::sax_parse(vec, &sec, json::input_format_t::cbor); in main()
/third_party/json/include/nlohmann/detail/output/
Dbinary_writer.hpp219 write_compact_float(j.m_value.number_float, detail::input_format_t::cbor); in write_cbor()
543 write_compact_float(j.m_value.number_float, detail::input_format_t::msgpack); in write_msgpack()
1761 void write_compact_float(const number_float_t n, detail::input_format_t format) in write_compact_float()
1771 oa->write_character(format == detail::input_format_t::cbor in write_compact_float()
1778 oa->write_character(format == detail::input_format_t::cbor in write_compact_float()