Home
last modified time | relevance | path

Searched refs:getDigitPos (Results 1 – 11 of 11) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java92 protected byte getDigitPos(int position) { in getDigitPos() method in DecimalQuantity_DualStorageBCD
250 tempLong = tempLong * 10 + getDigitPos(shift); in bcdToBigDecimal()
379 if (getDigitPos(precision - 1) == 0) in checkHealth()
381 if (getDigitPos(0) == 0) in checkHealth()
384 if (getDigitPos(i) >= 10) in checkHealth()
386 if (getDigitPos(i) < 0) in checkHealth()
390 if (getDigitPos(i) != 0) in checkHealth()
404 if (precision != 0 && getDigitPos(precision - 1) == 0) in checkHealth()
406 if (precision != 0 && getDigitPos(0) == 0) in checkHealth()
409 if (getDigitPos(i) >= 10) in checkHealth()
[all …]
DDecimalQuantity_AbstractBCD.java309 return getDigitPos(magnitude - scale); in getDigit()
623 result = result * 10 + getDigitPos(magnitude - scale - exponent); in toLong()
648 result = result * 10 + getDigitPos(magnitude - scale); in toFractionLong()
770 byte trailingDigit = getDigitPos(position); in roundToMagnitude()
779 byte leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
813 if (getDigitPos(p) != 0) { in roundToMagnitude()
825 if (getDigitPos(p) != 0) { in roundToMagnitude()
833 if (getDigitPos(p) != 9) { in roundToMagnitude()
841 if (getDigitPos(p) != 0) { in roundToMagnitude()
849 if (getDigitPos(p) != 9) { in roundToMagnitude()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java94 protected byte getDigitPos(int position) { in getDigitPos() method in DecimalQuantity_DualStorageBCD
252 tempLong = tempLong * 10 + getDigitPos(shift); in bcdToBigDecimal()
381 if (getDigitPos(precision - 1) == 0) in checkHealth()
383 if (getDigitPos(0) == 0) in checkHealth()
386 if (getDigitPos(i) >= 10) in checkHealth()
388 if (getDigitPos(i) < 0) in checkHealth()
392 if (getDigitPos(i) != 0) in checkHealth()
406 if (precision != 0 && getDigitPos(precision - 1) == 0) in checkHealth()
408 if (precision != 0 && getDigitPos(0) == 0) in checkHealth()
411 if (getDigitPos(i) >= 10) in checkHealth()
[all …]
DDecimalQuantity_AbstractBCD.java311 return getDigitPos(magnitude - scale); in getDigit()
625 result = result * 10 + getDigitPos(magnitude - scale - exponent); in toLong()
650 result = result * 10 + getDigitPos(magnitude - scale); in toFractionLong()
772 byte trailingDigit = getDigitPos(position); in roundToMagnitude()
781 byte leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
815 if (getDigitPos(p) != 0) { in roundToMagnitude()
827 if (getDigitPos(p) != 0) { in roundToMagnitude()
835 if (getDigitPos(p) != 9) { in roundToMagnitude()
843 if (getDigitPos(p) != 0) { in roundToMagnitude()
851 if (getDigitPos(p) != 9) { in roundToMagnitude()
[all …]
/external/icu/icu4c/source/i18n/
Dnumber_decimalquantity.cpp318 return getDigitPos(magnitude - scale); in getDigit()
550 result = result * 10 + getDigitPos(magnitude - scale - exponent); in toLong()
566 result = result * 10 + getDigitPos(magnitude - scale); in toFractionLong()
643 ubcd[precision - m - 1] = static_cast<uint8_t>(getDigitPos(m)); in toDecNum()
671 int8_t trailingDigit = getDigitPos(position); in roundToMagnitude()
680 int8_t leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
714 if (getDigitPos(p) != 0) { in roundToMagnitude()
726 if (getDigitPos(p) != 0) { in roundToMagnitude()
734 if (getDigitPos(p) != 9) { in roundToMagnitude()
742 if (getDigitPos(p) != 0) { in roundToMagnitude()
[all …]
Dnumber_decimalquantity.h427 int8_t getDigitPos(int32_t position) const;
/external/icu/android_icu4j/src/main/tests/android/icu/dev/impl/number/
DDecimalQuantity_64BitBCD.java60 protected byte getDigitPos(int position) { in getDigitPos() method in DecimalQuantity_64BitBCD
151 tempLong = tempLong * 10 + getDigitPos(shift); in bcdToBigDecimal()
DDecimalQuantity_ByteArrayBCD.java60 protected byte getDigitPos(int position) { in getDigitPos() method in DecimalQuantity_ByteArrayBCD
181 sb.append(getDigitPos(i)); in toDumbString()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/
DDecimalQuantity_64BitBCD.java57 protected byte getDigitPos(int position) { in getDigitPos() method in DecimalQuantity_64BitBCD
148 tempLong = tempLong * 10 + getDigitPos(shift); in bcdToBigDecimal()
DDecimalQuantity_ByteArrayBCD.java57 protected byte getDigitPos(int position) { in getDigitPos() method in DecimalQuantity_ByteArrayBCD
178 sb.append(getDigitPos(i)); in toDumbString()
/external/icu/libicu/cts_headers/
Dnumber_decimalquantity.h427 int8_t getDigitPos(int32_t position) const;