Home
last modified time | relevance | path

Searched refs:absPower (Results 1 – 6 of 6) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DSingleUnitImpl.java62 int absPower = Math.abs(this.getDimensionality()); in getNeutralIdentifier() local
64 assert absPower > 0 : "this function does not support the dimensionless single units"; in getNeutralIdentifier()
66 if (absPower == 1) { in getNeutralIdentifier()
68 } else if (absPower == 2) { in getNeutralIdentifier()
70 } else if (absPower == 3) { in getNeutralIdentifier()
72 } else if (absPower <= 15) { in getNeutralIdentifier()
74 result.append(absPower); in getNeutralIdentifier()
/external/icu/android_icu4j/src/main/java/android/icu/impl/units/
DSingleUnitImpl.java64 int absPower = Math.abs(this.getDimensionality()); in getNeutralIdentifier() local
66 assert absPower > 0 : "this function does not support the dimensionless single units"; in getNeutralIdentifier()
68 if (absPower == 1) { in getNeutralIdentifier()
70 } else if (absPower == 2) { in getNeutralIdentifier()
72 } else if (absPower == 3) { in getNeutralIdentifier()
74 } else if (absPower <= 15) { in getNeutralIdentifier()
76 result.append(absPower); in getNeutralIdentifier()
/external/icu/icu4c/source/i18n/
Dmeasunit_extra.cpp950 int32_t absPower = std::abs(this->dimensionality); in appendNeutralIdentifier() local
952 U_ASSERT(absPower > 0); // "this function does not support the dimensionless single units"; in appendNeutralIdentifier()
954 if (absPower == 1) { in appendNeutralIdentifier()
956 } else if (absPower == 2) { in appendNeutralIdentifier()
958 } else if (absPower == 3) { in appendNeutralIdentifier()
960 } else if (absPower <= 15) { in appendNeutralIdentifier()
962 result.appendNumber(absPower, status); in appendNeutralIdentifier()
Dunits_converter.cpp91 auto absPower = std::abs(this->constantExponents[i]); in substituteConstants() local
93 double absConstantValue = std::pow(constantsValues[i], absPower); in substituteConstants()
/external/cronet/third_party/icu/source/i18n/
Dmeasunit_extra.cpp950 int32_t absPower = std::abs(this->dimensionality); in appendNeutralIdentifier() local
952 U_ASSERT(absPower > 0); // "this function does not support the dimensionless single units"; in appendNeutralIdentifier()
954 if (absPower == 1) { in appendNeutralIdentifier()
956 } else if (absPower == 2) { in appendNeutralIdentifier()
958 } else if (absPower == 3) { in appendNeutralIdentifier()
960 } else if (absPower <= 15) { in appendNeutralIdentifier()
962 result.appendNumber(absPower, status); in appendNeutralIdentifier()
Dunits_converter.cpp91 auto absPower = std::abs(this->constantExponents[i]); in substituteConstants() local
93 double absConstantValue = std::pow(constantsValues[i], absPower); in substituteConstants()