/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | PluralSamples.java | 23 import com.ibm.icu.text.PluralRules.FixedDecimal; 46 private final Map<String, Set<FixedDecimal>> _keyFractionSamplesMap; 47 private final Set<FixedDecimal> _fractionSamples; 83 Map<String, Set<FixedDecimal>> sampleFractionMap = new HashMap<String, Set<FixedDecimal>>(); in PluralSamples() 84 Set<FixedDecimal> mentioned = new TreeSet<FixedDecimal>(); in PluralSamples() 86 Map<String, Set<FixedDecimal>> foundKeywords = new HashMap<String, Set<FixedDecimal>>(); in PluralSamples() 87 for (FixedDecimal s : mentioned) { in PluralSamples() 104 mentioned.add(new FixedDecimal(0)); // always there in PluralSamples() 105 mentioned.add(new FixedDecimal(1)); // always there in PluralSamples() 106 mentioned.add(new FixedDecimal(2)); // always there in PluralSamples() [all …]
|
D | PluralRules.java | 529 …public static class FixedDecimal extends Number implements Comparable<FixedDecimal>, IFixedDecimal… class in PluralRules 642 public FixedDecimal(double n, int v, long f) { in FixedDecimal() method in PluralRules.FixedDecimal 685 public FixedDecimal(double n, int v) { in FixedDecimal() method in PluralRules.FixedDecimal 707 public FixedDecimal(double n) { in FixedDecimal() method in PluralRules.FixedDecimal 716 public FixedDecimal(long n) { in FixedDecimal() method in PluralRules.FixedDecimal 777 public FixedDecimal (String n) { in FixedDecimal() method in PluralRules.FixedDecimal 828 public int compareTo(FixedDecimal other) { in compareTo() 858 if (!(arg0 instanceof FixedDecimal)) { in equals() 861 FixedDecimal other = (FixedDecimal)arg0; in equals() 1014 public final FixedDecimal start; [all …]
|
D | QuantityFormatter.java | 15 import com.ibm.icu.text.PluralRules.FixedDecimal; 113 FixedDecimal fd = new FixedDecimal( in selectPlural()
|
D | PluralFormat.java | 22 import com.ibm.icu.text.PluralRules.FixedDecimal; 637 dec = new FixedDecimal(numberMinusOffset); in format()
|
D | CurrencyPluralInfo.java | 261 public String select(PluralRules.FixedDecimal numberInfo) { in select()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | PluralSamples.java | 24 import android.icu.text.PluralRules.FixedDecimal; 48 private final Map<String, Set<FixedDecimal>> _keyFractionSamplesMap; 49 private final Set<FixedDecimal> _fractionSamples; 85 Map<String, Set<FixedDecimal>> sampleFractionMap = new HashMap<String, Set<FixedDecimal>>(); in PluralSamples() 86 Set<FixedDecimal> mentioned = new TreeSet<FixedDecimal>(); in PluralSamples() 88 Map<String, Set<FixedDecimal>> foundKeywords = new HashMap<String, Set<FixedDecimal>>(); in PluralSamples() 89 for (FixedDecimal s : mentioned) { in PluralSamples() 106 mentioned.add(new FixedDecimal(0)); // always there in PluralSamples() 107 mentioned.add(new FixedDecimal(1)); // always there in PluralSamples() 108 mentioned.add(new FixedDecimal(2)); // always there in PluralSamples() [all …]
|
D | PluralRules.java | 530 …public static class FixedDecimal extends Number implements Comparable<FixedDecimal>, IFixedDecimal… class in PluralRules 677 public FixedDecimal(double n, int v, long f) { in FixedDecimal() method in PluralRules.FixedDecimal 721 public FixedDecimal(double n, int v) { in FixedDecimal() method in PluralRules.FixedDecimal 744 public FixedDecimal(double n) { in FixedDecimal() method in PluralRules.FixedDecimal 754 public FixedDecimal(long n) { in FixedDecimal() method in PluralRules.FixedDecimal 817 public FixedDecimal (String n) { in FixedDecimal() method in PluralRules.FixedDecimal 870 public int compareTo(FixedDecimal other) { in compareTo() 901 if (!(arg0 instanceof FixedDecimal)) { in equals() 904 FixedDecimal other = (FixedDecimal)arg0; in equals() 1070 public final FixedDecimal start; [all …]
|
D | QuantityFormatter.java | 16 import android.icu.text.PluralRules.FixedDecimal; 114 FixedDecimal fd = new FixedDecimal( in selectPlural()
|
D | PluralFormat.java | 23 import android.icu.text.PluralRules.FixedDecimal; 620 dec = new FixedDecimal(numberMinusOffset); in format()
|
D | CurrencyPluralInfo.java | 243 public String select(PluralRules.FixedDecimal numberInfo) { in select()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | WritePluralRulesSpreadsheets.java | 28 import com.ibm.icu.text.PluralRules.FixedDecimal; 115 Set<FixedDecimal> samples = new TreeSet<>(); in writePluralChecklist() 136 FixedDecimal fd = new FixedDecimal(sample); in writePluralChecklist() 140 FixedDecimal fd = new FixedDecimal(sample); in writePluralChecklist() 146 for (FixedDecimal number : samples) { in writePluralChecklist() 186 FixedDecimal small = getSample(rules, start, null); // smallest in writeRanges() 189 FixedDecimal large = getSample(rules, end, small); // smallest in writeRanges() 218 private static FixedDecimal getSample(PluralRules rules, String start, FixedDecimal minimum) { in getSample() 219 FixedDecimal result = getSample(rules, start, SampleType.INTEGER, minimum); in getSample() 220 FixedDecimal result2 = getSample(rules, start, SampleType.DECIMAL, minimum); in getSample() [all …]
|
D | PluralRulesFactory.java | 20 import com.ibm.icu.text.PluralRules.FixedDecimal; 174 public Relation<ULocale, FixedDecimal> getExtraSamples() { in getExtraSamples() 183 private Relation<ULocale, FixedDecimal> EXTRA_SAMPLES = null; 188 …Relation<ULocale, FixedDecimal> tempSamples = Relation.of(new HashMap<ULocale, Set<FixedDecimal>>(… in loadData() 288 tempSamples.put(uLocale, new PluralRules.FixedDecimal(item)); in loadData() 294 EXTRA_SAMPLES = (Relation<ULocale, FixedDecimal>) tempSamples.freeze(); in loadData()
|
D | GeneratePluralConfirmation.java | 24 import com.ibm.icu.text.PluralRules.FixedDecimal; 131 FixedDecimal fd = new FixedDecimal(i); in mainOld() 150 Relation<Count, FixedDecimal> soFar = Relation.of(new EnumMap(Count.class), TreeSet.class); 151 Map<FixedDecimal, String> sorted = new TreeMap(); 153 private void showValue(String keyword, FixedDecimal fd) { in showValue() 154 Set<FixedDecimal> soFarSet = soFar.getAll(keyword); in showValue() 167 Set<FixedDecimal> soFarSet = soFar.getAll(keyword); in showSamples() 185 for (Entry<Count, Set<FixedDecimal>> entry : soFar.keyValuesSet()) { in toString() 187 for (FixedDecimal fd : entry.getValue()) { in toString()
|
D | GeneratePluralRanges.java | 33 import com.ibm.icu.text.PluralRules.FixedDecimal; 130 Output<FixedDecimal> maxSample = new Output<FixedDecimal>(); in getRangeInfo() 131 Output<FixedDecimal> minSample = new Output<FixedDecimal>(); in getRangeInfo() 169 FixedDecimal min, FixedDecimal max, in RangeSample() 184 final FixedDecimal min; 185 final FixedDecimal max; 191 public static String format(DecimalFormat nf, FixedDecimal minSample) { in format() 312 Output<FixedDecimal> maxSample = new Output<FixedDecimal>(); in minimize() 313 Output<FixedDecimal> minSample = new Output<FixedDecimal>(); in minimize()
|
D | GeneratedPluralSamples.java | 31 import com.ibm.icu.text.PluralRules.FixedDecimal; 60 public Range(FixedDecimal start, FixedDecimal end) { in Range() 98 Status getStatus(FixedDecimal ni) { 143 public static long getFlatValue(FixedDecimal start) { 176 void add(FixedDecimal ni) { 257 final FixedDecimal[] digitToSample = new FixedDecimal[10]; 267 for (FixedDecimal ni : digitToSample) { 275 private void add(FixedDecimal ni) { 360 private void add(FixedDecimal ni) { 431 static private int getDigit(FixedDecimal ni) { [all …]
|
D | ShowPlurals.java | 26 import com.ibm.icu.text.PluralRules.FixedDecimal; 171 … FixedDecimal sampleDecimal = PluralInfo.getNonZeroSampleIfPossible(exampleList); in printPluralTable() 227 private String getSample(FixedDecimal numb, String samplePattern, NumberFormat nf) { in getSample()
|
/external/icu/icu4c/source/i18n/ |
D | plurrule.cpp | 259 return select(FixedDecimal(number)); in select() 264 return select(FixedDecimal(number)); in select() 337 FixedDecimal fixed(sampleRange, status); in getSamplesFromString() 344 FixedDecimal fixedLo(sampleRange.tempSubStringBetween(0, tildeIndex), status); in getSamplesFromString() 345 FixedDecimal fixedHi(sampleRange.tempSubStringBetween(tildeIndex+1), status); in getSamplesFromString() 1479 FixedDecimal::FixedDecimal(double n, int32_t v, int64_t f) { in FixedDecimal() function in FixedDecimal 1496 FixedDecimal::FixedDecimal(double n, int32_t v) { in FixedDecimal() function in FixedDecimal 1501 FixedDecimal::FixedDecimal(double n) { in FixedDecimal() function in FixedDecimal 1505 FixedDecimal::FixedDecimal() { in FixedDecimal() function in FixedDecimal 1513 FixedDecimal::FixedDecimal(const UnicodeString &num, UErrorCode &status) { in FixedDecimal() function in FixedDecimal [all …]
|
D | plurrule_impl.h | 264 class U_I18N_API FixedDecimal: public IFixedDecimal, public UObject { 271 FixedDecimal(double n, int32_t v, int64_t f); 272 FixedDecimal(double n, int32_t); 273 explicit FixedDecimal(double n); 274 FixedDecimal(); 275 ~FixedDecimal() U_OVERRIDE; 276 FixedDecimal(const UnicodeString &s, UErrorCode &ec); 277 FixedDecimal(const FixedDecimal &other);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | PluralRulesTest.java | 47 import android.icu.text.PluralRules.FixedDecimal; 79 FixedDecimal fd = new FixedDecimal(testDouble[0]); in testOverUnderflow() 176 new FixedDecimal(3)); 178 new FixedDecimal(3.5, 2)); 184 false, new FixedDecimal(99d, 1)); 199 String samplesString, boolean isBounded, FixedDecimal firstInRange) { 351 Map<FixedDecimal, String> collisionTest = new TreeMap(); 359 FixedDecimal item = i == 0 ? sample.start : sample.end; 1079 … FixedDecimal items[] = { new FixedDecimal(3d), new FixedDecimal(3d, 2), new FixedDecimal(3.1d, 1), 1080 new FixedDecimal(3.1d, 2), }; [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralRulesTest.java | 46 import com.ibm.icu.text.PluralRules.FixedDecimal; 76 FixedDecimal fd = new FixedDecimal(testDouble[0]); in testOverUnderflow() 173 new FixedDecimal(3)); 175 new FixedDecimal(3.5, 2)); 181 false, new FixedDecimal(99d, 1)); 196 String samplesString, boolean isBounded, FixedDecimal firstInRange) { 348 Map<FixedDecimal, String> collisionTest = new TreeMap(); 356 FixedDecimal item = i == 0 ? sample.start : sample.end; 1076 … FixedDecimal items[] = { new FixedDecimal(3d), new FixedDecimal(3d, 2), new FixedDecimal(3.1d, 1), 1077 new FixedDecimal(3.1d, 2), }; [all …]
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | ExampleGenerator.java | 60 import com.ibm.icu.text.PluralRules.FixedDecimal; 253 private Collection<FixedDecimal> exampleCount; 255 public void setExampleCount(Collection<FixedDecimal> exampleCount2) { in setExampleCount() 259 public Collection<FixedDecimal> getExampleCount() { in getExampleCount() 575 FixedDecimal amount = getBest(count); in handleFormatUnit() 606 FixedDecimal amount = getBest(count); in handleCompoundUnit() 611 …oundStartSymbol + getFormattedUnit("duration-second", unitLength, new FixedDecimal(1d, 0), "").tri… in handleCompoundUnit() 621 private FixedDecimal getBest(Count count) { in getBest() 769 … private String getFormattedUnit(String unitType, UnitLength unitWidth, FixedDecimal unitAmount) { in getFormattedUnit() 775 return getFormattedUnit(unitType, unitWidth, new FixedDecimal(unitAmount)); in getFormattedUnit() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | SupplementalDataInfo.java | 62 import com.ibm.icu.text.PluralRules.FixedDecimal; 3103 private List<FixedDecimal> fractions = new ArrayList<FixedDecimal>(0); 3144 FixedDecimal fraction = fractions.get(i); 3170 public List<FixedDecimal> getFractions() { 3196 public void add(FixedDecimal i) { 3241 FixedDecimal ni = new FixedDecimal(i + f / 10.0d, f < 10 ? 1 : 2, f); 3273 …n addDigit(Map<Count, SampleList[]> countToDigitToIntegerSamples9999, FixedDecimal i, Count count,… 3277 private boolean addFraction(FixedDecimal i, SampleList sampleList) { 3286 …private boolean addSimple(Map<Count, SampleList> countToIntegerSamples9999, FixedDecimal i, Count … 3485 public Count getCount(PluralRules.FixedDecimal exampleCount) { [all …]
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestSupplementalInfo.java | 80 import com.ibm.icu.text.PluralRules.FixedDecimal; 158 Output<FixedDecimal> maxSample = new Output<FixedDecimal>(); in TestPluralRanges() 159 Output<FixedDecimal> minSample = new Output<FixedDecimal>(); in TestPluralRanges() 264 Output<FixedDecimal> maxSample, Output<FixedDecimal> minSample, in getRangeLine() 290 FixedDecimal sampleDecimal = PluralInfo.getNonZeroSampleIfPossible(exampleList); in getRangeLine() 384 Count count = pluralInfo.getCount(new FixedDecimal(row[2])); in checkPluralSamples()
|
/external/icu/icu4j/ |
D | coverage-exclusion.txt | 894 com/ibm/icu/text/PluralRules#matches:(Lcom/ibm/icu/text/PluralRules$FixedDecimal;Ljava/lang/String;… 897 com/ibm/icu/text/PluralRules$FixedDecimal#floatValue:()F 898 com/ibm/icu/text/PluralRules$FixedDecimal#getBaseFactor:()I 899 com/ibm/icu/text/PluralRules$FixedDecimal#getDecimalDigits:()J 900 com/ibm/icu/text/PluralRules$FixedDecimal#getDecimalDigitsWithoutTrailingZeros:()J 901 com/ibm/icu/text/PluralRules$FixedDecimal#getIntegerValue:()J 902 com/ibm/icu/text/PluralRules$FixedDecimal#getSource:()D 903 com/ibm/icu/text/PluralRules$FixedDecimal#getVisibleDecimalDigitCountWithoutTrailingZeros:()I 904 com/ibm/icu/text/PluralRules$FixedDecimal#hashCode:()I 905 com/ibm/icu/text/PluralRules$FixedDecimal#hasIntegerValue:()Z [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | plurults.cpp | 649 FixedDecimal ni(numDbl, fractionDigitCount, fractionDigits); in checkSelect() 992 int32_t numFractionDigits = FixedDecimal::decimals(tc.n); in testFixedDecimal() 998 int64_t actualFractionDigits = FixedDecimal::getFractionalDigits(tc.n, numFractionDigits); in testFixedDecimal()
|