/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/ |
D | decimal_point.pass.cpp | 64 assert(f.decimal_point() == std::numeric_limits<char>::max()); in main() 68 assert(f.decimal_point() == std::numeric_limits<char>::max()); in main() 72 assert(f.decimal_point() == std::numeric_limits<wchar_t>::max()); in main() 76 assert(f.decimal_point() == std::numeric_limits<wchar_t>::max()); in main() 81 assert(f.decimal_point() == '.'); in main() 85 assert(f.decimal_point() == '.'); in main() 89 assert(f.decimal_point() == L'.'); in main() 93 assert(f.decimal_point() == L'.'); in main() 98 assert(f.decimal_point() == ','); in main() 102 assert(f.decimal_point() == ','); in main() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | double-conversion-bignum-dtoa.cpp | 81 int* decimal_point, 91 static void BignumToFixed(int requested_digits, int* decimal_point, 98 static void GenerateCountedDigits(int count, int* decimal_point, 104 Vector<char> buffer, int* length, int* decimal_point) { in BignumDtoa() argument 139 *decimal_point = -requested_digits; in BignumDtoa() 157 FixupMultiply10(estimated_power, is_even, decimal_point, in BignumDtoa() 170 BignumToFixed(requested_digits, decimal_point, in BignumDtoa() 175 GenerateCountedDigits(requested_digits, decimal_point, in BignumDtoa() 297 static void GenerateCountedDigits(int count, int* decimal_point, in GenerateCountedDigits() argument 329 (*decimal_point)++; in GenerateCountedDigits() [all …]
|
D | double-conversion.cpp | 131 int decimal_point, 135 if (decimal_point <= 0) { 140 result_builder->AddPadding('0', -decimal_point); 141 ASSERT(length <= digits_after_point - (-decimal_point)); 143 int remaining_digits = digits_after_point - (-decimal_point) - length; 146 } else if (decimal_point >= length) { 149 result_builder->AddPadding('0', decimal_point - length); 157 result_builder->AddSubstring(decimal_digits, decimal_point); 159 ASSERT(length - decimal_point <= digits_after_point); 160 result_builder->AddSubstring(&decimal_digits[decimal_point], [all …]
|
D | double-conversion-fast-dtoa.h | 98 int* decimal_point);
|
D | double-conversion.h | 382 int decimal_point,
|
D | double-conversion-fast-dtoa.cpp | 654 int* decimal_point) { in FastDtoa() argument 673 *decimal_point = *length + decimal_exponent; in FastDtoa()
|
/external/v8/src/ |
D | bignum-dtoa.cc | 45 int* decimal_point, 55 static void BignumToFixed(int requested_digits, int* decimal_point, 62 static void GenerateCountedDigits(int count, int* decimal_point, 68 Vector<char> buffer, int* length, int* decimal_point) { in BignumDtoa() argument 88 *decimal_point = -requested_digits; in BignumDtoa() 106 FixupMultiply10(estimated_power, is_even, decimal_point, in BignumDtoa() 118 BignumToFixed(requested_digits, decimal_point, in BignumDtoa() 123 GenerateCountedDigits(requested_digits, decimal_point, in BignumDtoa() 245 static void GenerateCountedDigits(int count, int* decimal_point, in GenerateCountedDigits() argument 276 (*decimal_point)++; in GenerateCountedDigits() [all …]
|
D | fixed-dtoa.cc | 171 static void DtoaRoundUp(Vector<char> buffer, int* length, int* decimal_point) { in DtoaRoundUp() argument 175 *decimal_point = 1; in DtoaRoundUp() 196 (*decimal_point)++; in DtoaRoundUp() 214 int* length, int* decimal_point) { in FillFractionals() argument 244 DtoaRoundUp(buffer, length, decimal_point); in FillFractionals() 263 DtoaRoundUp(buffer, length, decimal_point); in FillFractionals() 271 static void TrimZeros(Vector<char> buffer, int* length, int* decimal_point) { in TrimZeros() argument 284 *decimal_point -= first_non_zero; in TrimZeros() 293 int* decimal_point) { in FastFixedDtoa() argument 344 *decimal_point = *length; in FastFixedDtoa() [all …]
|
D | conversions.cc | 962 int decimal_point; in DoubleToCString() local 970 &sign, &length, &decimal_point); in DoubleToCString() 974 if (length <= decimal_point && decimal_point <= 21) { in DoubleToCString() 977 builder.AddPadding('0', decimal_point - length); in DoubleToCString() 979 } else if (0 < decimal_point && decimal_point <= 21) { in DoubleToCString() 981 builder.AddSubstring(decimal_rep, decimal_point); in DoubleToCString() 983 builder.AddString(decimal_rep + decimal_point); in DoubleToCString() 985 } else if (decimal_point <= 0 && decimal_point > -6) { in DoubleToCString() 988 builder.AddPadding('0', -decimal_point); in DoubleToCString() 999 builder.AddCharacter((decimal_point >= 0) ? '+' : '-'); in DoubleToCString() [all …]
|
D | fixed-dtoa.h | 30 Vector<char> buffer, int* length, int* decimal_point);
|
D | fast-dtoa.h | 58 int* decimal_point);
|
D | fast-dtoa.cc | 700 int* decimal_point) { in FastDtoa() argument 718 *decimal_point = *length + decimal_exponent; in FastDtoa()
|
/external/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/ |
D | decimal_point.pass.cpp | 31 assert(np.decimal_point() == '.'); in main() 36 assert(np.decimal_point() == L'.'); in main() 44 assert(np.decimal_point() == '.'); in main() 49 assert(np.decimal_point() == L'.'); in main() 57 assert(np.decimal_point() == ','); in main() 62 assert(np.decimal_point() == L','); in main()
|
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct/locale.moneypunct.members/ |
D | decimal_point.pass.cpp | 61 assert(f.decimal_point() == std::numeric_limits<char>::max()); in main() 65 assert(f.decimal_point() == std::numeric_limits<char>::max()); in main() 69 assert(f.decimal_point() == std::numeric_limits<wchar_t>::max()); in main() 73 assert(f.decimal_point() == std::numeric_limits<wchar_t>::max()); in main()
|
/external/grpc-grpc/src/core/ext/filters/client_channel/ |
D | method_params.cc | 61 char* decimal_point = strchr(buf.get(), '.'); in ParseDuration() local 63 if (decimal_point != nullptr) { in ParseDuration() 64 *decimal_point = '\0'; in ParseDuration() 65 nanos = gpr_parse_nonnegative_int(decimal_point + 1); in ParseDuration() 69 int num_digits = static_cast<int>(strlen(decimal_point + 1)); in ParseDuration() 78 decimal_point == buf.get() ? 0 : gpr_parse_nonnegative_int(buf.get()); in ParseDuration()
|
/external/python/cpython3/Python/ |
D | pystrtod.c | 169 const char *decimal_point; in _PyOS_ascii_strtod() local 181 decimal_point = locale_data->decimal_point; in _PyOS_ascii_strtod() 182 decimal_point_len = strlen(decimal_point); in _PyOS_ascii_strtod() 220 if (decimal_point[0] != '.' || in _PyOS_ascii_strtod() 221 decimal_point[1] != 0) in _PyOS_ascii_strtod() 246 else if (strncmp(p, decimal_point, decimal_point_len) == 0) in _PyOS_ascii_strtod() 268 memcpy(c, decimal_point, decimal_point_len); in _PyOS_ascii_strtod() 453 const char *decimal_point = locale_data->decimal_point; in change_decimal_from_locale_to_dot() local 455 if (decimal_point[0] != '.' || decimal_point[1] != 0) { in change_decimal_from_locale_to_dot() 456 size_t decimal_point_len = strlen(decimal_point); in change_decimal_from_locale_to_dot() [all …]
|
D | formatter_unicode.c | 396 PyObject *decimal_point; member 479 spec->n_decimal = has_decimal ? PyUnicode_GET_LENGTH(locale->decimal_point) : 0; in calc_number_widths() 585 *maxchar = Py_MAX(*maxchar, PyUnicode_MAX_CHAR_VALUE(locale->decimal_point)); in calc_number_widths() 668 locale->decimal_point, 0, spec->n_decimal); in fill_number() 702 if (_Py_GetLocaleconvNumeric(&locale_info->decimal_point, in get_locale_info() 722 locale_info->decimal_point = PyUnicode_FromOrdinal('.'); in get_locale_info() 725 if (!locale_info->decimal_point || !locale_info->thousands_sep) in get_locale_info() 735 locale_info->decimal_point = PyUnicode_FromOrdinal('.'); in get_locale_info() 737 if (!locale_info->decimal_point || !locale_info->thousands_sep) in get_locale_info() 748 Py_XDECREF(locale_info->decimal_point); in free_locale_info()
|
D | fileutils.c | 1792 _Py_GetLocaleconvNumeric(PyObject **decimal_point, PyObject **thousands_sep, in _Py_GetLocaleconvNumeric() argument 1800 if (decimal_point != NULL && in _Py_GetLocaleconvNumeric() 1801 (strlen(lc->decimal_point) > 1 || ((unsigned char)lc->decimal_point[0]) > 127)) in _Py_GetLocaleconvNumeric() 1840 if (decimal_point != NULL) { in _Py_GetLocaleconvNumeric() 1841 *decimal_point = PyUnicode_DecodeLocale(lc->decimal_point, NULL); in _Py_GetLocaleconvNumeric() 1842 if (*decimal_point == NULL) { in _Py_GetLocaleconvNumeric()
|
/external/python/cpython2/Python/ |
D | pystrtod.c | 130 const char *decimal_point; in _PyOS_ascii_strtod() local 142 decimal_point = locale_data->decimal_point; in _PyOS_ascii_strtod() 143 decimal_point_len = strlen(decimal_point); in _PyOS_ascii_strtod() 181 if (decimal_point[0] != '.' || in _PyOS_ascii_strtod() 182 decimal_point[1] != 0) in _PyOS_ascii_strtod() 207 else if (strncmp(p, decimal_point, decimal_point_len) == 0) in _PyOS_ascii_strtod() 229 memcpy(c, decimal_point, decimal_point_len); in _PyOS_ascii_strtod() 379 const char *decimal_point = locale_data->decimal_point; in change_decimal_from_locale_to_dot() local 381 if (decimal_point[0] != '.' || decimal_point[1] != 0) { in change_decimal_from_locale_to_dot() 382 size_t decimal_point_len = strlen(decimal_point); in change_decimal_from_locale_to_dot() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/posix/ |
D | POSIX_LCNumeric.java | 16 String decimal_point; field in POSIX_LCNumeric 24 …decimal_point = POSIXUtilities.POSIXCharName(doc.getWinningValue("//ldml/numbers/symbols[@numberSy… in POSIX_LCNumeric() 41 out.println("decimal_point \"" + decimal_point + "\""); in write()
|
/external/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct/facet.numpunct.members/ |
D | decimal_point.pass.cpp | 25 assert(np.decimal_point() == '.'); in main() 30 assert(np.decimal_point() == L'.'); in main()
|
/external/libcups/cups/ |
D | string.c | 234 if (loc && loc->decimal_point) in _cupsStrFormatd() 236 dec = loc->decimal_point; in _cupsStrFormatd() 448 if (loc && loc->decimal_point) in _cupsStrScand() 450 strlcpy(tempptr, loc->decimal_point, sizeof(temp) - (size_t)(tempptr - temp)); in _cupsStrScand()
|
/external/python/cpython3/Modules/ |
D | _localemodule.c | 263 PyObject *decimal_point, *thousands_sep; in PyLocale_localeconv() local 265 if (_Py_GetLocaleconvNumeric(&decimal_point, in PyLocale_localeconv() 271 if (PyDict_SetItemString(result, "decimal_point", decimal_point) < 0) { in PyLocale_localeconv() 272 Py_DECREF(decimal_point); in PyLocale_localeconv() 276 Py_DECREF(decimal_point); in PyLocale_localeconv()
|
/external/python/cpython2/Objects/stringlib/ |
D | formatter.h | 372 char *decimal_point; member 450 spec->n_decimal = has_decimal ? strlen(locale->decimal_point) : 0; in calc_number_widths() 615 buf[t] = locale->decimal_point[t]; in fill_number() 644 locale_info->decimal_point = locale_data->decimal_point; in get_locale_info() 650 locale_info->decimal_point = "."; in get_locale_info() 657 locale_info->decimal_point = "."; in get_locale_info()
|
/external/python/cpython2/Lib/ |
D | locale.py | 211 decimal_point = localeconv()[monetary and 'mon_decimal_point' 213 formatted = decimal_point.join(parts)
|