Home
last modified time | relevance | path

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

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java93 protected byte getDigitPos(int position) { in getDigitPos() method in DecimalQuantity_DualStorageBCD
256 tempLong = tempLong * 10 + getDigitPos(shift); in bcdToBigDecimal()
385 if (getDigitPos(precision - 1) == 0) in checkHealth()
387 if (getDigitPos(0) == 0) in checkHealth()
390 if (getDigitPos(i) >= 10) in checkHealth()
392 if (getDigitPos(i) < 0) in checkHealth()
396 if (getDigitPos(i) != 0) in checkHealth()
410 if (precision != 0 && getDigitPos(precision - 1) == 0) in checkHealth()
412 if (precision != 0 && getDigitPos(0) == 0) in checkHealth()
415 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 …]
/third_party/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.java317 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 …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dnumber_decimalquantity.cpp321 return getDigitPos(magnitude - scale); in getDigit()
553 result = result * 10 + getDigitPos(magnitude - scale - exponent); in toLong()
569 result = result * 10 + getDigitPos(magnitude - scale); in toFractionLong()
646 ubcd[precision - m - 1] = static_cast<uint8_t>(getDigitPos(m)); in toDecNum()
674 int8_t trailingDigit = getDigitPos(position); in roundToMagnitude()
683 int8_t leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
717 if (getDigitPos(p) != 0) { in roundToMagnitude()
729 if (getDigitPos(p) != 0) { in roundToMagnitude()
737 if (getDigitPos(p) != 9) { in roundToMagnitude()
745 if (getDigitPos(p) != 0) { in roundToMagnitude()
[all …]
Dnumber_decimalquantity.h427 int8_t getDigitPos(int32_t position) const;
/third_party/icu/icu4c/source/i18n/
Dnumber_decimalquantity.cpp321 return getDigitPos(magnitude - scale); in getDigit()
553 result = result * 10 + getDigitPos(magnitude - scale - exponent); in toLong()
569 result = result * 10 + getDigitPos(magnitude - scale); in toFractionLong()
646 ubcd[precision - m - 1] = static_cast<uint8_t>(getDigitPos(m)); in toDecNum()
674 int8_t trailingDigit = getDigitPos(position); in roundToMagnitude()
683 int8_t leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
717 if (getDigitPos(p) != 0) { in roundToMagnitude()
729 if (getDigitPos(p) != 0) { in roundToMagnitude()
737 if (getDigitPos(p) != 9) { in roundToMagnitude()
745 if (getDigitPos(p) != 0) { in roundToMagnitude()
[all …]
Dnumber_decimalquantity.h427 int8_t getDigitPos(int32_t position) const;
/third_party/node/deps/icu-small/source/i18n/
Dnumber_decimalquantity.cpp326 return getDigitPos(magnitude - scale); in getDigit()
562 result = result * 10 + getDigitPos(magnitude - scale - exponent); in toLong()
578 result = result * 10 + getDigitPos(magnitude - scale); in toFractionLong()
656 ubcd[precision - m - 1] = static_cast<uint8_t>(getDigitPos(m)); in toDecNum()
684 int8_t trailingDigit = getDigitPos(position); in roundToMagnitude()
693 int8_t leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
727 if (getDigitPos(p) != 0) { in roundToMagnitude()
739 if (getDigitPos(p) != 0) { in roundToMagnitude()
747 if (getDigitPos(p) != 9) { in roundToMagnitude()
755 if (getDigitPos(p) != 0) { in roundToMagnitude()
[all …]
Dnumber_decimalquantity.h432 int8_t getDigitPos(int32_t position) const;
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dnumber_decimalquantity.cpp292 return getDigitPos(magnitude - scale); in getDigit()
509 result = result * 10 + getDigitPos(magnitude - scale); in toLong()
525 result = result * 10 + getDigitPos(magnitude - scale); in toFractionLong()
596 ubcd[precision - m - 1] = static_cast<uint8_t>(getDigitPos(m)); in toDecNum()
624 int8_t leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
625 int8_t trailingDigit = getDigitPos(position); in roundToMagnitude()
640 if (getDigitPos(p) != 0) { in roundToMagnitude()
652 if (getDigitPos(p) != 0) { in roundToMagnitude()
659 if (getDigitPos(p) != 9) { in roundToMagnitude()
666 if (getDigitPos(p) != 0) { in roundToMagnitude()
[all …]
Dnumber_decimalquantity.h392 int8_t getDigitPos(int32_t position) const;
/third_party/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()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/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()