Home
last modified time | relevance | path

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

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java91 protected byte getDigitPos(int position) { in getDigitPos() method in DecimalQuantity_DualStorageBCD
253 tempLong = tempLong * 10 + getDigitPos(shift); in bcdToBigDecimal()
382 if (getDigitPos(precision - 1) == 0) in checkHealth()
384 if (getDigitPos(0) == 0) in checkHealth()
387 if (getDigitPos(i) >= 10) in checkHealth()
389 if (getDigitPos(i) < 0) in checkHealth()
393 if (getDigitPos(i) != 0) in checkHealth()
407 if (precision != 0 && getDigitPos(precision - 1) == 0) in checkHealth()
409 if (precision != 0 && getDigitPos(0) == 0) in checkHealth()
412 if (getDigitPos(i) >= 10) in checkHealth()
[all …]
DDecimalQuantity_AbstractBCD.java289 return getDigitPos(magnitude - scale); in getDigit()
585 result = result * 10 + getDigitPos(magnitude - scale); in toLong()
607 result = result * 10 + getDigitPos(magnitude - scale); in toFractionLong()
729 byte trailingDigit = getDigitPos(position); in roundToMagnitude()
738 byte leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
772 if (getDigitPos(p) != 0) { in roundToMagnitude()
784 if (getDigitPos(p) != 0) { in roundToMagnitude()
792 if (getDigitPos(p) != 9) { in roundToMagnitude()
800 if (getDigitPos(p) != 0) { in roundToMagnitude()
808 if (getDigitPos(p) != 9) { in roundToMagnitude()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java93 protected byte getDigitPos(int position) { in getDigitPos() method in DecimalQuantity_DualStorageBCD
255 tempLong = tempLong * 10 + getDigitPos(shift); in bcdToBigDecimal()
384 if (getDigitPos(precision - 1) == 0) in checkHealth()
386 if (getDigitPos(0) == 0) in checkHealth()
389 if (getDigitPos(i) >= 10) in checkHealth()
391 if (getDigitPos(i) < 0) in checkHealth()
395 if (getDigitPos(i) != 0) in checkHealth()
409 if (precision != 0 && getDigitPos(precision - 1) == 0) in checkHealth()
411 if (precision != 0 && getDigitPos(0) == 0) in checkHealth()
414 if (getDigitPos(i) >= 10) in checkHealth()
[all …]
DDecimalQuantity_AbstractBCD.java291 return getDigitPos(magnitude - scale); in getDigit()
587 result = result * 10 + getDigitPos(magnitude - scale); in toLong()
609 result = result * 10 + getDigitPos(magnitude - scale); in toFractionLong()
731 byte trailingDigit = getDigitPos(position); in roundToMagnitude()
740 byte leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
774 if (getDigitPos(p) != 0) { in roundToMagnitude()
786 if (getDigitPos(p) != 0) { in roundToMagnitude()
794 if (getDigitPos(p) != 9) { in roundToMagnitude()
802 if (getDigitPos(p) != 0) { in roundToMagnitude()
810 if (getDigitPos(p) != 9) { in roundToMagnitude()
[all …]
/external/icu/icu4c/source/i18n/
Dnumber_decimalquantity.cpp306 return getDigitPos(magnitude - scale); in getDigit()
529 result = result * 10 + getDigitPos(magnitude - scale); in toLong()
545 result = result * 10 + getDigitPos(magnitude - scale); in toFractionLong()
619 ubcd[precision - m - 1] = static_cast<uint8_t>(getDigitPos(m)); in toDecNum()
646 int8_t trailingDigit = getDigitPos(position); in roundToMagnitude()
655 int8_t leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
689 if (getDigitPos(p) != 0) { in roundToMagnitude()
701 if (getDigitPos(p) != 0) { in roundToMagnitude()
709 if (getDigitPos(p) != 9) { in roundToMagnitude()
717 if (getDigitPos(p) != 0) { in roundToMagnitude()
[all …]
Dnumber_decimalquantity.h387 int8_t getDigitPos(int32_t position) const;
/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
147 tempLong = tempLong * 10 + getDigitPos(shift); in bcdToBigDecimal()
DDecimalQuantity_ByteArrayBCD.java57 protected byte getDigitPos(int position) { in getDigitPos() method in DecimalQuantity_ByteArrayBCD
177 sb.append(getDigitPos(i)); in toDumbString()
/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
150 tempLong = tempLong * 10 + getDigitPos(shift); in bcdToBigDecimal()
DDecimalQuantity_ByteArrayBCD.java60 protected byte getDigitPos(int position) { in getDigitPos() method in DecimalQuantity_ByteArrayBCD
180 sb.append(getDigitPos(i)); in toDumbString()