Lines Matching defs:current

3018 /// struct to capture the start position of the current token
3023 /// the number of characters read in the current line
4331 for (const auto* current = leaf_element; current != nullptr && current->m_parent != nullptr; current = current->m_parent)
4333 switch (current->m_parent->type())
4337 for (std::size_t i = 0; i < current->m_parent->m_value.array->size(); ++i)
4339 if (&current->m_parent->m_value.array->operator[](i) == current)
4350 for (const auto& element : *current->m_parent->m_value.object)
4352 if (&element.second == current)
6214 : current(std::move(first)), end(std::move(last))
6219 if (JSON_HEDLEY_LIKELY(current != end))
6221 auto result = std::char_traits<char_type>::to_int_type(*current);
6222 std::advance(current, 1);
6230 IteratorType current;
6238 return current == end;
6264 // get the current character
6322 // get the current character
7184 // check if we should store an element for the current key
7473 JSON_ASSERT(current == 'u');
7481 if (current >= '0' && current <= '9')
7483 codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x30u) << factor);
7485 else if (current >= 'A' && current <= 'F')
7487 codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x37u) << factor);
7489 else if (current >= 'a' && current <= 'f')
7491 codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x57u) << factor);
7506 Adds the current byte and, for each passed range, reads a new byte and
7521 add(current);
7526 if (JSON_HEDLEY_LIKELY(*range <= current && current <= *(++range)))
7528 add(current);
7561 JSON_ASSERT(current == '\"');
8012 add(current);
8266 @note The scanner is independent of the current locale. Internally, the
8280 switch (current)
8284 add(current);
8290 add(current);
8304 add(current);
8320 add(current);
8334 add(current);
8358 add(current);
8381 add(current);
8394 add(current);
8418 add(current);
8444 add(current);
8451 add(current);
8467 add(current);
8482 add(current);
8509 add(current);
8535 add(current);
8604 JSON_ASSERT(std::char_traits<char_type>::to_char_type(current) == literal_text[0]);
8620 /// reset token_buffer; current character is beginning of token
8625 token_string.push_back(std::char_traits<char_type>::to_char_type(current));
8645 // just reset the next_unget variable and work with current
8650 current = ia.get_character();
8653 if (JSON_HEDLEY_LIKELY(current != std::char_traits<char_type>::eof()))
8655 token_string.push_back(std::char_traits<char_type>::to_char_type(current));
8658 if (current == '\n')
8664 return current;
8668 @brief unget current character (read it again on next get)
8694 if (JSON_HEDLEY_LIKELY(current != std::char_traits<char_type>::eof()))
8730 /// return current string value (implicitly resets the token; useful only once)
8807 while (current == ' ' || current == '\t' || current == '\n' || current == '\r');
8823 while (ignore_comments && current == '/')
8834 switch (current)
8905 /// the current character
8906 char_int_type current = std::char_traits<char_type>::eof();
8908 /// whether the next get() call should just return current
8911 /// the start position of the current token
9223 if (JSON_HEDLEY_UNLIKELY(current != std::char_traits<char_type>::eof()))
9277 if (current == 0x00)
9281 *out++ = static_cast<typename string_t::value_type>(current);
9497 switch (get_char ? get() : current)
9528 return sax->number_unsigned(static_cast<number_unsigned_t>(current));
9579 return sax->number_integer(static_cast<std::int8_t>(0x20 - 1 - current));
9702 conditional_static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x1Fu), tag_handler);
9756 return get_cbor_object(conditional_static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x1Fu), tag_handler);
9817 switch (current)
9853 switch (current)
9992 switch (current)
10020 return get_string(input_format_t::cbor, static_cast<unsigned int>(current) & 0x1Fu, result);
10088 switch (current)
10116 return get_binary(input_format_t::cbor, static_cast<unsigned int>(current) & 0x1Fu, result);
10407 return sax->number_unsigned(static_cast<number_unsigned_t>(current));
10426 return get_msgpack_object(conditional_static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x0Fu));
10445 return get_msgpack_array(conditional_static_cast<std::size_t>(static_cast<unsigned int>(current) & 0x0Fu));
10630 return sax->number_integer(static_cast<std::int8_t>(current));
10658 switch (current)
10694 return get_string(input_format_t::msgpack, static_cast<unsigned int>(current) & 0x1Fu, result);
10743 switch (current)
10906 return get_ubjson_value(get_char ? get_ignore_noop() : current);
10935 switch (current)
11059 while (current != ']')
11061 if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_value(dimlen, no_ndarray, current)))
11314 if (current == '$')
11331 if (JSON_HEDLEY_UNLIKELY(current != '#'))
11355 if (current == '#')
11524 if (JSON_HEDLEY_UNLIKELY(current > 127))
11530 string_t s(1, static_cast<typename string_t::value_type>(current));
11648 while (current != ']')
11726 while (current != '}')
11767 number_vector.push_back(static_cast<char>(current));
11829 return current = ia.get_character();
11841 while (current == 'N');
11843 return current;
11850 @param[in] format the current format (for diagnostics)
11877 vec[sizeof(NumberType) - i - 1] = static_cast<std::uint8_t>(current);
11881 vec[i] = static_cast<std::uint8_t>(current); // LCOV_EXCL_LINE
11894 @param[in] format the current format (for diagnostics)
11918 result.push_back(static_cast<typename string_t::value_type>(current));
11927 @param[in] format the current format (for diagnostics)
11951 result.push_back(static_cast<std::uint8_t>(current));
11957 @param[in] format the current format (for diagnostics)
11964 if (JSON_HEDLEY_UNLIKELY(current == std::char_traits<char_type>::eof()))
11978 static_cast<void>((std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(current))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
11983 @param[in] format the current format
12030 /// the current character
12031 char_int_type current = std::char_traits<char_type>::eof();
13996 token _and_ the current value is primitive. In this case, we have
14409 @param[in] reference_string the reference string to the current value
16125 current BSON document
17989 @param[in] current_indent the current indent level (only used internally)
18769 be rejected, because the current byte is not allowed. If the string is
19736 // flatten the current json_value to a heap-allocated stack
19843 container's elements must have the current value as parent.
20203 // make sure iterator fits the current value
20685 type of the current JSON
20822 This overloads converts the current @ref basic_json in a different
20890 - If the requested type is the current @ref basic_json, or a different @ref basic_json convertible
20891 from the current @ref basic_json.
21597 // make sure iterator fits the current value
21600 JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
21667 // make sure iterator fits the current value
21670 JSON_THROW(invalid_iterator::create(203, "iterators do not fit current value", this));
22463 JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
22490 JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
22513 JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
22544 JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
23361 /// the type of the current element
23364 /// the value of the current element
24115 /// @brief applies a JSON patch to a copy of the current object