HomeSort by relevance Sort by last modified time
    Searched refs:FixedDecimal (Results 1 - 25 of 29) sorted by null

1 2

  /external/icu/android_icu4j/src/main/java/android/icu/text/
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>>();
86 Set<FixedDecimal> mentioned = new TreeSet<FixedDecimal>();
88 Map<String, Set<FixedDecimal>> foundKeywords = new HashMap<String, Set<FixedDecimal>>();
89 for (FixedDecimal s : mentioned)
    [all...]
QuantityFormatter.java 16 import android.icu.text.PluralRules.FixedDecimal;
114 FixedDecimal fd = new FixedDecimal(
PluralRules.java 490 * An interface to FixedDecimal, allowing for other implementations.
530 public static class FixedDecimal extends Number implements Comparable<FixedDecimal>, IFixedDecimal {
677 public FixedDecimal(double n, int v, long f) {
721 public FixedDecimal(double n, int v) {
744 public FixedDecimal(double n) {
754 public FixedDecimal(long n) {
817 public FixedDecimal (String n) {
870 public int compareTo(FixedDecimal other) {
901 if (!(arg0 instanceof FixedDecimal)) {
    [all...]
PluralFormat.java 23 import android.icu.text.PluralRules.FixedDecimal;
620 dec = new FixedDecimal(numberMinusOffset);
    [all...]
CurrencyPluralInfo.java 243 public String select(PluralRules.FixedDecimal numberInfo) {
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
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>>();
84 Set<FixedDecimal> mentioned = new TreeSet<FixedDecimal>();
86 Map<String, Set<FixedDecimal>> foundKeywords = new HashMap<String, Set<FixedDecimal>>();
87 for (FixedDecimal s : mentioned)
    [all...]
QuantityFormatter.java 15 import com.ibm.icu.text.PluralRules.FixedDecimal;
113 FixedDecimal fd = new FixedDecimal(
PluralRules.java 492 * An interface to FixedDecimal, allowing for other implementations.
529 public static class FixedDecimal extends Number implements Comparable<FixedDecimal>, IFixedDecimal {
642 public FixedDecimal(double n, int v, long f) {
685 public FixedDecimal(double n, int v) {
707 public FixedDecimal(double n) {
716 public FixedDecimal(long n) {
777 public FixedDecimal (String n) {
828 public int compareTo(FixedDecimal other) {
858 if (!(arg0 instanceof FixedDecimal)) {
    [all...]
PluralFormat.java 22 import com.ibm.icu.text.PluralRules.FixedDecimal;
637 dec = new FixedDecimal(numberMinusOffset);
    [all...]
CurrencyPluralInfo.java 261 public String select(PluralRules.FixedDecimal numberInfo) {
  /external/cldr/tools/java/org/unicode/cldr/tool/
WritePluralRulesSpreadsheets.java 28 import com.ibm.icu.text.PluralRules.FixedDecimal;
115 Set<FixedDecimal> samples = new TreeSet<>();
136 FixedDecimal fd = new FixedDecimal(sample);
140 FixedDecimal fd = new FixedDecimal(sample);
146 for (FixedDecimal number : samples) {
186 FixedDecimal small = getSample(rules, start, null); // smallest
189 FixedDecimal large = getSample(rules, end, small); // smallest
218 private static FixedDecimal getSample(PluralRules rules, String start, FixedDecimal minimum)
    [all...]
PluralRulesFactory.java 20 import com.ibm.icu.text.PluralRules.FixedDecimal;
174 public Relation<ULocale, FixedDecimal> getExtraSamples() {
183 private Relation<ULocale, FixedDecimal> EXTRA_SAMPLES = null;
188 Relation<ULocale, FixedDecimal> tempSamples = Relation.of(new HashMap<ULocale, Set<FixedDecimal>>(), HashSet.class);
288 tempSamples.put(uLocale, new PluralRules.FixedDecimal(item));
294 EXTRA_SAMPLES = (Relation<ULocale, FixedDecimal>) tempSamples.freeze();
    [all...]
GeneratePluralConfirmation.java 24 import com.ibm.icu.text.PluralRules.FixedDecimal;
131 FixedDecimal fd = new FixedDecimal(i);
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) {
154 Set<FixedDecimal> soFarSet = soFar.getAll(keyword);
167 Set<FixedDecimal> soFarSet = soFar.getAll(keyword);
185 for (Entry<Count, Set<FixedDecimal>> entry : soFar.keyValuesSet()) {
187 for (FixedDecimal fd : entry.getValue())
    [all...]
GeneratePluralRanges.java 33 import com.ibm.icu.text.PluralRules.FixedDecimal;
130 Output<FixedDecimal> maxSample = new Output<FixedDecimal>();
131 Output<FixedDecimal> minSample = new Output<FixedDecimal>();
169 FixedDecimal min, FixedDecimal max,
184 final FixedDecimal min;
185 final FixedDecimal max;
191 public static String format(DecimalFormat nf, FixedDecimal minSample)
    [all...]
GeneratedPluralSamples.java 31 import com.ibm.icu.text.PluralRules.FixedDecimal;
60 public Range(FixedDecimal start, FixedDecimal end) {
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)
    [all...]
ShowPlurals.java 26 import com.ibm.icu.text.PluralRules.FixedDecimal;
171 FixedDecimal sampleDecimal = PluralInfo.getNonZeroSampleIfPossible(exampleList);
227 private String getSample(FixedDecimal numb, String samplePattern, NumberFormat nf) {
  /external/icu/icu4c/source/i18n/
plurrule_impl.h 236 * An interface to FixedDecimal, allowing for other implementations.
258 * class FixedDecimal serves to communicate the properties
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)
    [all...]
plurrule.cpp 259 return select(FixedDecimal(number));
264 return select(FixedDecimal(number));
337 FixedDecimal fixed(sampleRange, status);
344 FixedDecimal fixedLo(sampleRange.tempSubStringBetween(0, tildeIndex), status);
345 FixedDecimal fixedHi(sampleRange.tempSubStringBetween(tildeIndex+1), status);
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
PluralRulesTest.java 47 import android.icu.text.PluralRules.FixedDecimal;
79 FixedDecimal fd = new FixedDecimal(testDouble[0]);
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;
623 // FixedDecimal values
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
PluralRulesTest.java 46 import com.ibm.icu.text.PluralRules.FixedDecimal;
76 FixedDecimal fd = new FixedDecimal(testDouble[0]);
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;
620 // FixedDecimal values
    [all...]
  /external/cldr/tools/java/org/unicode/cldr/test/
ExampleGenerator.java 60 import com.ibm.icu.text.PluralRules.FixedDecimal;
253 private Collection<FixedDecimal> exampleCount;
255 public void setExampleCount(Collection<FixedDecimal> exampleCount2) {
259 public Collection<FixedDecimal> getExampleCount() {
575 FixedDecimal amount = getBest(count);
606 FixedDecimal amount = getBest(count);
611 String unit2 = backgroundStartSymbol + getFormattedUnit("duration-second", unitLength, new FixedDecimal(1d, 0), "").trim() + backgroundEndSymbol;
621 private FixedDecimal getBest(Count count) {
    [all...]
  /external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
TestSupplementalInfo.java 80 import com.ibm.icu.text.PluralRules.FixedDecimal;
158 Output<FixedDecimal> maxSample = new Output<FixedDecimal>();
159 Output<FixedDecimal> minSample = new Output<FixedDecimal>();
264 Output<FixedDecimal> maxSample, Output<FixedDecimal> minSample,
290 FixedDecimal sampleDecimal = PluralInfo.getNonZeroSampleIfPossible(exampleList);
384 Count count = pluralInfo.getCount(new FixedDecimal(row[2]));
    [all...]
  /external/icu/icu4c/source/test/intltest/
plurults.cpp 649 FixedDecimal ni(numDbl, fractionDigitCount, fractionDigits);
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/impl/number/
DecimalQuantity_SimpleStorage.java 588 return new PluralRules.FixedDecimal(toDouble()).getPluralOperand(operand);
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/
DecimalQuantity_SimpleStorage.java 585 return new PluralRules.FixedDecimal(toDouble()).getPluralOperand(operand);

Completed in 835 milliseconds

1 2