/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
H A D | IntegerWidth.java | 21 final int maxInt; field in IntegerWidth 23 private IntegerWidth(int minInt, int maxInt) { in IntegerWidth() argument 25 this.maxInt = maxInt; in IntegerWidth() 57 * For example, with maxInt=3, the number 1234 will get printed as "234". 59 * @param maxInt 60 * The maximum number of places before the decimal separator. maxInt == -1 means no 67 public IntegerWidth truncateAt(int maxInt) { in truncateAt() argument 68 if (maxInt == this.maxInt) { in truncateAt() [all...] |
H A D | NumberPropertyMapper.java | 131 int maxInt = properties.getMaximumIntegerDigits(); in oldToNew() 159 minFrac = (minFrac < 0 || (minFrac == 0 && maxInt == 0)) ? 1 : minFrac; in oldToNew() 162 maxInt = maxInt < 0 ? -1 : maxInt > RoundingUtils.MAX_INT_FRAC_SIG ? -1 : maxInt; in oldToNew() 168 maxInt = maxInt < 0 ? -1 in oldToNew() 169 : maxInt < minInt ? minInt : maxInt > RoundingUtil in oldToNew() [all...] |
H A D | NumberSkeletonImpl.java | 1402 int maxInt; in parseIntegerWidthOption() 1404 maxInt = -1; in parseIntegerWidthOption() 1407 maxInt = 0; in parseIntegerWidthOption() 1410 if (maxInt != -1 && segment.charAt(offset) == '#') { in parseIntegerWidthOption() 1411 maxInt++; in parseIntegerWidthOption() 1425 if (maxInt != -1) { in parseIntegerWidthOption() 1426 maxInt += minInt; in parseIntegerWidthOption() 1432 if (maxInt == -1) { in parseIntegerWidthOption() 1435 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption() 1439 private static void generateIntegerWidthOption(int minInt, int maxInt, StringBuilde argument [all...] |
H A D | NumberFormatterImpl.java | 108 if (micros.integerWidth.maxInt == -1) { in preProcess() 112 inValue.applyMaxInteger(micros.integerWidth.maxInt); in preProcess() 121 if (micros.integerWidth.maxInt == -1) { in preProcessUnsafe() 125 inValue.applyMaxInteger(micros.integerWidth.maxInt); in preProcessUnsafe()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
H A D | IntegerWidth.java | 22 final int maxInt; field in IntegerWidth 24 private IntegerWidth(int minInt, int maxInt) { in IntegerWidth() argument 26 this.maxInt = maxInt; in IntegerWidth() 57 * For example, with maxInt=3, the number 1234 will get printed as "234". 59 * @param maxInt 60 * The maximum number of places before the decimal separator. maxInt == -1 means no 66 public IntegerWidth truncateAt(int maxInt) { in truncateAt() argument 67 if (maxInt == this.maxInt) { in truncateAt() [all...] |
H A D | NumberPropertyMapper.java | 132 int maxInt = properties.getMaximumIntegerDigits(); in oldToNew() 160 minFrac = (minFrac < 0 || (minFrac == 0 && maxInt == 0)) ? 1 : minFrac; in oldToNew() 163 maxInt = maxInt < 0 ? -1 : maxInt > RoundingUtils.MAX_INT_FRAC_SIG ? -1 : maxInt; in oldToNew() 169 maxInt = maxInt < 0 ? -1 in oldToNew() 170 : maxInt < minInt ? minInt : maxInt > RoundingUtil in oldToNew() [all...] |
H A D | NumberSkeletonImpl.java | 1308 int maxInt; in parseIntegerWidthOption() 1310 maxInt = -1; in parseIntegerWidthOption() 1313 maxInt = 0; in parseIntegerWidthOption() 1316 if (maxInt != -1 && segment.charAt(offset) == '#') { in parseIntegerWidthOption() 1317 maxInt++; in parseIntegerWidthOption() 1331 if (maxInt != -1) { in parseIntegerWidthOption() 1332 maxInt += minInt; in parseIntegerWidthOption() 1338 if (maxInt == -1) { in parseIntegerWidthOption() 1341 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption() 1345 private static void generateIntegerWidthOption(int minInt, int maxInt, StringBuilde argument [all...] |
H A D | NumberFormatterImpl.java | 100 if (micros.integerWidth.maxInt == -1) { in preProcess() 104 inValue.applyMaxInteger(micros.integerWidth.maxInt); in preProcess() 113 if (micros.integerWidth.maxInt == -1) { in preProcessUnsafe() 117 inValue.applyMaxInteger(micros.integerWidth.maxInt); in preProcessUnsafe()
|
/third_party/icu/icu4c/source/i18n/ |
H A D | number_integerwidth.cpp | 16 IntegerWidth::IntegerWidth(digits_t minInt, digits_t maxInt, bool formatFailIfMoreThanMaxDigits) { in IntegerWidth() argument 18 fUnion.minMaxInt.fMaxInt = maxInt; in IntegerWidth() 30 IntegerWidth IntegerWidth::truncateAt(int32_t maxInt) { in truncateAt() argument 33 if (maxInt >= 0 && maxInt <= kMaxIntFracSig && minInt <= maxInt) { in truncateAt() 34 return {minInt, static_cast<digits_t>(maxInt), false}; in truncateAt() 35 } else if (maxInt == -1) { in truncateAt()
|
H A D | number_mapper.cpp | 88 int32_t maxInt = properties.maximumIntegerDigits; in oldToNew() local 119 minFrac = (minFrac < 0 || (minFrac == 0 && maxInt == 0)) ? 1 : minFrac; in oldToNew() 122 maxInt = maxInt < 0 ? -1 : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew() 128 maxInt = maxInt < 0 ? -1 : maxInt < minInt ? minInt : maxInt > kMaxIntFracSi in oldToNew() [all...] |
H A D | number_skeletons.cpp | 1418 int32_t maxInt; in parseIntegerWidthOption() local 1420 maxInt = -1; in parseIntegerWidthOption() 1423 maxInt = 0; in parseIntegerWidthOption() 1426 if (maxInt != -1 && segment.charAt(offset) == u'#') { in parseIntegerWidthOption() 1427 maxInt++; in parseIntegerWidthOption() 1441 if (maxInt != -1) { in parseIntegerWidthOption() 1442 maxInt += minInt; in parseIntegerWidthOption() 1450 if (maxInt == -1) { in parseIntegerWidthOption() 1453 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption() 1457 void blueprint_helpers::generateIntegerWidthOption(int32_t minInt, int32_t maxInt, UnicodeStrin argument [all...] |
/third_party/node/deps/icu-small/source/i18n/ |
H A D | number_integerwidth.cpp | 16 IntegerWidth::IntegerWidth(digits_t minInt, digits_t maxInt, bool formatFailIfMoreThanMaxDigits) { in IntegerWidth() argument 18 fUnion.minMaxInt.fMaxInt = maxInt; in IntegerWidth() 30 IntegerWidth IntegerWidth::truncateAt(int32_t maxInt) { in truncateAt() argument 33 if (maxInt >= 0 && maxInt <= kMaxIntFracSig && minInt <= maxInt) { in truncateAt() 34 return {minInt, static_cast<digits_t>(maxInt), false}; in truncateAt() 35 } else if (maxInt == -1) { in truncateAt()
|
H A D | number_mapper.cpp | 88 int32_t maxInt = properties.maximumIntegerDigits; in oldToNew() local 119 minFrac = (minFrac < 0 || (minFrac == 0 && maxInt == 0)) ? 1 : minFrac; in oldToNew() 122 maxInt = maxInt < 0 ? -1 : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew() 128 maxInt = maxInt < 0 ? -1 : maxInt < minInt ? minInt : maxInt > kMaxIntFracSi in oldToNew() [all...] |
H A D | number_skeletons.cpp | 1418 int32_t maxInt; in parseIntegerWidthOption() local 1420 maxInt = -1; in parseIntegerWidthOption() 1423 maxInt = 0; in parseIntegerWidthOption() 1426 if (maxInt != -1 && segment.charAt(offset) == u'#') { in parseIntegerWidthOption() 1427 maxInt++; in parseIntegerWidthOption() 1441 if (maxInt != -1) { in parseIntegerWidthOption() 1442 maxInt += minInt; in parseIntegerWidthOption() 1450 if (maxInt == -1) { in parseIntegerWidthOption() 1453 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption() 1457 void blueprint_helpers::generateIntegerWidthOption(int32_t minInt, int32_t maxInt, UnicodeStrin argument [all...] |
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | number_integerwidth.cpp | 16 IntegerWidth::IntegerWidth(digits_t minInt, digits_t maxInt, bool formatFailIfMoreThanMaxDigits) { in IntegerWidth() argument 18 fUnion.minMaxInt.fMaxInt = maxInt; in IntegerWidth() 30 IntegerWidth IntegerWidth::truncateAt(int32_t maxInt) { in truncateAt() argument 33 if (maxInt >= 0 && maxInt <= kMaxIntFracSig && minInt <= maxInt) { in truncateAt() 34 return {minInt, static_cast<digits_t>(maxInt), false}; in truncateAt() 35 } else if (maxInt == -1) { in truncateAt()
|
H A D | number_mapper.cpp | 88 int32_t maxInt = properties.maximumIntegerDigits; in oldToNew() local 119 minFrac = (minFrac < 0 || (minFrac == 0 && maxInt == 0)) ? 1 : minFrac; in oldToNew() 122 maxInt = maxInt < 0 ? -1 : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew() 128 maxInt = maxInt < 0 ? -1 : maxInt < minInt ? minInt : maxInt > kMaxIntFracSi in oldToNew() [all...] |
H A D | number_skeletons.cpp | 1412 int32_t maxInt; 1414 maxInt = -1; 1417 maxInt = 0; 1420 if (maxInt != -1 && segment.charAt(offset) == u'#') { 1421 maxInt++; 1435 if (maxInt != -1) { 1436 maxInt += minInt; 1444 if (maxInt == -1) { 1447 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); 1451 void blueprint_helpers::generateIntegerWidthOption(int32_t minInt, int32_t maxInt, UnicodeStrin [all...] |
/third_party/icu/icu4c/source/common/ |
H A D | putilimp.h | 544 uintptr_t maxInt; in pinCapacity() local 548 maxInt = 0x7fffffff; in pinCapacity() 550 maxInt = (uintptr_t)uprv_maximumPtr((void *)dest); in pinCapacity() 552 maxInt = destInt + 0x7fffffffu; in pinCapacity() 553 if (maxInt < destInt) { in pinCapacity() 556 maxInt = (uintptr_t)-1; in pinCapacity() 560 uintptr_t maxBytes = maxInt - destInt; // max. 2GB in pinCapacity()
|
/third_party/node/lib/ |
H A D | punycode.js | 14 const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 253 if (digit > floor((maxInt - i) / w)) { 265 if (w > floor(maxInt / baseMinusT)) { 278 if (floor(i / out) > maxInt - n) { 337 let m = maxInt; 347 if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { 355 if (currentValue < n && ++delta > maxInt) {
|
/third_party/node/deps/icu-small/source/common/ |
H A D | putilimp.h | 544 uintptr_t maxInt; in pinCapacity() local 548 maxInt = 0x7fffffff; in pinCapacity() 550 maxInt = (uintptr_t)uprv_maximumPtr((void *)dest); in pinCapacity() 552 maxInt = destInt + 0x7fffffffu; in pinCapacity() 553 if (maxInt < destInt) { in pinCapacity() 556 maxInt = (uintptr_t)-1; in pinCapacity() 560 uintptr_t maxBytes = maxInt - destInt; // max. 2GB in pinCapacity()
|
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | putilimp.h | 544 uintptr_t maxInt; in pinCapacity() local 548 maxInt = 0x7fffffff; in pinCapacity() 550 maxInt = (uintptr_t)uprv_maximumPtr((void *)dest); in pinCapacity() 552 maxInt = destInt + 0x7fffffffu; in pinCapacity() 553 if (maxInt < destInt) { in pinCapacity() 556 maxInt = (uintptr_t)-1; in pinCapacity() 560 uintptr_t maxBytes = maxInt - destInt; // max. 2GB in pinCapacity()
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fShaderSharedVarTests.cpp | 195 const int maxInt = m_precision == glu::PRECISION_LOWP ? 2 : 1024; in iterate() local 196 const int minInt = -de::min(numValues/2, maxInt); in iterate() 200 values[ndx] = float(minInt + (ndx % (maxInt-minInt+1))); in iterate() 214 const int maxInt = m_precision == glu::PRECISION_LOWP ? 64 : 1024; in iterate() local 215 const int minInt = -de::min(numValues/2, maxInt); in iterate() 219 values[ndx] = minInt + (ndx % (maxInt-minInt+1)); in iterate() 233 const deUint32 maxInt = m_precision == glu::PRECISION_LOWP ? 128 : 1024; in iterate() local 237 values[ndx] = ndx % (maxInt+1); in iterate() 269 const int maxInt = m_precision == glu::PRECISION_LOWP ? 2 : 1024; in iterate() local 270 const int minInt = -de::min(numValues/2, maxInt); in iterate() [all...] |
/third_party/skia/tests/ |
H A D | FloatingPointTextureTest.cpp | 32 T min, T max, T epsilon, T maxInt, in runFPTest() 48 controlPixelData[i + 3] = maxInt; in runFPTest() 31 runFPTest(skiatest::Reporter* reporter, GrDirectContext* dContext, T min, T max, T epsilon, T maxInt, int arraySize, GrColorType colorType) runFPTest() argument
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
H A D | DecimalQuantity_AbstractBCD.java | 146 public void applyMaxInteger(int maxInt) { in applyMaxInteger() argument 148 assert maxInt >= 0; in applyMaxInteger() 154 if (maxInt <= scale) { in applyMaxInteger() 160 if (maxInt <= magnitude) { in applyMaxInteger() 161 popFromLeft(magnitude - maxInt + 1); in applyMaxInteger() 1080 // NOTE: It is not safe to add to lOptPos (aka maxInt) or subtract from in toScientificString()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
H A D | DecimalQuantity_AbstractBCD.java | 144 public void applyMaxInteger(int maxInt) { in applyMaxInteger() argument 146 assert maxInt >= 0; in applyMaxInteger() 152 if (maxInt <= scale) { in applyMaxInteger() 158 if (maxInt <= magnitude) { in applyMaxInteger() 159 popFromLeft(magnitude - maxInt + 1); in applyMaxInteger() 1089 // NOTE: It is not safe to add to lOptPos (aka maxInt) or subtract from in toScientificString()
|