Home
last modified time | relevance | path

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

/third_party/json/include/nlohmann/detail/output/
Dserializer.hpp702 auto buffer_ptr = number_buffer.begin(); in dump_integer()
724 JSON_ASSERT(n_chars < number_buffer.size() - 1); in dump_integer()
751 o->write_characters(number_buffer.data(), n_chars); in dump_integer()
785 char* begin = number_buffer.data(); in dump_float()
786 char* end = ::nlohmann::detail::to_chars(begin, begin + number_buffer.size(), x); in dump_float()
797 … std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x); in dump_float()
802 JSON_ASSERT(static_cast<std::size_t>(len) < number_buffer.size()); in dump_float()
807 const auto end = std::remove(number_buffer.begin(), in dump_float()
808 number_buffer.begin() + len, thousands_sep); in dump_float()
809 std::fill(end, number_buffer.end(), '\0'); 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/cJSON/
DcJSON.c551 unsigned char number_buffer[26] = {0}; /* temporary buffer to print the number into */ in print_number() local
563 length = sprintf((char*)number_buffer, "null"); in print_number()
568 length = sprintf((char*)number_buffer, "%1.15g", d); in print_number()
571 if ((sscanf((char*)number_buffer, "%lg", &test) != 1) || !compare_double((double)test, d)) in print_number()
574 length = sprintf((char*)number_buffer, "%1.17g", d); in print_number()
579 if ((length < 0) || (length > (int)(sizeof(number_buffer) - 1))) in print_number()
595 if (number_buffer[i] == decimal_point) in print_number()
601 output_pointer[i] = number_buffer[i]; in print_number()
/third_party/json/single_include/nlohmann/
Djson.hpp16139 auto buffer_ptr = number_buffer.begin(); in dump_integer()
16161 JSON_ASSERT(n_chars < number_buffer.size() - 1); in dump_integer()
16188 o->write_characters(number_buffer.data(), n_chars); in dump_integer()
16222 char* begin = number_buffer.data(); in dump_float()
16223 char* end = ::nlohmann::detail::to_chars(begin, begin + number_buffer.size(), x); in dump_float()
16234 … std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x); in dump_float()
16239 JSON_ASSERT(static_cast<std::size_t>(len) < number_buffer.size()); in dump_float()
16244 const auto end = std::remove(number_buffer.begin(), in dump_float()
16245 number_buffer.begin() + len, thousands_sep); in dump_float()
16246 std::fill(end, number_buffer.end(), '\0'); in dump_float()
[all …]