Lines Matching defs:name
2057 #define JSON_HEDLEY_ARRAY_PARAM(name) (name)
2059 #define JSON_HEDLEY_ARRAY_PARAM(name)
2859 object, ///< object (unordered set of name/value pairs)
4316 static std::string name(const std::string& ename, int id_)
4413 std::string w = concat(exception::name("parse_error", id_), "parse error",
4421 std::string w = concat(exception::name("parse_error", id_), "parse error",
4457 std::string w = concat(exception::name("invalid_iterator", id_), exception::diagnostics(context), what_arg);
4475 std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
4492 std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg);
4509 std::string w = concat(exception::name("other_error", id_), exception::diagnostics(context), what_arg);
7353 name_separator, ///< the name separator `:`
7360 /// return name of values of type token_type (only used for errors)
15873 and the entry name size (and its null-terminator).
15875 static std::size_t calc_bson_entry_header_size(const string_t& name, const BasicJsonType& j)
15877 const auto it = name.find(static_cast<typename string_t::value_type>(0));
15884 return /*id*/ 1ul + name.size() + /*zero-terminator*/1u;
15888 @brief Writes the given @a element_type and @a name to the output adapter
15890 void write_bson_entry_header(const string_t& name,
15895 reinterpret_cast<const CharType*>(name.c_str()),
15896 name.size() + 1u);
15900 @brief Writes a BSON element with key @a name and boolean value @a value
15902 void write_bson_boolean(const string_t& name,
15905 write_bson_entry_header(name, 0x08);
15910 @brief Writes a BSON element with key @a name and double value @a value
15912 void write_bson_double(const string_t& name,
15915 write_bson_entry_header(name, 0x01);
15928 @brief Writes a BSON element with key @a name and string value @a value
15930 void write_bson_string(const string_t& name,
15933 write_bson_entry_header(name, 0x02);
15942 @brief Writes a BSON element with key @a name and null value
15944 void write_bson_null(const string_t& name)
15946 write_bson_entry_header(name, 0x0A);
15960 @brief Writes a BSON element with key @a name and integer @a value
15962 void write_bson_integer(const string_t& name,
15967 write_bson_entry_header(name, 0x10); // int32
15972 write_bson_entry_header(name, 0x12); // int64
15988 @brief Writes a BSON element with key @a name and unsigned @a value
15990 void write_bson_unsigned(const string_t& name,
15995 write_bson_entry_header(name, 0x10 /* int32 */);
16000 write_bson_entry_header(name, 0x12 /* int64 */);
16010 @brief Writes a BSON element with key @a name and object @a value
16012 void write_bson_object_entry(const string_t& name,
16015 write_bson_entry_header(name, 0x03); // object
16043 @brief Writes a BSON element with key @a name and array @a value
16045 void write_bson_array(const string_t& name,
16048 write_bson_entry_header(name, 0x04); // array
16062 @brief Writes a BSON element with key @a name and binary value @a value
16064 void write_bson_binary(const string_t& name,
16067 write_bson_entry_header(name, 0x05);
16076 @brief Calculates the size necessary to serialize the JSON value @a j with its @a name
16077 @return The calculated size for the BSON document entry for @a j with the given @a name.
16079 static std::size_t calc_bson_element_size(const string_t& name,
16082 const auto header_size = calc_bson_entry_header_size(name, j);
16123 key @a name.
16124 @param name The name to associate with the JSON entity @a j within the
16127 void write_bson_element(const string_t& name,
16133 return write_bson_object_entry(name, *j.m_value.object);
16136 return write_bson_array(name, *j.m_value.array);
16139 return write_bson_binary(name, *j.m_value.binary);
16142 return write_bson_boolean(name, j.m_value.boolean);
16145 return write_bson_double(name, j.m_value.number_float);
16148 return write_bson_integer(name, j.m_value.number_integer);
16151 return write_bson_unsigned(name, j);
16154 return write_bson_string(name, *j.m_value.string);
16157 return write_bson_null(name);
19358 /// @name exceptions
19376 /// @name container types
19429 result["name"] = "JSON for Modern C++";
19492 /// @name JSON value data types
19976 /// @name constructors and destructors
20431 /// @name object inspection
20702 /// @name value access
21098 /// @name element access
21813 /// @name lookup
21931 /// @name iterators
22070 /// @name capacity
22192 /// @name modifiers
22745 /// @name lexicographical comparison operators
23140 /// @name serialization
23179 /// @name deserialization
23376 /// @name binary serialization/deserialization support
23760 /// @name JSON Pointer functions
23841 /// @name JSON Patch functions
24200 // escape the key name to be used in a JSON patch
24264 /// @name JSON Merge Patch functions
24374 inline void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL& j1, nlohmann::NLOHMANN_BASIC_JSON_TPL& j2) noexcept( // NOLINT(readability-inconsistent-declaration-parameter-name)