Lines Matching refs:with
2765 // allows to call any std function as if (e.g. with begin):
2839 @ref basic_json::is_number() (with @ref basic_json::is_number_integer(),
2852 value with the default value for a given type
2878 string; however, making a binary array directly comparable with a string would
2945 occurrences of @a f are replaced with @a t
2946 @param[in] f the substring to replace with @a t
2950 enforced with an assertion.**
2961 s.replace(pos, f.size(), t), // replace with t, and
3091 // working with C++11 variadic templates). `absl::integer_sequence` is designed
3271 // doesn't work with SFINAE. See https://github.com/nlohmann/json/issues/1341.
3422 @brief detail namespace with internal helper functions
3698 // macOS's is_constructible does not play well with nonesuch...
3931 // - KeyType is comparable with BasicJsonType::object_t::key_type
4404 @param[in] pos the position where the error occurred (or with
4432 @note For an input with n bytes, 1 is the index of the first character and
4449 /// @brief exception indicating errors with iterators
4467 /// @brief exception indicating executing a member function with a wrong type
6491 // Special cases with fast paths
7125 callback function with an empty array or object, respectively.
7623 int codepoint = codepoint1; // start with codepoint1
7655 // in the result, so we have to subtract with:
8235 The function is realized with a deterministic finite state machine derived
8253 The state machine is realized with one label per state (prefixed with
8267 locale's decimal point is used instead of `.` to work with the
8346 // state: we just parse a zero (maybe with a leading minus sign)
8367 // state: we just parsed a number 0-9 (maybe with a leading minus sign)
8645 // just reset the next_unget variable and work with current
9418 indicated with the argument @a is_array which one is expected
9979 Additionally, CBOR's strings with indefinite lengths are supported.
10075 Additionally, CBOR's byte arrays with indefinite lengths are supported.
11864 // step 1: read input into array with system's byte order
12488 // We are done with this array. Before we can parse a
12542 // We are done with this object. Before we can parse a
12764 unions members with complex constructors, see https://github.com/nlohmann/json/pull/105.
12835 /// the iterator with BasicJsonType of different const-ness
12922 defined. Combined with the following converting constructor and
13369 JSON_THROW(invalid_iterator::create(209, "cannot use offsets with object iterators", m_object));
13448 JSON_THROW(invalid_iterator::create(209, "cannot use offsets with object iterators", m_object));
13889 @throw parse_error.106 if an array index begins with '0'
13890 @throw parse_error.109 if an array index begins not with a digit
13902 JSON_THROW(detail::parse_error::create(106, 0, detail::concat("array index '", s, "' must not begin with '0'"), nullptr));
13998 single value; that is, with an empty list of reference tokens.
14020 with pointer `"/this/that"` on a null value is equivalent to calling
14030 @throw parse_error.106 if an array index begins with '0'
14097 @throw parse_error.106 if an array index begins with '0'
14155 @throw parse_error.106 if an array index begins with '0'
14204 @throw parse_error.106 if an array index begins with '0'
14255 @throw parse_error.106 if an array index begins with '0'
14344 @throw parse_error.107 if the pointer is not empty or begins with '/'
14357 // check if nonempty reference string begins with slash
14360 JSON_THROW(detail::parse_error::create(107, 1, detail::concat("JSON pointer must be empty or begin with '/' - was: '", reference_string, "'"), nullptr));
14395 JSON_THROW(detail::parse_error::create(108, 0, "escape character '~' must be followed with '0' or '1'", nullptr));
14469 // add primitive value with its reference string
15900 @brief Writes a BSON element with key @a name and boolean value @a value
15910 @brief Writes a BSON element with key @a name and double value @a value
15928 @brief Writes a BSON element with key @a name and string value @a value
15942 @brief Writes a BSON element with key @a name and null value
15960 @brief Writes a BSON element with key @a name and integer @a value
15988 @brief Writes a BSON element with key @a name and unsigned @a value
16010 @brief Writes a BSON element with key @a name and object @a value
16043 @brief Writes a BSON element with key @a name and array @a value
16062 @brief Writes a BSON element with key @a name and binary value @a value
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.
16122 @brief Serializes the JSON value @a j to BSON and associates it with the
16124 @param name The name to associate with the JSON entity @a j within the
16666 // step 2: write array to output (with possible reordering)
16820 [1] Loitsch, "Printing Floating-Point Numbers Quickly and Accurately with
17134 // normalized diyfp's w = f * 2^e, with q = 64,
17469 // V = buffer * 10^n, with M- <= V <= M+.
17477 // The rounding procedure works with diyfp's with an implicit
17577 // V = buffer * 10^-m, with M- <= V <= M+.
17583 // same with ulp in order to keep the units in sync.
17730 // This is for compatibility with printf("%g").
17890 // Use digits10 here to increase compatibility with version 2.
17930 replace, ///< replace invalid UTF-8 sequences with U+FFFD
17986 in the output are escaped with `\uXXXX` sequences, and the result consists
18270 @param[in] ensure_ascii whether to escape non-ASCII characters with
18586 Dump a given integer to output stream @a o. Works internally with
18679 with @a number_buffer.
18768 be called initially with state 0 (accept). State 1 means the string must
19112 // v | destroy e and re-construct with h
19414 /// @brief returns the allocator associated with the container
19503 // in functions involving lookup by key with types other than object_t::key_type (aka. StringType)
19603 /// object (stored with pointer to save storage)
19605 /// array (stored with pointer to save storage)
19607 /// string (stored with pointer to save storage)
19609 /// binary (stored with pointer to save storage)
19940 #pragma warning(disable : 4127) // ignore warning to replace if with if constexpr
19981 /// @brief create an empty value with a given type
20074 // check if each element is an array with two elements whose first
20134 /// @brief explicitly create a binary array (with subtype)
20156 /// @brief explicitly create a binary array (with subtype)
20183 /// @brief construct an array with count copies of given value
20293 JSON_THROW(invalid_iterator::create(206, detail::concat("cannot construct with iterators from ", first.m_object->type_name()), first.m_object));
20917 "get() cannot be used with reference types, you might want to use get_ref()");
20970 // specialization to allow calling get_to with a basic_json value
21102 /// @brief access specified array element with bounds checking
21121 JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
21125 /// @brief access specified array element with bounds checking
21144 JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
21148 /// @brief access specified object element with bounds checking
21155 JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
21166 /// @brief access specified object element with bounds checking
21175 JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
21186 /// @brief access specified object element with bounds checking
21193 JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
21204 /// @brief access specified object element with bounds checking
21213 JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
21239 // fill up array with null values if given idx is outside range
21267 JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a numeric argument with ", type_name()), this));
21280 JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a numeric argument with ", type_name()), this));
21302 JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a string argument with ", type_name()), this));
21317 JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a string argument with ", type_name()), this));
21355 JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a string argument with ", type_name()), this));
21372 JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a string argument with ", type_name()), this));
21386 /// @brief access specified object element with default value
21407 JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
21410 /// @brief access specified object element with default value
21432 JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
21435 /// @brief access specified object element with default value
21458 JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
21461 /// @brief access specified object element via JSON Pointer with default value
21485 JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
21488 /// @brief access specified object element via JSON Pointer with default value
21509 JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
21512 /// @brief access specified object element via JSON Pointer with default value
21534 JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
21654 JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
21727 JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
21741 JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
21754 JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
21802 JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
22031 /// that is, replace `json::iterator_wrapper(j)` with `j.items()`.
22042 /// that is, replace `json::iterator_wrapper(j)` with `j.items()`.
22263 JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this));
22296 JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this));
22328 JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this));
22384 JSON_THROW(type_error::create(311, detail::concat("cannot use emplace_back() with ", type_name()), this));
22409 JSON_THROW(type_error::create(311, detail::concat("cannot use emplace() with ", type_name()), this));
22470 JSON_THROW(type_error::create(309, detail::concat("cannot use insert() with ", type_name()), this));
22497 JSON_THROW(type_error::create(309, detail::concat("cannot use insert() with ", type_name()), this));
22507 JSON_THROW(type_error::create(309, detail::concat("cannot use insert() with ", type_name()), this));
22538 JSON_THROW(type_error::create(309, detail::concat("cannot use insert() with ", type_name()), this));
22558 JSON_THROW(type_error::create(309, detail::concat("cannot use insert() with ", type_name()), this));
22597 JSON_THROW(type_error::create(312, detail::concat("cannot use update() with ", type_name()), this));
22609 JSON_THROW(type_error::create(312, detail::concat("cannot use update() with ", first.m_object->type_name()), first.m_object));
22671 JSON_THROW(type_error::create(310, detail::concat("cannot use swap(array_t&) with ", type_name()), this));
22687 JSON_THROW(type_error::create(310, detail::concat("cannot use swap(object_t&) with ", type_name()), this));
22703 JSON_THROW(type_error::create(310, detail::concat("cannot use swap(string_t&) with ", type_name()), this));
22719 JSON_THROW(type_error::create(310, detail::concat("cannot use swap(binary_t&) with ", type_name()), this));
22735 JSON_THROW(type_error::create(310, detail::concat("cannot use swap(binary_t::container_type&) with ", type_name()), this));
23165 /// replace calls like `j >> o;` with `o << j;`.
23305 /// replace calls like `j << i;` with `i >> j;`.
24060 // location with the value that was just removed.