Home
last modified time | relevance | path

Searched refs:minInt (Results 1 – 25 of 77) sorted by relevance

1234

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
DIntegerWidth.java21 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 …]
DNumberPropertyMapper.java133 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 …]
DNumberSkeletonImpl.java1307 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()
DNumberFormatterImpl.java101 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/skia/third_party/externals/icu/source/i18n/
Dnumber_integerwidth.cpp16 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()
Dnumber_mapper.cpp89 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 …]
Dnumber_patternstring.cpp513 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()
Ddecimfmt.cpp1790 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/flutter/skia/third_party/externals/icu/source/i18n/
Dnumber_integerwidth.cpp16 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()
Dnumber_mapper.cpp99 int32_t minInt = properties.minimumIntegerDigits; in oldToNew() local
127 if (minInt == 0 && maxFrac != 0) { in oldToNew()
131 minInt = 0; in oldToNew()
137 minInt = minInt <= 0 ? 1 : minInt > kMaxIntFracSig ? 1 : minInt; in oldToNew()
138 maxInt = maxInt < 0 ? -1 : maxInt < minInt ? minInt : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew()
165 static_cast<digits_t>(minInt), in oldToNew()
207 maxInt = minInt; in oldToNew()
208 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
209 } else if (maxInt > minInt && minInt > 1) { in oldToNew()
211 minInt = 1; in oldToNew()
[all …]
Dnumber_patternstring.cpp512 int minInt, minFrac; in patternInfoToProperties() local
515 minInt = 0; in patternInfoToProperties()
519 minInt = 1; in patternInfoToProperties()
522 minInt = positive.integerNumerals; in patternInfoToProperties()
583 properties.minimumIntegerDigits = minInt; in patternInfoToProperties()
658 int minInt = uprv_max(uprv_min(properties.minimumIntegerDigits, dosMax), 0); in propertiesToPatternString() local
733 while (digitsString.length() + digitsStringScale < minInt) { in propertiesToPatternString()
Dnumber_roundingutils.h181 void apply(impl::DecimalQuantity &value, int32_t minInt, UErrorCode status);
/third_party/node/deps/icu-small/source/i18n/
Dnumber_integerwidth.cpp16 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()
Dnumber_mapper.cpp89 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 …]
Dnumber_patternstring.cpp558 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
780 while (digitsString.length() + digitsStringScale < minInt) { in propertiesToPatternString()
Ddecimfmt.cpp1803 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/icu/icu4c/source/i18n/
Dnumber_integerwidth.cpp16 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()
Dnumber_mapper.cpp89 int32_t minInt = properties.minimumIntegerDigits; in oldToNew() local
116 if (minInt == 0 && maxFrac != 0) { in oldToNew()
119 minInt = 0; in oldToNew()
125 minInt = minInt <= 0 ? 1 : minInt > kMaxIntFracSig ? 1 : minInt; in oldToNew()
126 maxInt = maxInt < 0 ? -1 : maxInt < minInt ? minInt : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew()
157 static_cast<digits_t>(minInt), in oldToNew()
199 maxInt = minInt; in oldToNew()
200 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
201 } else if (maxInt > minInt && minInt > 1) { in oldToNew()
203 minInt = 1; in oldToNew()
[all …]
Dnumber_patternstring.cpp513 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()
Dnumber_roundingutils.h184 void apply(impl::DecimalQuantity &value, int32_t minInt, UErrorCode status);
Ddecimfmt.cpp1790 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/node/test/parallel/
Dtest-crypto-random.js423 const minInt = Number.MIN_SAFE_INTEGER; constant
425 crypto.randomInt(minInt, minInt + 5, common.mustSucceed());
429 () => crypto.randomInt(minInt - 1, minInt + 5, common.mustNotCall()),
434 `${common.invalidArgTypeHelper(minInt - 1)}`,
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
DPatternStringParser.java580 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()
DDecimalQuantity_AbstractBCD.java121 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()
DDecimalQuantity.java39 public void setMinInteger(int minInt); in setMinInteger() argument

1234