/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | IntegerWidth.java | 22 final int minInt; field in IntegerWidth 25 private IntegerWidth(int minInt, int maxInt) { in IntegerWidth() argument 26 this.minInt = minInt; in IntegerWidth() 43 public static IntegerWidth zeroFillTo(int minInt) { in zeroFillTo() argument 44 if (minInt == 1) { in zeroFillTo() 46 } else if (minInt >= 0 && minInt <= RoundingUtils.MAX_INT_FRAC_SIG) { in zeroFillTo() 47 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 | 138 int minInt = properties.getMinimumIntegerDigits(); in oldToNew() local 165 if (minInt == 0 && maxFrac != 0) { in oldToNew() 169 minInt = 0; in oldToNew() 175 minInt = minInt <= 0 ? 1 : minInt > RoundingUtils.MAX_INT_FRAC_SIG ? 1 : minInt; in oldToNew() 177 … : maxInt < minInt ? minInt : maxInt > RoundingUtils.MAX_INT_FRAC_SIG ? -1 : maxInt; in oldToNew() 206 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() 246 maxInt = minInt; in oldToNew() 247 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() 248 } else if (maxInt > minInt && minInt > 1) { in oldToNew() 250 minInt = 1; in oldToNew() [all …]
|
D | NumberSkeletonImpl.java | 1158 int minInt = 0; in parseIntegerWidthOption() local 1176 minInt++; in parseIntegerWidthOption() 1183 maxInt += minInt; in parseIntegerWidthOption() 1190 macros.integerWidth = IntegerWidth.zeroFillTo(minInt); in parseIntegerWidthOption() 1192 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption() 1196 private static void generateIntegerWidthOption(int minInt, int maxInt, StringBuilder sb) { in generateIntegerWidthOption() argument 1200 appendMultiple(sb, '#', maxInt - minInt); in generateIntegerWidthOption() 1202 appendMultiple(sb, '0', minInt); in generateIntegerWidthOption() 1384 BlueprintHelpers.generateIntegerWidthOption(macros.integerWidth.minInt, in integerWidth()
|
D | NumberFormatterImpl.java | 103 inValue.setIntegerLength(micros.integerWidth.minInt, Integer.MAX_VALUE); in preProcess() 105 inValue.setIntegerLength(micros.integerWidth.minInt, micros.integerWidth.maxInt); in preProcess() 115 inValue.setIntegerLength(micros.integerWidth.minInt, Integer.MAX_VALUE); in preProcessUnsafe() 117 inValue.setIntegerLength(micros.integerWidth.minInt, micros.integerWidth.maxInt); in preProcessUnsafe()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/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() 43 public static IntegerWidth zeroFillTo(int minInt) { in zeroFillTo() argument 44 if (minInt == 1) { in zeroFillTo() 46 } else if (minInt >= 0 && minInt <= RoundingUtils.MAX_INT_FRAC_SIG) { in zeroFillTo() 47 return new IntegerWidth(minInt, -1); in zeroFillTo() 71 } else if (maxInt >= 0 && maxInt <= RoundingUtils.MAX_INT_FRAC_SIG && maxInt >= minInt) { in truncateAt() 72 return new IntegerWidth(minInt, maxInt); in truncateAt() 73 } else if (minInt == 1 && maxInt == -1) { in truncateAt() [all …]
|
D | NumberPropertyMapper.java | 137 int minInt = properties.getMinimumIntegerDigits(); in oldToNew() local 164 if (minInt == 0 && maxFrac != 0) { in oldToNew() 168 minInt = 0; in oldToNew() 174 minInt = minInt <= 0 ? 1 : minInt > RoundingUtils.MAX_INT_FRAC_SIG ? 1 : minInt; in oldToNew() 176 … : 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 | 1157 int minInt = 0; in parseIntegerWidthOption() local 1175 minInt++; in parseIntegerWidthOption() 1182 maxInt += minInt; in parseIntegerWidthOption() 1189 macros.integerWidth = IntegerWidth.zeroFillTo(minInt); in parseIntegerWidthOption() 1191 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption() 1195 private static void generateIntegerWidthOption(int minInt, int maxInt, StringBuilder sb) { in generateIntegerWidthOption() argument 1199 appendMultiple(sb, '#', maxInt - minInt); in generateIntegerWidthOption() 1201 appendMultiple(sb, '0', minInt); in generateIntegerWidthOption() 1383 BlueprintHelpers.generateIntegerWidthOption(macros.integerWidth.minInt, in integerWidth()
|
D | NumberFormatterImpl.java | 102 inValue.setIntegerLength(micros.integerWidth.minInt, Integer.MAX_VALUE); in preProcess() 104 inValue.setIntegerLength(micros.integerWidth.minInt, micros.integerWidth.maxInt); in preProcess() 114 inValue.setIntegerLength(micros.integerWidth.minInt, Integer.MAX_VALUE); in preProcessUnsafe() 116 inValue.setIntegerLength(micros.integerWidth.minInt, micros.integerWidth.maxInt); in preProcessUnsafe()
|
/external/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 | 99 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 …]
|
D | number_patternstring.cpp | 512 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()
|
D | number_decimalquantity.cpp | 136 void DecimalQuantity::setIntegerLength(int32_t minInt, int32_t maxInt) { in setIntegerLength() argument 138 U_ASSERT(minInt >= 0); in setIntegerLength() 139 U_ASSERT(maxInt >= minInt); in setIntegerLength() 143 if (minInt < lReqPos) { in setIntegerLength() 144 minInt = lReqPos; in setIntegerLength() 150 lReqPos = minInt; in setIntegerLength()
|
D | number_skeletons.cpp | 1178 int32_t minInt = 0; in parseIntegerWidthOption() local 1196 minInt++; in parseIntegerWidthOption() 1203 maxInt += minInt; in parseIntegerWidthOption() 1212 macros.integerWidth = IntegerWidth::zeroFillTo(minInt); in parseIntegerWidthOption() 1214 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption() 1218 void blueprint_helpers::generateIntegerWidthOption(int32_t minInt, int32_t maxInt, UnicodeString& s… in generateIntegerWidthOption() argument 1223 appendMultiple(sb, u'#', maxInt - minInt); in generateIntegerWidthOption() 1225 appendMultiple(sb, u'0', minInt); in generateIntegerWidthOption()
|
D | number_roundingutils.h | 181 void apply(impl::DecimalQuantity &value, int32_t minInt, UErrorCode status);
|
D | decimfmt.cpp | 1311 int32_t minInt = fields->exportedProperties->minimumIntegerDigits; in setupFastFormat() local 1314 if (minInt > 10) { in setupFastFormat() 1343 fields->fastData.minInt = (minInt < 0 || minInt > 127) ? 0 : static_cast<int8_t>(minInt); in setupFastFormat() 1385 …for (int8_t i = 0; i < fields->fastData.maxInt && (input != 0 || i < fields->fastData.minInt); i++… in doFastFormatInt32()
|
/external/deqp/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()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/impl/number/ |
D | DecimalQuantity_SimpleStorage.java | 325 public void setIntegerLength(int minInt, int maxInt) { 327 minInt = Math.max(0, minInt); 331 if (maxInt < minInt) { 332 minInt = maxInt; 338 lReqPos = minInt;
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | DecimalQuantity_AbstractBCD.java | 142 public void setIntegerLength(int minInt, int maxInt) { in setIntegerLength() argument 144 assert minInt >= 0; in setIntegerLength() local 145 assert maxInt >= minInt; in setIntegerLength() local 149 if (minInt < lReqPos) { in setIntegerLength() 150 minInt = lReqPos; in setIntegerLength() 156 lReqPos = minInt; in setIntegerLength()
|
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.java | 40 public void setIntegerLength(int minInt, int maxInt); in setIntegerLength() argument
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/ |
D | DecimalQuantity_SimpleStorage.java | 322 public void setIntegerLength(int minInt, int maxInt) { 324 minInt = Math.max(0, minInt); 328 if (maxInt < minInt) { 329 minInt = maxInt; 335 lReqPos = minInt;
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | DecimalQuantity_AbstractBCD.java | 140 public void setIntegerLength(int minInt, int maxInt) { in setIntegerLength() argument 142 assert minInt >= 0; in setIntegerLength() local 143 assert maxInt >= minInt; in setIntegerLength() local 147 if (minInt < lReqPos) { in setIntegerLength() 148 minInt = lReqPos; in setIntegerLength() 154 lReqPos = minInt; in setIntegerLength()
|
D | PatternStringParser.java | 574 int minInt, minFrac; in patternInfoToProperties() local 577 minInt = 0; in patternInfoToProperties() 581 minInt = 1; in patternInfoToProperties() 584 minInt = positive.integerNumerals; in patternInfoToProperties() 647 properties.setMinimumIntegerDigits(minInt); in patternInfoToProperties()
|
D | DecimalQuantity.java | 38 public void setIntegerLength(int minInt, int maxInt); in setIntegerLength() argument
|
/external/catch2/projects/SelfTest/UsageTests/ |
D | Condition.tests.cpp | 256 const int minInt = (std::numeric_limits<int>::min)(); variable 257 CHECK( ( minInt > 2u ) ); 258 CHECK( minInt > 2u );
|