/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-golang/parse-number-fxx-test-data/slowstrconv/ |
D | slowstrconv.go | 86 if (h.numDigits == 0) || (h.decimalPoint < -threshold) { 150 numDigits uint16 member 160 for _, digit := range h.digits[:h.numDigits] { 179 h.decimalPoint = int32(h.numDigits) 182 if (c == '0') && (h.numDigits == 0) { // Ignore leading zeroes. 184 } else if h.numDigits < hpdPrecision { 185 h.digits[h.numDigits] = c - '0' 186 h.numDigits++ 198 h.decimalPoint = int32(h.numDigits) 245 if h.numDigits == 0 { [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/ |
D | DecimalQuantity_ByteArrayBCD.java | 70 protected void shiftLeft(int numDigits) { in shiftLeft() argument 71 ensureCapacity(precision + numDigits); in shiftLeft() 72 int i = precision + numDigits - 1; in shiftLeft() 73 for (; i >= numDigits; i--) { in shiftLeft() 74 bcd[i] = bcd[i - numDigits]; in shiftLeft() 79 scale -= numDigits; in shiftLeft() 80 precision += numDigits; in shiftLeft() 84 protected void shiftRight(int numDigits) { in shiftRight() argument 86 for (; i < precision - numDigits; i++) { in shiftRight() 87 bcd[i] = bcd[i + numDigits]; in shiftRight() [all …]
|
D | DecimalQuantity_64BitBCD.java | 70 protected void shiftLeft(int numDigits) { 71 assert precision + numDigits <= 16; 72 bcd <<= (numDigits * 4); 73 scale -= numDigits; 74 precision += numDigits; 78 protected void shiftRight(int numDigits) { 79 bcd >>>= (numDigits * 4); 80 scale += numDigits; 81 precision -= numDigits; 85 protected void popFromLeft(int numDigits) { [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/impl/number/ |
D | DecimalQuantity_ByteArrayBCD.java | 73 protected void shiftLeft(int numDigits) { in shiftLeft() argument 74 ensureCapacity(precision + numDigits); in shiftLeft() 75 int i = precision + numDigits - 1; in shiftLeft() 76 for (; i >= numDigits; i--) { in shiftLeft() 77 bcd[i] = bcd[i - numDigits]; in shiftLeft() 82 scale -= numDigits; in shiftLeft() 83 precision += numDigits; in shiftLeft() 87 protected void shiftRight(int numDigits) { in shiftRight() argument 89 for (; i < precision - numDigits; i++) { in shiftRight() 90 bcd[i] = bcd[i + numDigits]; in shiftRight() [all …]
|
D | DecimalQuantity_64BitBCD.java | 73 protected void shiftLeft(int numDigits) { 74 assert precision + numDigits <= 16; 75 bcd <<= (numDigits * 4); 76 scale -= numDigits; 77 precision += numDigits; 81 protected void shiftRight(int numDigits) { 82 bcd >>>= (numDigits * 4); 83 scale += numDigits; 84 precision -= numDigits; 88 protected void popFromLeft(int numDigits) { [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
D | DecimalQuantity_DualStorageBCD.java | 122 protected void shiftLeft(int numDigits) { in shiftLeft() argument 123 if (!usingBytes && precision + numDigits > 16) { in shiftLeft() 127 ensureCapacity(precision + numDigits); in shiftLeft() 128 int i = precision + numDigits - 1; in shiftLeft() 129 for (; i >= numDigits; i--) { in shiftLeft() 130 bcdBytes[i] = bcdBytes[i - numDigits]; in shiftLeft() 136 bcdLong <<= (numDigits * 4); in shiftLeft() 138 scale -= numDigits; in shiftLeft() 139 precision += numDigits; in shiftLeft() 143 protected void shiftRight(int numDigits) { in shiftRight() argument [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | DecimalQuantity_DualStorageBCD.java | 121 protected void shiftLeft(int numDigits) { in shiftLeft() argument 122 if (!usingBytes && precision + numDigits > 16) { in shiftLeft() 126 ensureCapacity(precision + numDigits); in shiftLeft() 127 System.arraycopy(bcdBytes, 0, bcdBytes, numDigits, precision); in shiftLeft() 128 Arrays.fill(bcdBytes, 0, numDigits, (byte) 0); in shiftLeft() 130 bcdLong <<= (numDigits * 4); in shiftLeft() 132 scale -= numDigits; in shiftLeft() 133 precision += numDigits; in shiftLeft() 137 protected void shiftRight(int numDigits) { in shiftRight() argument 140 for (; i < precision - numDigits; i++) { in shiftRight() [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | number_decimalquantity.cpp | 1024 void DecimalQuantity::shiftLeft(int32_t numDigits) { in shiftLeft() argument 1025 if (!usingBytes && precision + numDigits > 16) { in shiftLeft() 1029 ensureCapacity(precision + numDigits); in shiftLeft() 1030 uprv_memmove(fBCD.bcdBytes.ptr + numDigits, fBCD.bcdBytes.ptr, precision); in shiftLeft() 1031 uprv_memset(fBCD.bcdBytes.ptr, 0, numDigits); in shiftLeft() 1033 fBCD.bcdLong <<= (numDigits * 4); in shiftLeft() 1035 scale -= numDigits; in shiftLeft() 1036 precision += numDigits; in shiftLeft() 1039 void DecimalQuantity::shiftRight(int32_t numDigits) { in shiftRight() argument 1042 for (; i < precision - numDigits; i++) { in shiftRight() [all …]
|
D | tzfmt.cpp | 1936 int32_t numDigits = 0; in parseAbuttingOffsetFields() local 1944 numDigits++; in parseAbuttingOffsetFields() 1947 if (numDigits == 0) { in parseAbuttingOffsetFields() 1953 while (numDigits > 0) { in parseAbuttingOffsetFields() 1958 U_ASSERT(numDigits > 0 && numDigits <= MAX_OFFSET_DIGITS); in parseAbuttingOffsetFields() 1959 switch (numDigits) { in parseAbuttingOffsetFields() 1988 parsedLen = parsed[numDigits - 1]; in parseAbuttingOffsetFields() 1991 numDigits--; in parseAbuttingOffsetFields() 2110 int32_t numDigits = 0; in parseOffsetFieldWithLocalizedDigits() local 2114 while (idx < text.length() && numDigits < maxDigits) { in parseOffsetFieldWithLocalizedDigits() [all …]
|
D | number_decimalquantity.h | 453 void shiftLeft(int32_t numDigits); 461 void shiftRight(int32_t numDigits); 469 void popFromLeft(int32_t numDigits);
|
D | winnmfmt.cpp | 338 UnicodeString &Win32NumberFormat::format(int32_t numDigits, UnicodeString &appendTo, const wchar_t … in format() argument 402 formatInfo.currency.NumDigits = (UINT) numDigits; in format() 424 formatInfo.number.NumDigits = (UINT) numDigits; in format()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | number_decimalquantity.cpp | 1009 void DecimalQuantity::shiftLeft(int32_t numDigits) { in shiftLeft() argument 1010 if (!usingBytes && precision + numDigits > 16) { in shiftLeft() 1014 ensureCapacity(precision + numDigits); in shiftLeft() 1015 uprv_memmove(fBCD.bcdBytes.ptr + numDigits, fBCD.bcdBytes.ptr, precision); in shiftLeft() 1016 uprv_memset(fBCD.bcdBytes.ptr, 0, numDigits); in shiftLeft() 1018 fBCD.bcdLong <<= (numDigits * 4); in shiftLeft() 1020 scale -= numDigits; in shiftLeft() 1021 precision += numDigits; in shiftLeft() 1024 void DecimalQuantity::shiftRight(int32_t numDigits) { in shiftRight() argument 1027 for (; i < precision - numDigits; i++) { in shiftRight() [all …]
|
D | tzfmt.cpp | 1936 int32_t numDigits = 0; in parseAbuttingOffsetFields() local 1944 numDigits++; in parseAbuttingOffsetFields() 1947 if (numDigits == 0) { in parseAbuttingOffsetFields() 1953 while (numDigits > 0) { in parseAbuttingOffsetFields() 1958 U_ASSERT(numDigits > 0 && numDigits <= MAX_OFFSET_DIGITS); in parseAbuttingOffsetFields() 1959 switch (numDigits) { in parseAbuttingOffsetFields() 1988 parsedLen = parsed[numDigits - 1]; in parseAbuttingOffsetFields() 1991 numDigits--; in parseAbuttingOffsetFields() 2110 int32_t numDigits = 0; in parseOffsetFieldWithLocalizedDigits() local 2114 while (idx < text.length() && numDigits < maxDigits) { in parseOffsetFieldWithLocalizedDigits() [all …]
|
D | number_decimalquantity.h | 446 void shiftLeft(int32_t numDigits); 454 void shiftRight(int32_t numDigits); 462 void popFromLeft(int32_t numDigits);
|
/third_party/icu/icu4c/source/i18n/ |
D | number_decimalquantity.cpp | 1009 void DecimalQuantity::shiftLeft(int32_t numDigits) { in shiftLeft() argument 1010 if (!usingBytes && precision + numDigits > 16) { in shiftLeft() 1014 ensureCapacity(precision + numDigits); in shiftLeft() 1015 uprv_memmove(fBCD.bcdBytes.ptr + numDigits, fBCD.bcdBytes.ptr, precision); in shiftLeft() 1016 uprv_memset(fBCD.bcdBytes.ptr, 0, numDigits); in shiftLeft() 1018 fBCD.bcdLong <<= (numDigits * 4); in shiftLeft() 1020 scale -= numDigits; in shiftLeft() 1021 precision += numDigits; in shiftLeft() 1024 void DecimalQuantity::shiftRight(int32_t numDigits) { in shiftRight() argument 1027 for (; i < precision - numDigits; i++) { in shiftRight() [all …]
|
D | tzfmt.cpp | 1936 int32_t numDigits = 0; in parseAbuttingOffsetFields() local 1944 numDigits++; in parseAbuttingOffsetFields() 1947 if (numDigits == 0) { in parseAbuttingOffsetFields() 1953 while (numDigits > 0) { in parseAbuttingOffsetFields() 1958 U_ASSERT(numDigits > 0 && numDigits <= MAX_OFFSET_DIGITS); in parseAbuttingOffsetFields() 1959 switch (numDigits) { in parseAbuttingOffsetFields() 1988 parsedLen = parsed[numDigits - 1]; in parseAbuttingOffsetFields() 1991 numDigits--; in parseAbuttingOffsetFields() 2110 int32_t numDigits = 0; in parseOffsetFieldWithLocalizedDigits() local 2114 while (idx < text.length() && numDigits < maxDigits) { in parseOffsetFieldWithLocalizedDigits() [all …]
|
D | number_decimalquantity.h | 446 void shiftLeft(int32_t numDigits); 454 void shiftRight(int32_t numDigits); 462 void popFromLeft(int32_t numDigits);
|
D | winnmfmt.cpp | 343 UnicodeString &Win32NumberFormat::format(int32_t numDigits, UnicodeString &appendTo, const wchar_t … in format() argument 407 formatInfo.currency.NumDigits = (UINT) numDigits; in format() 429 formatInfo.number.NumDigits = (UINT) numDigits; in format()
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | number_decimalquantity.cpp | 874 void DecimalQuantity::shiftLeft(int32_t numDigits) { in shiftLeft() argument 875 if (!usingBytes && precision + numDigits > 16) { in shiftLeft() 879 ensureCapacity(precision + numDigits); in shiftLeft() 880 int i = precision + numDigits - 1; in shiftLeft() 881 for (; i >= numDigits; i--) { in shiftLeft() 882 fBCD.bcdBytes.ptr[i] = fBCD.bcdBytes.ptr[i - numDigits]; in shiftLeft() 888 fBCD.bcdLong <<= (numDigits * 4); in shiftLeft() 890 scale -= numDigits; in shiftLeft() 891 precision += numDigits; in shiftLeft() 894 void DecimalQuantity::shiftRight(int32_t numDigits) { in shiftRight() argument [all …]
|
D | tzfmt.cpp | 1931 int32_t numDigits = 0; in parseAbuttingOffsetFields() local 1939 numDigits++; in parseAbuttingOffsetFields() 1942 if (numDigits == 0) { in parseAbuttingOffsetFields() 1948 while (numDigits > 0) { in parseAbuttingOffsetFields() 1953 U_ASSERT(numDigits > 0 && numDigits <= MAX_OFFSET_DIGITS); in parseAbuttingOffsetFields() 1954 switch (numDigits) { in parseAbuttingOffsetFields() 1983 parsedLen = parsed[numDigits - 1]; in parseAbuttingOffsetFields() 1986 numDigits--; in parseAbuttingOffsetFields() 2105 int32_t numDigits = 0; in parseOffsetFieldWithLocalizedDigits() local 2109 while (idx < text.length() && numDigits < maxDigits) { in parseOffsetFieldWithLocalizedDigits() [all …]
|
D | number_decimalquantity.h | 411 void shiftLeft(int32_t numDigits); 413 void shiftRight(int32_t numDigits);
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | TimeZoneFormat.java | 2166 int numDigits = n >= 10 ? 2 : 1; 2167 for (int i = 0; i < minDigits - numDigits; i++) { 2170 if (numDigits == 2) { 2590 int numDigits = 0; 2598 numDigits++; 2601 if (numDigits == 0) { 2607 while (numDigits > 0) { 2612 assert(numDigits > 0 && numDigits <= 6); 2613 switch (numDigits) { 2642 parsedLen[0] = parsed[numDigits - 1]; [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | TimeZoneFormat.java | 2096 int numDigits = n >= 10 ? 2 : 1; 2097 for (int i = 0; i < minDigits - numDigits; i++) { 2100 if (numDigits == 2) { 2520 int numDigits = 0; 2528 numDigits++; 2531 if (numDigits == 0) { 2537 while (numDigits > 0) { 2542 assert(numDigits > 0 && numDigits <= 6); 2543 switch (numDigits) { 2572 parsedLen[0] = parsed[numDigits - 1]; [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | VersionInfo.java | 651 int numDigits = maxDigits; in getVersionString() local 652 while (numDigits > minDigits) { in getVersionString() 653 if (digits[numDigits - 1] != 0) { in getVersionString() 656 numDigits--; in getVersionString() 661 for (int i = 1; i < numDigits; i++) { in getVersionString()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
D | VersionInfo.java | 650 int numDigits = maxDigits; in getVersionString() local 651 while (numDigits > minDigits) { in getVersionString() 652 if (digits[numDigits - 1] != 0) { in getVersionString() 655 numDigits--; in getVersionString() 660 for (int i = 1; i < numDigits; i++) { in getVersionString()
|