Home
last modified time | relevance | path

Searched refs:string_t (Results 1 - 25 of 38) sorted by relevance

12

/third_party/json/include/nlohmann/detail/
H A Djson_pointer.hpp58 using string_t = typename string_t_helper<RefStringType>::type;
62 explicit json_pointer(const string_t& s = "") in json_pointer()
68 string_t to_string() const in to_string()
71 string_t{}, in to_string()
72 [](const string_t& a, const string_t& b) in to_string()
81 operator string_t() const in operator string_t()
108 json_pointer& operator/=(string_t token) in operator /=()
131 friend json_pointer operator/(const json_pointer& lhs, string_t token) // NOLINT(performance-unnecessary-value-param) in operator /()
171 const string_t
[all...]
H A Dhash.hpp43 using string_t = typename BasicJsonType::string_t; in hash()
62 const auto h = std::hash<string_t> {}(element.key()); in hash()
81 const auto h = std::hash<string_t> {}(j.template get_ref<const string_t&>()); in hash()
/third_party/json/include/nlohmann/detail/input/
H A Djson_sax.hpp36 using string_t = typename BasicJsonType::string_t;
72 virtual bool number_float(number_float_t val, const string_t& s) = 0;
80 virtual bool string(string_t& val) = 0;
104 virtual bool key(string_t& val) = 0;
168 using string_t = typename BasicJsonType::string_t;
211 bool number_float(number_float_t val, const string_t& /*unused*/) in number_float()
217 bool string(string_t& val) in string()
241 bool key(string_t
[all...]
H A Dbinary_reader.hpp72 using string_t = typename BasicJsonType::string_t;
193 bool get_bson_cstr(string_t& result) in get_bson_cstr()
207 *out++ = static_cast<typename string_t::value_type>(current); in get_bson_cstr()
223 bool get_bson_string(const NumberType len, string_t& result) in get_bson_string()
286 string_t value; in parse_bson_element_internal()
354 string_t key; in parse_bson_element_list()
598 string_t s; in parse_cbor_internal()
911 bool get_cbor_string(string_t& result) in get_cbor_string()
977 string_t chun in get_cbor_string()
[all...]
H A Dparser.hpp65 using string_t = typename BasicJsonType::string_t;
H A Dlexer.hpp116 using string_t = typename BasicJsonType::string_t;
1403 token_buffer.push_back(static_cast<typename string_t::value_type>(c)); in add()
1430 string_t& get_string() in get_string()
1617 string_t token_buffer {};
/third_party/json/include/nlohmann/detail/meta/
H A Dis_sax.hpp83 using string_t = typename BasicJsonType::string_t;
93 is_detected_exact<bool, number_float_function_t, SAX, number_float_t, string_t>::value &&
94 is_detected_exact<bool, string_function_t, SAX, string_t>::value &&
97 is_detected_exact<bool, key_function_t, SAX, string_t>::value &&
114 using string_t = typename BasicJsonType::string_t;
134 number_float_t, string_t>::value,
135 "Missing/invalid function: bool number_float(number_float_t, const string_t&)");
137 is_detected_exact<bool, string_function_t, SAX, string_t>
[all...]
/third_party/json/docs/examples/
H A Djson_pointer__string_t.cpp8 json::json_pointer::string_t s = "This is a string."; in main()
12 std::cout << std::boolalpha << std::is_same<json::json_pointer::string_t, json::string_t>::value << std::endl; in main()
H A Dsax_parse__binary.cpp40 bool number_float(number_float_t val, const string_t& s) override
46 bool string(string_t& val) override
76 bool key(string_t& val) override
H A Dsax_parse.cpp40 bool number_float(number_float_t val, const string_t& s) override
46 bool string(string_t& val) override
76 bool key(string_t& val) override
H A Dobject_t.cpp9 std::cout << std::boolalpha << std::is_same<std::map<json::string_t, json>, json::object_t>::value << std::endl; in main()
H A Dswap__string_t.cpp11 // create string_t in main()
12 json::string_t string = "the fast"; in main()
H A Dstring_t.cpp9 std::cout << std::boolalpha << std::is_same<std::string, json::string_t>::value << std::endl; in main()
/third_party/json/tests/src/
H A Dunit-pointer_access.cpp37 CHECK(value.get_ptr<json::string_t*>() == nullptr);
66 CHECK(value.get_ptr<const json::string_t*>() == nullptr);
95 CHECK(value.get_ptr<json::string_t*>() == nullptr);
124 CHECK(value.get_ptr<const json::string_t*>() == nullptr);
132 SECTION("pointer access to string_t")
134 using test_type = json::string_t;
153 CHECK(value.get_ptr<json::string_t*>() != nullptr);
161 SECTION("pointer access to const string_t")
163 using test_type = const json::string_t;
182 CHECK(value.get_ptr<const json::string_t*>() !
[all...]
H A Dunit-reference_access.cpp49 CHECK_THROWS_WITH_AS(value.get_ref<json::string_t&>(),
93 CHECK_THROWS_WITH_AS(value.get_ref<json::string_t&>(),
105 SECTION("reference access to string_t")
107 using test_type = json::string_t;
124 CHECK_NOTHROW(value.get_ref<json::string_t&>());
154 CHECK_THROWS_WITH_AS(value.get_ref<json::string_t&>(),
184 CHECK_THROWS_WITH_AS(value.get_ref<json::string_t&>(),
214 CHECK_THROWS_WITH_AS(value.get_ref<json::string_t&>(),
241 CHECK_THROWS_WITH_AS(value.get_ref<json::string_t&>(), "[json.exception.type_error.303] incompatible ReferenceType for get_ref, actual type is number", json::type_error&);
H A Dunit-element_access2.cpp1498 using string_t = typename Json::string_t;
1501 // test assumes string_t and object_t::key_type are the same
1502 REQUIRE(std::is_same<string_t, typename Json::object_t::key_type>::value);
1512 string_t str = "default";
1593 SECTION("string_t/object_t::key_type key")
1595 string_t key = "foo";
1596 string_t key2 = "baz";
1597 string_t key_notfound = "bar";
1650 CHECK(j.template value<string_t>("fo
[all...]
H A Dunit-conversions.cpp54 SECTION("std::map<json::string_t, json>")
56 std::map<json::string_t, json> o =
57 j.get<std::map<json::string_t, json>>();
61 SECTION("std::multimap<json::string_t, json>")
63 std::multimap<json::string_t, json> o =
64 j.get<std::multimap<json::string_t, json>>();
68 SECTION("std::unordered_map<json::string_t, json>")
70 std::unordered_map<json::string_t, json> o =
71 j.get<std::unordered_map<json::string_t, json>>();
75 SECTION("std::unordered_multimap<json::string_t, jso
[all...]
H A Dunit-class_parser.cpp439 CHECK(parser_helper("\"\\u0001\"").get<json::string_t>() == "\x01");
440 CHECK(parser_helper("\"\\u000a\"").get<json::string_t>() == "\n");
441 CHECK(parser_helper("\"\\u00b0\"").get<json::string_t>() == "°");
442 CHECK(parser_helper("\"\\u0c00\"").get<json::string_t>() == "ఀ");
443 CHECK(parser_helper("\"\\ud000\"").get<json::string_t>() == "퀀");
444 CHECK(parser_helper("\"\\u000E\"").get<json::string_t>() == "\x0E");
445 CHECK(parser_helper("\"\\u00F0\"").get<json::string_t>() == "ð");
446 CHECK(parser_helper("\"\\u0100\"").get<json::string_t>() == "Ā");
447 CHECK(parser_helper("\"\\u2000\"").get<json::string_t>() == " ");
448 CHECK(parser_helper("\"\\uFFFF\"").get<json::string_t>()
[all...]
H A Dunit-json_pointer.cpp740 CHECK(std::is_same<json_ptr_str::string_t, json::json_pointer::string_t>::value);
741 CHECK(std::is_same<json_ptr_str::string_t, ordered_json::json_pointer::string_t>::value);
742 CHECK(std::is_same<json_ptr_str::string_t, json_ptr_j::string_t>::value);
743 CHECK(std::is_same<json_ptr_str::string_t, json_ptr_oj::string_t>::value);
/third_party/json/include/nlohmann/detail/conversions/
H A Dfrom_json.hpp94 inline void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s) in from_json()
100 s = *j.template get_ptr<const typename BasicJsonType::string_t*>(); in from_json()
106 std::is_assignable<StringType&, const typename BasicJsonType::string_t>::value
107 && is_detected_exact<typename BasicJsonType::string_t::value_type, value_type_t, StringType>::value
108 && !std::is_same<typename BasicJsonType::string_t, StringType>::value
117 s = *j.template get_ptr<const typename BasicJsonType::string_t*>(); in from_json()
421 typename BasicJsonType::string_t, Key >::value >>
441 typename BasicJsonType::string_t, Key >::value >>
467 p = *j.template get_ptr<const typename BasicJsonType::string_t*>(); in from_json()
H A Dto_json.hpp61 static void construct(BasicJsonType& j, const typename BasicJsonType::string_t& s) in construct()
70 static void construct(BasicJsonType& j, typename BasicJsonType::string_t&& s) in construct()
79 enable_if_t < !std::is_same<CompatibleStringType, typename BasicJsonType::string_t>::value,
85 j.m_value.string = j.template create<typename BasicJsonType::string_t>(str); in construct()
284 enable_if_t<std::is_constructible<typename BasicJsonType::string_t, CompatibleString>::value, int> = 0>
291 inline void to_json(BasicJsonType& j, typename BasicJsonType::string_t&& s) in to_json()
380 enable_if_t < !std::is_constructible<typename BasicJsonType::string_t,
/third_party/json/include/nlohmann/detail/output/
H A Dbinary_writer.hpp41 using string_t = typename BasicJsonType::string_t;
960 static std::size_t calc_bson_entry_header_size(const string_t& name, const BasicJsonType& j) in calc_bson_entry_header_size()
962 const auto it = name.find(static_cast<typename string_t::value_type>(0)); in calc_bson_entry_header_size()
963 if (JSON_HEDLEY_UNLIKELY(it != BasicJsonType::string_t::npos)) in calc_bson_entry_header_size()
975 void write_bson_entry_header(const string_t& name, in write_bson_entry_header()
987 void write_bson_boolean(const string_t& name, in write_bson_boolean()
997 void write_bson_double(const string_t& name, in write_bson_double()
1007 static std::size_t calc_bson_string_size(const string_t& value) in calc_bson_string_size()
1015 void write_bson_string(const string_t
[all...]
/third_party/zlib/examples/
H A Denough.c178 } string_t; typedef
180 // Clear a string_t.
181 local void string_clear(string_t *s) { in string_clear()
186 // Initialize a string_t.
187 local void string_init(string_t *s) { in string_init()
194 // Release the allocation of a string_t.
195 local void string_free(string_t *s) { in string_free()
204 local void string_printf(string_t *s, char *fmt, ...) { in string_printf()
230 string_t out; // display of subcodes for maximum tables size
/third_party/json/include/nlohmann/
H A Djson.hpp344 /// @sa https://json.nlohmann.me/api/basic_json/string_t/
345 using string_t = StringType;
409 string | string | pointer to @ref string_t
430 string_t* string;
471 string = create<string_t>(""); in json_value()
525 json_value(const string_t& value) : string(create<string_t>(value)) {} in json_value()
528 json_value(string_t&& value) : string(create<string_t>(std::move(value))) {} in json_value()
625 AllocatorType<string_t> allo in destroy()
[all...]
/third_party/json/tests/abi/include/nlohmann/
H A Djson_v3_10_5.hpp3652 is_constructible<typename BasicJsonType::string_t, CompatibleStringType>::value;
3660 typename BasicJsonType::string_t>::value;
3891 void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s)
3897 s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
3904 !std::is_same<typename BasicJsonType::string_t,
3914 s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
4216 typename BasicJsonType::string_t, Key >::value >>
4236 typename BasicJsonType::string_t, Key >::value >>
4262 p = *j.template get_ptr<const typename BasicJsonType::string_t*>();
4549 static void construct(BasicJsonType& j, const typename BasicJsonType::string_t
[all...]

Completed in 35 milliseconds

12