/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | IntegerWidth.java | 20 final int minInt; field in IntegerWidth 23 private IntegerWidth(int minInt, int maxInt) { in IntegerWidth() argument 24 this.minInt = minInt; in IntegerWidth() 42 public static IntegerWidth zeroFillTo(int minInt) { in zeroFillTo() argument 43 if (minInt == 1) { in zeroFillTo() 45 } else if (minInt >= 0 && minInt <= RoundingUtils.MAX_INT_FRAC_SIG) { in zeroFillTo() 46 return new IntegerWidth(minInt, -1); in zeroFillTo() 70 } else if (maxInt >= 0 && maxInt <= RoundingUtils.MAX_INT_FRAC_SIG && maxInt >= minInt) { in truncateAt() 71 return new IntegerWidth(minInt, maxInt); in truncateAt() 72 } else if (minInt == 1 && maxInt == -1) { in truncateAt() [all …]
|
D | NumberPropertyMapper.java | 132 int minInt = properties.getMinimumIntegerDigits(); in oldToNew() local 158 if (minInt == 0 && maxFrac != 0) { in oldToNew() 161 minInt = 0; in oldToNew() 167 minInt = minInt <= 0 ? 1 : minInt > RoundingUtils.MAX_INT_FRAC_SIG ? 1 : minInt; in oldToNew() 169 … : maxInt < minInt ? minInt : maxInt > RoundingUtils.MAX_INT_FRAC_SIG ? -1 : maxInt; in oldToNew() 205 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() 245 maxInt = minInt; in oldToNew() 246 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() 247 } else if (maxInt > minInt && minInt > 1) { in oldToNew() 249 minInt = 1; in oldToNew() [all …]
|
D | NumberSkeletonImpl.java | 1401 int minInt = 0; 1419 minInt++; 1426 maxInt += minInt; 1433 macros.integerWidth = IntegerWidth.zeroFillTo(minInt); 1435 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); 1439 private static void generateIntegerWidthOption(int minInt, int maxInt, StringBuilder sb) { 1443 appendMultiple(sb, '#', maxInt - minInt); 1445 appendMultiple(sb, '0', minInt); 1639 if (macros.integerWidth.minInt == 0 && macros.integerWidth.maxInt == 0) { 1644 BlueprintHelpers.generateIntegerWidthOption(macros.integerWidth.minInt,
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | IntegerWidth.java | 21 final int minInt; field in IntegerWidth 24 private IntegerWidth(int minInt, int maxInt) { in IntegerWidth() argument 25 this.minInt = minInt; in IntegerWidth() 42 public static IntegerWidth zeroFillTo(int minInt) { in zeroFillTo() argument 43 if (minInt == 1) { in zeroFillTo() 45 } else if (minInt >= 0 && minInt <= RoundingUtils.MAX_INT_FRAC_SIG) { in zeroFillTo() 46 return new IntegerWidth(minInt, -1); in zeroFillTo() 69 } else if (maxInt >= 0 && maxInt <= RoundingUtils.MAX_INT_FRAC_SIG && maxInt >= minInt) { in truncateAt() 70 return new IntegerWidth(minInt, maxInt); in truncateAt() 71 } else if (minInt == 1 && maxInt == -1) { in truncateAt() [all …]
|
D | NumberPropertyMapper.java | 133 int minInt = properties.getMinimumIntegerDigits(); in oldToNew() local 159 if (minInt == 0 && maxFrac != 0) { in oldToNew() 162 minInt = 0; in oldToNew() 168 minInt = minInt <= 0 ? 1 : minInt > RoundingUtils.MAX_INT_FRAC_SIG ? 1 : minInt; in oldToNew() 170 … : maxInt < minInt ? minInt : maxInt > RoundingUtils.MAX_INT_FRAC_SIG ? -1 : maxInt; in oldToNew() 203 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() 243 maxInt = minInt; in oldToNew() 244 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() 245 } else if (maxInt > minInt && minInt > 1) { in oldToNew() 247 minInt = 1; in oldToNew() [all …]
|
D | NumberSkeletonImpl.java | 1307 int minInt = 0; in parseIntegerWidthOption() local 1325 minInt++; in parseIntegerWidthOption() 1332 maxInt += minInt; in parseIntegerWidthOption() 1339 macros.integerWidth = IntegerWidth.zeroFillTo(minInt); in parseIntegerWidthOption() 1341 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption() 1345 private static void generateIntegerWidthOption(int minInt, int maxInt, StringBuilder sb) { in generateIntegerWidthOption() argument 1349 appendMultiple(sb, '#', maxInt - minInt); in generateIntegerWidthOption() 1351 appendMultiple(sb, '0', minInt); in generateIntegerWidthOption() 1533 BlueprintHelpers.generateIntegerWidthOption(macros.integerWidth.minInt, in integerWidth()
|
D | NumberFormatterImpl.java | 101 inValue.setMinInteger(micros.integerWidth.minInt); in preProcess() 103 inValue.setMinInteger(micros.integerWidth.minInt); in preProcess() 114 inValue.setMinInteger(micros.integerWidth.minInt); in preProcessUnsafe() 116 inValue.setMinInteger(micros.integerWidth.minInt); in preProcessUnsafe()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | number_integerwidth.cpp | 16 IntegerWidth::IntegerWidth(digits_t minInt, digits_t maxInt, bool formatFailIfMoreThanMaxDigits) { in IntegerWidth() argument 17 fUnion.minMaxInt.fMinInt = minInt; in IntegerWidth() 22 IntegerWidth IntegerWidth::zeroFillTo(int32_t minInt) { in zeroFillTo() argument 23 if (minInt >= 0 && minInt <= kMaxIntFracSig) { in zeroFillTo() 24 return {static_cast<digits_t>(minInt), -1, false}; in zeroFillTo() 32 digits_t minInt = fUnion.minMaxInt.fMinInt; in truncateAt() local 33 if (maxInt >= 0 && maxInt <= kMaxIntFracSig && minInt <= maxInt) { in truncateAt() 34 return {minInt, static_cast<digits_t>(maxInt), false}; in truncateAt() 36 return {minInt, -1, false}; in truncateAt()
|
D | number_mapper.cpp | 89 int32_t minInt = properties.minimumIntegerDigits; in oldToNew() local 118 if (minInt == 0 && maxFrac != 0) { in oldToNew() 121 minInt = 0; in oldToNew() 127 minInt = minInt <= 0 ? 1 : minInt > kMaxIntFracSig ? 1 : minInt; in oldToNew() 128 maxInt = maxInt < 0 ? -1 : maxInt < minInt ? minInt : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew() 160 static_cast<digits_t>(minInt), in oldToNew() 202 maxInt = minInt; in oldToNew() 203 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() 204 } else if (maxInt > minInt && minInt > 1) { in oldToNew() 206 minInt = 1; in oldToNew() [all …]
|
D | number_patternstring.cpp | 558 int minInt, minFrac; in patternInfoToProperties() local 561 minInt = 0; in patternInfoToProperties() 565 minInt = 1; in patternInfoToProperties() 568 minInt = positive.integerNumerals; in patternInfoToProperties() 632 properties.minimumIntegerDigits = minInt; in patternInfoToProperties() 727 int32_t minInt = uprv_max(0, uprv_min(properties.minimumIntegerDigits, dosMax)); in propertiesToPatternString() local 771 incrementQuantity.setMinInteger(minInt - digitsStringScale); in propertiesToPatternString() 780 while (digitsString.length() + digitsStringScale < minInt) { in propertiesToPatternString()
|
D | decimfmt.cpp | 1803 int32_t minInt = fields->exportedProperties.minimumIntegerDigits; in setupFastFormat() local 1806 if (minInt > 10) { in setupFastFormat() 1835 fields->fastData.minInt = (minInt < 0 || minInt > 127) ? 0 : static_cast<int8_t>(minInt); in setupFastFormat() 1877 int8_t minInt = (fields->fastData.minInt < 1)? 1: fields->fastData.minInt; in doFastFormatInt32() local 1878 for (int8_t i = 0; i < fields->fastData.maxInt && (input != 0 || i < minInt); i++) { in doFastFormatInt32()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | number_integerwidth.cpp | 16 IntegerWidth::IntegerWidth(digits_t minInt, digits_t maxInt, bool formatFailIfMoreThanMaxDigits) { in IntegerWidth() argument 17 fUnion.minMaxInt.fMinInt = minInt; in IntegerWidth() 22 IntegerWidth IntegerWidth::zeroFillTo(int32_t minInt) { in zeroFillTo() argument 23 if (minInt >= 0 && minInt <= kMaxIntFracSig) { in zeroFillTo() 24 return {static_cast<digits_t>(minInt), -1, false}; in zeroFillTo() 32 digits_t minInt = fUnion.minMaxInt.fMinInt; in truncateAt() local 33 if (maxInt >= 0 && maxInt <= kMaxIntFracSig && minInt <= maxInt) { in truncateAt() 34 return {minInt, static_cast<digits_t>(maxInt), false}; in truncateAt() 36 return {minInt, -1, false}; in truncateAt()
|
D | number_mapper.cpp | 89 int32_t minInt = properties.minimumIntegerDigits; in oldToNew() local 118 if (minInt == 0 && maxFrac != 0) { in oldToNew() 121 minInt = 0; in oldToNew() 127 minInt = minInt <= 0 ? 1 : minInt > kMaxIntFracSig ? 1 : minInt; in oldToNew() 128 maxInt = maxInt < 0 ? -1 : maxInt < minInt ? minInt : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew() 159 static_cast<digits_t>(minInt), in oldToNew() 201 maxInt = minInt; in oldToNew() 202 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() 203 } else if (maxInt > minInt && minInt > 1) { in oldToNew() 205 minInt = 1; in oldToNew() [all …]
|
D | number_patternstring.cpp | 513 int minInt, minFrac; in patternInfoToProperties() local 516 minInt = 0; in patternInfoToProperties() 520 minInt = 1; in patternInfoToProperties() 523 minInt = positive.integerNumerals; in patternInfoToProperties() 584 properties.minimumIntegerDigits = minInt; in patternInfoToProperties() 679 int32_t minInt = uprv_max(0, uprv_min(properties.minimumIntegerDigits, dosMax)); in propertiesToPatternString() local 732 while (digitsString.length() + digitsStringScale < minInt) { in propertiesToPatternString()
|
D | decimfmt.cpp | 1790 int32_t minInt = fields->exportedProperties.minimumIntegerDigits; in setupFastFormat() local 1793 if (minInt > 10) { in setupFastFormat() 1822 fields->fastData.minInt = (minInt < 0 || minInt > 127) ? 0 : static_cast<int8_t>(minInt); in setupFastFormat() 1864 int8_t minInt = (fields->fastData.minInt < 1)? 1: fields->fastData.minInt; in doFastFormatInt32() local 1865 for (int8_t i = 0; i < fields->fastData.maxInt && (input != 0 || i < minInt); i++) { in doFastFormatInt32()
|
/third_party/icu/icu4c/source/i18n/ |
D | number_integerwidth.cpp | 16 IntegerWidth::IntegerWidth(digits_t minInt, digits_t maxInt, bool formatFailIfMoreThanMaxDigits) { in IntegerWidth() argument 17 fUnion.minMaxInt.fMinInt = minInt; in IntegerWidth() 22 IntegerWidth IntegerWidth::zeroFillTo(int32_t minInt) { in zeroFillTo() argument 23 if (minInt >= 0 && minInt <= kMaxIntFracSig) { in zeroFillTo() 24 return {static_cast<digits_t>(minInt), -1, false}; in zeroFillTo() 32 digits_t minInt = fUnion.minMaxInt.fMinInt; in truncateAt() local 33 if (maxInt >= 0 && maxInt <= kMaxIntFracSig && minInt <= maxInt) { in truncateAt() 34 return {minInt, static_cast<digits_t>(maxInt), false}; in truncateAt() 36 return {minInt, -1, false}; in truncateAt()
|
D | number_mapper.cpp | 89 int32_t minInt = properties.minimumIntegerDigits; in oldToNew() local 118 if (minInt == 0 && maxFrac != 0) { in oldToNew() 121 minInt = 0; in oldToNew() 127 minInt = minInt <= 0 ? 1 : minInt > kMaxIntFracSig ? 1 : minInt; in oldToNew() 128 maxInt = maxInt < 0 ? -1 : maxInt < minInt ? minInt : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew() 160 static_cast<digits_t>(minInt), in oldToNew() 202 maxInt = minInt; in oldToNew() 203 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() 204 } else if (maxInt > minInt && minInt > 1) { in oldToNew() 206 minInt = 1; in oldToNew() [all …]
|
D | number_patternstring.cpp | 558 int minInt, minFrac; in patternInfoToProperties() local 561 minInt = 0; in patternInfoToProperties() 565 minInt = 1; in patternInfoToProperties() 568 minInt = positive.integerNumerals; in patternInfoToProperties() 632 properties.minimumIntegerDigits = minInt; in patternInfoToProperties() 727 int32_t minInt = uprv_max(0, uprv_min(properties.minimumIntegerDigits, dosMax)); in propertiesToPatternString() local 771 incrementQuantity.setMinInteger(minInt - digitsStringScale); in propertiesToPatternString() 780 while (digitsString.length() + digitsStringScale < minInt) { in propertiesToPatternString()
|
D | decimfmt.cpp | 1803 int32_t minInt = fields->exportedProperties.minimumIntegerDigits; in setupFastFormat() local 1806 if (minInt > 10) { in setupFastFormat() 1835 fields->fastData.minInt = (minInt < 0 || minInt > 127) ? 0 : static_cast<int8_t>(minInt); in setupFastFormat() 1877 int8_t minInt = (fields->fastData.minInt < 1)? 1: fields->fastData.minInt; in doFastFormatInt32() local 1878 for (int8_t i = 0; i < fields->fastData.maxInt && (input != 0 || i < minInt); i++) { in doFastFormatInt32()
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fShaderSharedVarTests.cpp | 196 const int minInt = -de::min(numValues/2, maxInt); in iterate() local 200 values[ndx] = float(minInt + (ndx % (maxInt-minInt+1))); in iterate() 215 const int minInt = -de::min(numValues/2, maxInt); in iterate() local 219 values[ndx] = minInt + (ndx % (maxInt-minInt+1)); in iterate() 270 const int minInt = -de::min(numValues/2, maxInt); in iterate() local 274 values[ndx] = float(minInt + (ndx % (maxInt-minInt+1))); in iterate()
|
/third_party/node/test/parallel/ |
D | test-crypto-random.js | 456 const minInt = Number.MIN_SAFE_INTEGER; constant 458 crypto.randomInt(minInt, minInt + 5, common.mustSucceed()); 462 () => crypto.randomInt(minInt - 1, minInt + 5, common.mustNotCall()), 467 `${common.invalidArgTypeHelper(minInt - 1)}`,
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | PatternStringParser.java | 623 int minInt, minFrac; in patternInfoToProperties() local 626 minInt = 0; in patternInfoToProperties() 630 minInt = 1; in patternInfoToProperties() 633 minInt = positive.integerNumerals; in patternInfoToProperties() 699 properties.setMinimumIntegerDigits(minInt); in patternInfoToProperties()
|
D | DecimalQuantity_AbstractBCD.java | 119 public void setMinInteger(int minInt) { in setMinInteger() argument 121 assert minInt >= 0; in setMinInteger() local 125 if (minInt < lReqPos) { in setMinInteger() 126 minInt = lReqPos; in setMinInteger() 130 lReqPos = minInt; in setMinInteger()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
D | PatternStringParser.java | 580 int minInt, minFrac; in patternInfoToProperties() local 583 minInt = 0; in patternInfoToProperties() 587 minInt = 1; in patternInfoToProperties() 590 minInt = positive.integerNumerals; in patternInfoToProperties() 653 properties.setMinimumIntegerDigits(minInt); in patternInfoToProperties()
|
D | DecimalQuantity_AbstractBCD.java | 121 public void setMinInteger(int minInt) { in setMinInteger() argument 123 assert minInt >= 0; in setMinInteger() local 127 if (minInt < lReqPos) { in setMinInteger() 128 minInt = lReqPos; in setMinInteger() 132 lReqPos = minInt; in setMinInteger()
|