Home
last modified time | relevance | path

Searched refs:number_buffer (Results 1 – 6 of 6) sorted by relevance

/third_party/json/include/nlohmann/detail/output/
Dserializer.hpp740 …auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,… in dump_integer()
761 JSON_ASSERT(n_chars < number_buffer.size() - 1); in dump_integer()
788 o->write_characters(number_buffer.data(), n_chars); in dump_integer()
822 auto* begin = number_buffer.data(); in dump_float()
823 auto* end = ::nlohmann::detail::to_chars(begin, begin + number_buffer.size(), x); in dump_float()
835 … std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x); in dump_float()
840 JSON_ASSERT(static_cast<std::size_t>(len) < number_buffer.size()); in dump_float()
846 … const auto end = std::remove(number_buffer.begin(), number_buffer.begin() + len, thousands_sep); in dump_float()
847 std::fill(end, number_buffer.end(), '\0'); in dump_float()
848 JSON_ASSERT((end - number_buffer.begin()) <= len); in dump_float()
[all …]
/third_party/node/src/tracing/
Dtraced_value.cc32 char number_buffer[10]; in EscapeString() local
51 number_buffer, arraysize(number_buffer), "\\u%04X", in EscapeString()
53 result += number_buffer; in EscapeString()
76 number_buffer, arraysize(number_buffer), "\\u%04X", in EscapeString()
78 result += number_buffer; in EscapeString()
/third_party/node/deps/v8/src/tracing/
Dtraced-value.cc60 char number_buffer[8]; in EscapeAndAppendString() local
61 base::OS::SNPrintF(number_buffer, arraysize(number_buffer), "\\u%04X", in EscapeAndAppendString()
63 *result += number_buffer; in EscapeAndAppendString()
/third_party/cJSON/
DcJSON.c556 unsigned char number_buffer[26] = {0}; /* temporary buffer to print the number into */ in print_number() local
568 length = sprintf((char*)number_buffer, "null"); in print_number()
572 length = sprintf((char*)number_buffer, "%d", item->valueint); in print_number()
577 length = sprintf((char*)number_buffer, "%1.15g", d); in print_number()
580 if ((sscanf((char*)number_buffer, "%lg", &test) != 1) || !compare_double((double)test, d)) in print_number()
583 length = sprintf((char*)number_buffer, "%1.17g", d); in print_number()
588 if ((length < 0) || (length > (int)(sizeof(number_buffer) - 1))) in print_number()
604 if (number_buffer[i] == decimal_point) in print_number()
610 output_pointer[i] = number_buffer[i]; in print_number()
/third_party/json/tests/abi/include/nlohmann/
Djson_v3_10_5.hpp16764 …auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,… in dump_integer()
16785 JSON_ASSERT(n_chars < number_buffer.size() - 1); in dump_integer()
16812 o->write_characters(number_buffer.data(), n_chars); in dump_integer()
16846 auto* begin = number_buffer.data(); in dump_float()
16847 auto* end = ::nlohmann::detail::to_chars(begin, begin + number_buffer.size(), x); in dump_float()
16859 … std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x); in dump_float()
16864 JSON_ASSERT(static_cast<std::size_t>(len) < number_buffer.size()); in dump_float()
16870 … const auto end = std::remove(number_buffer.begin(), number_buffer.begin() + len, thousands_sep); in dump_float()
16871 std::fill(end, number_buffer.end(), '\0'); in dump_float()
16872 JSON_ASSERT((end - number_buffer.begin()) <= len); in dump_float()
[all …]
/third_party/json/single_include/nlohmann/
Djson.hpp18624 …auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,… in dump_integer()
18645 JSON_ASSERT(n_chars < number_buffer.size() - 1); in dump_integer()
18672 o->write_characters(number_buffer.data(), n_chars); in dump_integer()
18706 auto* begin = number_buffer.data(); in dump_float()
18707 auto* end = ::nlohmann::detail::to_chars(begin, begin + number_buffer.size(), x); in dump_float()
18719 … std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x); in dump_float()
18724 JSON_ASSERT(static_cast<std::size_t>(len) < number_buffer.size()); in dump_float()
18730 … const auto end = std::remove(number_buffer.begin(), number_buffer.begin() + len, thousands_sep); in dump_float()
18731 std::fill(end, number_buffer.end(), '\0'); in dump_float()
18732 JSON_ASSERT((end - number_buffer.begin()) <= len); in dump_float()
[all …]