Home
last modified time | relevance | path

Searched refs:number_integer (Results 1 – 25 of 48) sorted by relevance

12

/third_party/json/include/nlohmann/detail/output/
Dbinary_writer.hpp63 case value_t::number_integer: in write_bson()
96 case value_t::number_integer: in write_cbor()
98 if (j.m_value.number_integer >= 0) in write_cbor()
103 if (j.m_value.number_integer <= 0x17) in write_cbor()
105 write_number(static_cast<std::uint8_t>(j.m_value.number_integer)); in write_cbor()
107 else if (j.m_value.number_integer <= (std::numeric_limits<std::uint8_t>::max)()) in write_cbor()
110 write_number(static_cast<std::uint8_t>(j.m_value.number_integer)); in write_cbor()
112 … else if (j.m_value.number_integer <= (std::numeric_limits<std::uint16_t>::max)()) in write_cbor()
115 write_number(static_cast<std::uint16_t>(j.m_value.number_integer)); in write_cbor()
117 … else if (j.m_value.number_integer <= (std::numeric_limits<std::uint32_t>::max)()) in write_cbor()
[all …]
/third_party/json/doc/mkdocs/docs/features/binary_formats/
Dmessagepack.md19 number_integer | -9223372036854775808..-2147483649 | int64 | 0xD3
20 number_integer | -2147483648..-32769 | int32 | 0xD2
21 number_integer | -32768..-129 | int16 | 0xD1
22 number_integer | -128..-33 | int8 | 0xD0
23 number_integer | -32..-1 | negative fixint | 0xE0..0xFF
24 number_integer | 0..127 | positive fixint | 0x00..0x7F
25 number_integer | 128..255 | uint 8 | 0xCC
26 number_integer | 256..65535 | uint 16 | 0xCD
27 number_integer | 65536..4294967295 | uint 32 | 0xCE
28 number_integer | 4294967296..18446744073709551615 | uint 64 | 0xCF
[all …]
Dubjson.md18 number_integer | -9223372036854775808..-2147483649 | int64 | `L`
19 number_integer | -2147483648..-32769 | int32 | `l`
20 number_integer | -32768..-129 | int16 | `I`
21 number_integer | -128..127 | int8 | `i`
22 number_integer | 128..255 | uint8 | `U`
23 number_integer | 256..32767 | int16 | `I`
24 number_integer | 32768..2147483647 | int32 | `l`
25 number_integer | 2147483648..9223372036854775807 | int64 | `L`
109 int8 | number_integer | `i`
110 int16 | number_integer | `I`
[all …]
Dcbor.md20 number_integer | -9223372036854775808..-2147483649 | Negative integer (8 bytes follow) |…
21 number_integer | -2147483648..-32769 | Negative integer (4 bytes follow) |…
22 number_integer | -32768..-129 | Negative integer (2 bytes follow) |…
23 number_integer | -128..-25 | Negative integer (1 byte follow) |…
24 number_integer | -24..-1 | Negative integer |…
25 number_integer | 0..23 | Integer |…
26 number_integer | 24..255 | Unsigned integer (1 byte follow) |…
27 number_integer | 256..65535 | Unsigned integer (2 bytes follow) |…
28 number_integer | 65536..4294967295 | Unsigned integer (4 bytes follow) |…
29 number_integer | 4294967296..18446744073709551615 | Unsigned integer (8 bytes follow) |…
[all …]
Dbson.md19 number_integer | -9223372036854775808..-2147483649 | int64 | 0x12
20 number_integer | -2147483648..2147483647 | int32 | 0x10
21 number_integer | 2147483648..9223372036854775807 | int64 | 0x12
73 int32 | 0x10 | number_integer
/third_party/json/include/nlohmann/detail/iterators/
Diter_impl.hpp110 case value_t::number_integer: in iter_impl()
213 case value_t::number_integer:
251 case value_t::number_integer: in set_end()
292 case value_t::number_integer: in operator *()
334 case value_t::number_integer: in operator ->()
387 case value_t::number_integer: in operator ++()
438 case value_t::number_integer: in operator --()
479 case value_t::number_integer: in operator ==()
524 case value_t::number_integer: in operator <()
583 case value_t::number_integer: in operator +=()
[all …]
/third_party/json/include/nlohmann/
Djson.hpp987 number_integer_t number_integer; member
998 json_value(number_integer_t v) noexcept : number_integer(v) {} in json_value()
1038 case value_t::number_integer: in json_value()
1040 number_integer = number_integer_t(0); in json_value()
1222 case value_t::number_integer: in destroy()
1300 case value_t::number_integer: in set_parents()
1627 case value_t::number_integer: in basic_json()
2072 case value_t::number_integer: in basic_json()
2095 case value_t::number_integer: in basic_json()
2097 m_value.number_integer = first.m_object->m_value.number_integer; in basic_json()
[all …]
/third_party/json/test/src/
Dunit-constructor1.cpp95 auto t = json::value_t::number_integer;
505 CHECK(j.type() == json::value_t::number_integer);
512 CHECK(j.type() == json::value_t::number_integer);
528 CHECK(j.type() == json::value_t::number_integer);
544 CHECK(j.type() == json::value_t::number_integer);
560 CHECK(j.type() == json::value_t::number_integer);
576 CHECK(j.type() == json::value_t::number_integer);
592 CHECK(j.type() == json::value_t::number_integer);
600 CHECK(j.type() == json::value_t::number_integer);
608 CHECK(j.type() == json::value_t::number_integer);
[all …]
Dunit-element_access2.cpp119 json j_nonobject(json::value_t::number_integer);
252 json j_nonobject(json::value_t::number_integer);
253 const json j_nonobject_const(json::value_t::number_integer);
370 json j_nonobject(json::value_t::number_integer);
371 const json j_nonobject_const(json::value_t::number_integer);
538 json j_nonobject(json::value_t::number_integer);
794 json j_nonobject(json::value_t::number_integer);
875 json j_nonarray(json::value_t::number_integer);
962 json j_nonobject(json::value_t::number_integer);
963 const json j_nonobject_const(json::value_t::number_integer);
[all …]
Dunit-conversions.cpp112 CHECK_THROWS_AS(json(json::value_t::number_integer).get<json::object_t>(),
133 json(json::value_t::number_integer).get<json::object_t>(),
317 CHECK_THROWS_AS(json(json::value_t::number_integer).get<json::array_t>(),
340 json(json::value_t::number_integer).get<json::array_t>(),
483 CHECK_THROWS_AS(json(json::value_t::number_integer).get<json::string_t>(),
504 json(json::value_t::number_integer).get<json::string_t>(),
521 … CHECK_THROWS_AS(json(json::value_t::number_integer).get<std::string_view>(), json::type_error&);
533 CHECK_THROWS_WITH(json(json::value_t::number_integer).get<std::string_view>(),
584 … CHECK_THROWS_AS(json(json::value_t::number_integer).get<std::nullptr_t>(), json::type_error&);
596 CHECK_THROWS_WITH(json(json::value_t::number_integer).get<std::nullptr_t>(),
[all …]
/third_party/json/include/nlohmann/detail/input/
Dbinary_reader.hpp309 … return get_number<std::int32_t, true>(input_format_t::bson, value) && sax->number_integer(value); in parse_bson_element_internal()
315 … return get_number<std::int64_t, true>(input_format_t::bson, value) && sax->number_integer(value); in parse_bson_element_internal()
492 return sax->number_integer(static_cast<std::int8_t>(0x20 - 1 - current)); in parse_cbor_internal()
497 …return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_… in parse_cbor_internal()
503 …return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_… in parse_cbor_internal()
509 …return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_… in parse_cbor_internal()
515 …return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_… in parse_cbor_internal()
1460 return get_number(input_format_t::msgpack, number) && sax->number_integer(number); in parse_msgpack_internal()
1466 return get_number(input_format_t::msgpack, number) && sax->number_integer(number); in parse_msgpack_internal()
1472 return get_number(input_format_t::msgpack, number) && sax->number_integer(number); in parse_msgpack_internal()
[all …]
Djson_sax.hpp49 virtual bool number_integer(number_integer_t val) = 0;
191 bool number_integer(number_integer_t val) in number_integer() function in nlohmann::detail::json_sax_dom_parser
366 bool number_integer(number_integer_t val) in number_integer() function in nlohmann::detail::json_sax_dom_callback_parser
654 bool number_integer(number_integer_t /*unused*/) in number_integer() function in nlohmann::detail::json_sax_acceptor
/third_party/json/include/nlohmann/detail/
Djson_pointer.hpp446 case detail::value_t::number_integer: in get_and_create()
526 case detail::value_t::number_integer: in get_unchecked()
576 case detail::value_t::number_integer: in get_checked()
631 case detail::value_t::number_integer: in get_unchecked()
681 case detail::value_t::number_integer: in get_checked()
759 case detail::value_t::number_integer: in contains()
900 case detail::value_t::number_integer: in flatten()
Dvalue_t.hpp47 number_integer, ///< number value (signed integer) enumerator
/third_party/json/single_include/nlohmann/
Djson.hpp127 number_integer, ///< number value (signed integer) enumerator
2704 case value_t::number_integer: // LCOV_EXCL_LINE in diagnostics()
3913 case value_t::number_integer: in get_arithmetic_value()
4200 case value_t::number_integer: in from_json()
4448 case value_t::number_integer: in key()
4655 struct external_constructor<value_t::number_integer>
4661 j.m_type = value_t::number_integer; in construct()
4817 …external_constructor<value_t::number_integer>::construct(j, static_cast<typename BasicJsonType::nu… in to_json()
4825 external_constructor<value_t::number_integer>::construct(j, static_cast<underlying_type>(e)); in to_json()
5267 case BasicJsonType::value_t::number_integer: in hash()
[all …]
/third_party/json/doc/mkdocs/docs/api/basic_json/
Dvalue_t.md10 number_integer,
27 There are three enumeration entries (number_integer, number_unsigned, and number_float), because th…
Dtype.md18 number (integer) | `value_t::number_integer`
Doperator_value_t.md18 number (integer) | `value_t::number_integer`
/third_party/json/include/nlohmann/detail/conversions/
Dto_json.hpp129 struct external_constructor<value_t::number_integer>
135 j.m_type = value_t::number_integer; in construct()
291 …external_constructor<value_t::number_integer>::construct(j, static_cast<typename BasicJsonType::nu… in to_json()
299 external_constructor<value_t::number_integer>::construct(j, static_cast<underlying_type>(e)); in to_json()
/third_party/cJSON/fuzzing/
Djson.dict32 number_integer="1"
/third_party/json/doc/mkdocs/docs/features/parsing/
Dsax_interface.md11 + {abstract} bool number_integer(number_integer_t val)
37 bool number_integer(number_integer_t val);
/third_party/json/doc/examples/
Dbasic_json__value_t.cpp11 json j_number_integer(json::value_t::number_integer); in main()
Dtype.cpp22 std::cout << (j_number_integer.type() == json::value_t::number_integer) << '\n'; in main()
Doperator__value_t.cpp32 std::cout << (t_number_integer == json::value_t::number_integer) << '\n'; in main()
Dsax_parse.cpp28 bool number_integer(number_integer_t val) override in number_integer() function in sax_event_consumer

12