/third_party/json/include/nlohmann/detail/ |
D | json_pointer.hpp | 58 using string_t = typename string_t_helper<RefStringType>::type; typedef in json_pointer 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 to_string() 108 json_pointer& operator/=(string_t token) in operator /=() 131 …friend json_pointer operator/(const json_pointer& lhs, string_t token) // NOLINT(performance-unnec… in operator /() 171 const string_t& back() const in back() 183 void push_back(const string_t& token) in push_back() [all …]
|
D | hash.hpp | 43 using string_t = typename BasicJsonType::string_t; in hash() typedef 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/ |
D | json_sax.hpp | 36 using string_t = typename BasicJsonType::string_t; typedef 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; typedef in detail::json_sax_dom_parser 211 bool number_float(number_float_t val, const string_t& /*unused*/) in number_float() argument 217 bool string(string_t& val) in string() 241 bool key(string_t& val) in key() 351 using string_t = typename BasicJsonType::string_t; typedef in detail::json_sax_dom_callback_parser 395 bool number_float(number_float_t val, const string_t& /*unused*/) in number_float() argument [all …]
|
D | binary_reader.hpp | 72 using string_t = typename BasicJsonType::string_t; typedef in detail::binary_reader 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 chunk; in get_cbor_string() 1150 string_t key; in get_cbor_object() [all …]
|
/third_party/json/docs/mkdocs/docs/api/json_pointer/ |
D | string_t.md | 1 # <small>nlohmann::json_pointer::</small>string_t 3 using string_t = RefStringType; 8 See [`basic_json::string_t`](../basic_json/string_t.md) for more information. 14 The example shows the type `string_t` and its relation to `basic_json::string_t`.
|
D | index.md | 20 …in which case `string_t` will be deduced as [`basic_json::string_t`](../basic_json/string_t.md). T… 25 - [**string_t**](string_t.md) - the string type used for the reference tokens 31 - [**operator string_t**](operator_string_t.md) - return a string representation of the JSON pointer
|
D | operator_string_t.md | 1 # <small>nlohmann::json_pointer::</small>operator string_t 4 operator string_t() const 16 operator string_t() const 48 - Changed type to `string_t` and deprecated in version 3.11.0.
|
D | push_back.md | 4 void push_back(const string_t& token); 6 void push_back(string_t&& token); 39 - Changed type of `token` to `string_t` in version 3.11.0.
|
D | back.md | 4 const string_t& back() const; 40 - Changed return type to `string_t` in version 3.11.0.
|
D | to_string.md | 4 string_t to_string() const; 40 - Changed return type to `string_t` in version 3.11.0.
|
/third_party/json/include/nlohmann/detail/meta/ |
D | is_sax.hpp | 83 using string_t = typename BasicJsonType::string_t; typedef 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; typedef 134 number_float_t, string_t>::value, 137 is_detected_exact<bool, string_function_t, SAX, string_t>::value, 144 static_assert(is_detected_exact<bool, key_function_t, SAX, string_t>::value,
|
/third_party/json/docs/mkdocs/docs/api/basic_json/ |
D | string_t.md | 1 # <small>nlohmann::basic_json::</small>string_t 4 using string_t = StringType; 25 With the default values for `StringType` (`std::string`), the default value for `string_t` is `#!cp… 46 `string_t*` must be dereferenced. 52 The following code shows that `string_t` is by default, a typedef to `#!cpp std::string`. 55 --8<-- "examples/string_t.cpp" 61 --8<-- "examples/string_t.output"
|
/third_party/json/docs/examples/ |
D | json_pointer__string_t.cpp | 8 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 <… in main()
|
D | sax_parse.cpp | 40 bool number_float(number_float_t val, const string_t& s) override in number_float() 46 bool string(string_t& val) override in string() 76 bool key(string_t& val) override in key()
|
D | sax_parse__binary.cpp | 40 bool number_float(number_float_t val, const string_t& s) override in number_float() 46 bool string(string_t& val) override in string() 76 bool key(string_t& val) override in key()
|
/third_party/json/tests/src/ |
D | unit-reference_access.cpp | 49 CHECK_THROWS_WITH_AS(value.get_ref<json::string_t&>(), 93 CHECK_THROWS_WITH_AS(value.get_ref<json::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] incompatib…
|
D | unit-pointer_access.cpp | 37 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); 134 using test_type = json::string_t; 153 CHECK(value.get_ptr<json::string_t*>() != nullptr); 163 using test_type = const json::string_t; 182 CHECK(value.get_ptr<const json::string_t*>() != nullptr); 211 CHECK(value.get_ptr<json::string_t*>() == nullptr); 240 CHECK(value.get_ptr<const json::string_t*>() == nullptr); [all …]
|
D | unit-conversions.cpp | 56 std::map<json::string_t, json> o = 57 j.get<std::map<json::string_t, json>>(); 63 std::multimap<json::string_t, json> o = 64 j.get<std::multimap<json::string_t, json>>(); 70 std::unordered_map<json::string_t, json> o = 71 j.get<std::unordered_map<json::string_t, json>>(); 77 std::unordered_multimap<json::string_t, json> o = 78 j.get<std::unordered_multimap<json::string_t, json>>(); 128 std::map<json::string_t, json> o{{"previous", "value"}}; 135 std::multimap<json::string_t, json> o{{"previous", "value"}}; [all …]
|
D | unit-element_access2.cpp | 1498 using string_t = typename Json::string_t; typedef 1502 REQUIRE(std::is_same<string_t, typename Json::object_t::key_type>::value); 1512 string_t str = "default"; 1595 string_t key = "foo"; 1596 string_t key2 = "baz"; 1597 string_t key_notfound = "bar"; 1650 CHECK(j.template value<string_t>("foo", "default") == "bar"); 1651 CHECK(j.template value<string_t>("foo", cpstr) == "bar"); 1652 CHECK(j.template value<string_t>("foo", castr) == "bar"); 1653 CHECK(j.template value<string_t>("foo", str) == "bar"); [all …]
|
D | unit-class_parser.cpp | 439 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 …]
|
/third_party/json/docs/mkdocs/docs/features/parsing/ |
D | sax_interface.md | 14 + {abstract} bool number_float(number_float_t val, const string_t& s) 16 + {abstract} bool string(string_t& val) 23 + {abstract} bool key(string_t& val) 41 bool number_float(number_float_t val, const string_t& s); 44 bool string(string_t& val); 54 bool key(string_t& val);
|
/third_party/json/include/nlohmann/detail/conversions/ |
D | from_json.hpp | 94 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()
|
D | to_json.hpp | 61 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>… 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/ |
D | binary_writer.hpp | 41 using string_t = typename BasicJsonType::string_t; typedef in detail::binary_writer 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& name, in write_bson_string() 1016 const string_t& value) in write_bson_string() [all …]
|
/third_party/zlib/examples/ |
D | enough.c | 178 } string_t; typedef 181 local void string_clear(string_t *s) { in string_clear() 187 local void string_init(string_t *s) { in string_init() 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
|