Home
last modified time | relevance | path

Searched refs:pluralRules (Results 1 – 25 of 38) sorted by relevance

12

/external/icu/android_icu4j/src/main/java/android/icu/text/
DPluralSamples.java39 private PluralRules pluralRules; field in PluralSamples
56 public PluralSamples(PluralRules pluralRules) { in PluralSamples() argument
57 this.pluralRules = pluralRules; in PluralSamples()
58 Set<String> keywords = pluralRules.getKeywords(); in PluralSamples()
68 temp.put(k, pluralRules.isLimited(k)); in PluralSamples()
78 …keywordsRemaining = addSimpleSamples(pluralRules, MAX_SAMPLES, sampleMap, keywordsRemaining, i / 2… in PluralSamples()
81 …keywordsRemaining = addSimpleSamples(pluralRules, MAX_SAMPLES, sampleMap, keywordsRemaining, 10000… in PluralSamples()
90 String keyword = pluralRules.select(s); in PluralSamples()
104 …("Failed to find sample for each keyword: " + foundKeywords + "\n\t" + pluralRules + "\n\t" + ment… in PluralSamples()
113 String keyword = pluralRules.select(s); in PluralSamples()
[all …]
DCurrencyPluralInfo.java101 return pluralRules; in getPluralRules()
146 pluralRules = PluralRules.createRules(ruleDescription); in setPluralRules()
207 return pluralRules.equals(other.pluralRules) && in equals()
221 ^ pluralRules.hashCode() in hashCode()
233 return pluralRules.select(number); in select()
244 return pluralRules.select(numberInfo); in select()
261 pluralRules = PluralRules.forLocale(uloc); in initialize()
322 private PluralRules pluralRules = null; field in CurrencyPluralInfo
DPluralFormat.java149 private PluralRules pluralRules = null; field in PluralFormat
378 pluralRules = (rules == null) ? PluralRules.forLocale(ulocale, type) in init()
546 return pluralRules.select(dec); in select()
824 Objects.equals(pluralRules, pf.pluralRules) && in equals()
843 return pluralRules.hashCode() ^ parsedValues.hashCode(); in hashCode()
853 buf.append(", rules='" + pluralRules + "'"); in toString()
DQuantityFormatter.java64 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { in format() argument
66 StandardPlural p = selectPlural(number, numberFormat, pluralRules); in format()
DTimeUnitFormat.java96 private transient PluralRules pluralRules; field in TimeUnitFormat
347 pluralRules = PluralRules.forLocale(locale); in setup()
349 Set<String> pluralKeywords = pluralRules.getKeywords(); in setup()
465 Set<String> keywords = pluralRules.getKeywords(); in setup()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralSamples.java37 private PluralRules pluralRules; field in PluralSamples
54 public PluralSamples(PluralRules pluralRules) { in PluralSamples() argument
55 this.pluralRules = pluralRules; in PluralSamples()
56 Set<String> keywords = pluralRules.getKeywords(); in PluralSamples()
66 temp.put(k, pluralRules.isLimited(k)); in PluralSamples()
76 …keywordsRemaining = addSimpleSamples(pluralRules, MAX_SAMPLES, sampleMap, keywordsRemaining, i / 2… in PluralSamples()
79 …keywordsRemaining = addSimpleSamples(pluralRules, MAX_SAMPLES, sampleMap, keywordsRemaining, 10000… in PluralSamples()
88 String keyword = pluralRules.select(s); in PluralSamples()
102 …("Failed to find sample for each keyword: " + foundKeywords + "\n\t" + pluralRules + "\n\t" + ment… in PluralSamples()
111 String keyword = pluralRules.select(s); in PluralSamples()
[all …]
DCurrencyPluralInfo.java109 return pluralRules; in getPluralRules()
158 pluralRules = PluralRules.createRules(ruleDescription); in setPluralRules()
225 return pluralRules.equals(other.pluralRules) && in equals()
239 ^ pluralRules.hashCode() in hashCode()
251 return pluralRules.select(number); in select()
262 return pluralRules.select(numberInfo); in select()
279 pluralRules = PluralRules.forLocale(uloc); in initialize()
340 private PluralRules pluralRules = null; field in CurrencyPluralInfo
DPluralFormat.java149 private PluralRules pluralRules = null; field in PluralFormat
391 pluralRules = (rules == null) ? PluralRules.forLocale(ulocale, type) in init()
561 return pluralRules.select(dec); in select()
844 Objects.equals(pluralRules, pf.pluralRules) && in equals()
865 return pluralRules.hashCode() ^ parsedValues.hashCode(); in hashCode()
876 buf.append(", rules='" + pluralRules + "'"); in toString()
DQuantityFormatter.java63 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { in format() argument
65 StandardPlural p = selectPlural(number, numberFormat, pluralRules); in format()
DTimeUnitFormat.java94 private transient PluralRules pluralRules; field in TimeUnitFormat
345 pluralRules = PluralRules.forLocale(locale); in setup()
347 Set<String> pluralKeywords = pluralRules.getKeywords(); in setup()
463 Set<String> keywords = pluralRules.getKeywords(); in setup()
DRelativeDateTimeFormatter.java695 pluralKeyword = pluralRules.select(dq); in formatImpl()
699 pluralKeyword = pluralRules.select(quantity); in formatImpl()
1070 PluralRules pluralRules, in RelativeDateTimeFormatter() argument
1079 this.pluralRules = pluralRules; in RelativeDateTimeFormatter()
1128 private final PluralRules pluralRules; field in RelativeDateTimeFormatter
/external/icu/icu4c/source/i18n/
Dplurfmt.cpp155 if (pluralRulesWrapper.pluralRules != NULL) { in copyObjects()
156 delete pluralRulesWrapper.pluralRules; in copyObjects()
164 if (other.pluralRulesWrapper.pluralRules == NULL) { in copyObjects()
165 pluralRulesWrapper.pluralRules = PluralRules::forLocale(locale, status); in copyObjects()
167 pluralRulesWrapper.pluralRules = other.pluralRulesWrapper.pluralRules->clone(); in copyObjects()
183 pluralRulesWrapper.pluralRules = PluralRules::forLocale(locale, type, status); in init()
185 pluralRulesWrapper.pluralRules = rules->clone(); in init()
186 if (pluralRulesWrapper.pluralRules == NULL) { in init()
398 (pluralRulesWrapper.pluralRules == NULL) == (o.pluralRulesWrapper.pluralRules == NULL) && in operator ==()
399 (pluralRulesWrapper.pluralRules == NULL || in operator ==()
[all …]
Dmeasfmt.cpp357 pluralRules(NULL), in MeasureFormat()
370 pluralRules(NULL), in MeasureFormat()
380 pluralRules(other.pluralRules), in MeasureFormat()
385 pluralRules->addRef(); in MeasureFormat()
398 SharedObject::copyPtr(other.pluralRules, pluralRules); in operator =()
412 pluralRules(NULL), in MeasureFormat()
424 if (pluralRules != NULL) { in ~MeasureFormat()
425 pluralRules->removeRef(); in ~MeasureFormat()
602 SharedObject::copyPtr(pr, pluralRules); in initMeasureFormat()
659 return **pluralRules; in getPluralRules()
[all …]
/external/cldr/tools/java/org/unicode/cldr/tool/
DGeneratedPluralSamples.java500 final PluralRules pluralRules = pluralInfo.getPluralRules();
502 add(pluralRules, i, 0, 3);
503 add(pluralRules, i, 0, 6);
504 add(pluralRules, i, 0, 9);
505 add(pluralRules, i+0.1, 1, 3);
506 add(pluralRules, i+0.1, 1, 6);
507 add(pluralRules, i+0.1, 1, 9);
508 add(pluralRules, i+0.0001, 4, 3);
509 add(pluralRules, i+0.0000001, 7, 6);
510 add(pluralRules, i+0.0000000001, 10, 9);
[all …]
DChartGrammaticalForms.java296 final PluralRules pluralRules = plurals.getPluralRules(); in writeSubcharts() local
298 … addTwoColumns(caseTablePrinter, widthStringTarget, adjustedPlurals, pluralRules, true); in writeSubcharts()
322 Double sample = getBestSample(pluralRules, plural); in writeSubcharts()
387 final PluralRules pluralRules = plurals.getPluralRules(); in writeSubcharts() local
389 … addTwoColumns(caseTablePrinter, widthStringTarget, adjustedPlurals, pluralRules, false); in writeSubcharts()
418 Double samplePlural = getBestSample(pluralRules, plural); in writeSubcharts()
468 …idthStringTarget, Collection<Count> adjustedPlurals, final PluralRules pluralRules, boolean spanRo… in addTwoColumns() argument
470 Double sample = getBestSample(pluralRules, plural); in addTwoColumns()
537 private Double getBestSample(PluralRules pluralRules, Count plural) { in getBestSample() argument
538 Collection<Double> samples = pluralRules.getSamples(plural.toString()); in getBestSample()
[all …]
DShowPlurals.java144 PluralRules pluralRules = plurals.getPluralRules(); in printPluralTable() local
150 …FixedDecimalSamples exampleList = pluralRules.getDecimalSamples(keyword, PluralRules.SampleType.IN… in printPluralTable()
151 …FixedDecimalSamples exampleList2 = pluralRules.getDecimalSamples(keyword, PluralRules.SampleType.D… in printPluralTable()
160 String rule = pluralRules.getRules(keyword); in printPluralTable()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalFormatProperties.java120 private transient PluralRules pluralRules; field in DecimalFormatProperties
192 pluralRules = null; in _clear()
238 pluralRules = other.pluralRules; in _copyFrom()
285 eq = eq && _equalsHelper(pluralRules, other.pluralRules); in _equals()
348 hashCode ^= _hashCodeHelper(pluralRules); in _hashCode()
547 return pluralRules; in getPluralRules()
1196 public DecimalFormatProperties setPluralRules(PluralRules pluralRules) { in setPluralRules() argument
1197 this.pluralRules = pluralRules; in setPluralRules()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalFormatProperties.java125 private transient PluralRules pluralRules; field in DecimalFormatProperties
197 pluralRules = null; in _clear()
243 pluralRules = other.pluralRules; in _copyFrom()
290 eq = eq && _equalsHelper(pluralRules, other.pluralRules); in _equals()
353 hashCode ^= _hashCodeHelper(pluralRules); in _hashCode()
552 return pluralRules; in getPluralRules()
1201 public DecimalFormatProperties setPluralRules(PluralRules pluralRules) { in setPluralRules() argument
1202 this.pluralRules = pluralRules; in setPluralRules()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowLegacyResourcesImpl.java68 PluralRules pluralRules = (PluralRules) typedResource; in getQuantityString() local
69 Plural plural = pluralRules.find(quantity); in getQuantityString()
76 …new TypedResource<>(plural.getString(), ResType.CHAR_SEQUENCE, pluralRules.getXmlContext()), shado… in getQuantityString()
DShadowArscResourcesImpl.java93 PluralRules pluralRules = (PluralRules) typedResource; in getQuantityString() local
94 Plural plural = pluralRules.find(quantity); in getQuantityString()
101 …new TypedResource<>(plural.getString(), ResType.CHAR_SEQUENCE, pluralRules.getXmlContext()), shado… in getQuantityString()
DShadowResources.java113 PluralRules pluralRules = (PluralRules) typedResource; in getQuantityString() local
114 Plural plural = pluralRules.find(quantity); in getQuantityString()
121 … new TypedResource<>(plural.getString(), ResType.CHAR_SEQUENCE, pluralRules.getXmlContext()), in getQuantityString()
/external/icu/libicu/cts_headers/unicode/
Dplurfmt.h546 PluralSelectorAdapter() : pluralRules(NULL) { in PluralSelectorAdapter()
555 PluralRules* pluralRules; variable
/external/icu/icu4c/source/i18n/unicode/
Dplurfmt.h546 PluralSelectorAdapter() : pluralRules(NULL) { in PluralSelectorAdapter()
555 PluralRules* pluralRules; variable
/external/cldr/tools/java/org/unicode/cldr/util/
DPluralSnapshot.java86 PluralRules pluralRules = PluralRules.createRules(rules); in SnapshotInfo() local
87 snap = new PluralSnapshot(pluralRules, integral, pluralsTransitionAt); in SnapshotInfo()
147 PluralSnapshot(PluralRules pluralRules, Integral integral, BitSet pluralsTransitionAt) { in PluralSnapshot() argument
155 final Plurals plural = Plurals.valueOf(pluralRules.select(probe)); in PluralSnapshot()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberFormatterImpl.java384 PluralRules pluralRules = macros.rules != null ? in macrosToMicroGenerator() local
394 pluralRules, in macrosToMicroGenerator()
401 pluralRules, in macrosToMicroGenerator()
408 pluralRules, in macrosToMicroGenerator()

12