Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/java/android/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.java99 return pluralRules; in getPluralRules()
144 pluralRules = PluralRules.createRules(ruleDescription); in setPluralRules()
199 return pluralRules.equals(other.pluralRules) && in equals()
226 return pluralRules.select(number); in select()
237 return pluralRules.select(numberInfo); in select()
251 pluralRules = PluralRules.forLocale(uloc); in initialize()
312 private PluralRules pluralRules = null; field in CurrencyPluralInfo
DCompactDecimalFormat.java65 private final PluralRules pluralRules; field in CompactDecimalFormat
112 this.pluralRules = PluralRules.forLocale(locale); in CompactDecimalFormat()
158 CompactStyle style, PluralRules pluralRules, in CompactDecimalFormat() argument
162 this.pluralRules = pluralRules; in CompactDecimalFormat()
164 if (!pluralRules.getKeywords().equals(this.units.keySet())) { in CompactDecimalFormat()
165 …debugCreationErrors.add("Missmatch in pluralCategories, should be: " + pluralRules.getKeywords() +… in CompactDecimalFormat()
205 && pluralRules.equals(other.pluralRules); in equals()
415 if (pluralRules == null) { in getPluralForm()
418 return pluralRules.select(fixedDecimal); in getPluralForm()
DPluralFormat.java144 private PluralRules pluralRules = null; field in PluralFormat
373 pluralRules = (rules == null) ? PluralRules.forLocale(ulocale, type) in init()
541 return pluralRules.select(dec); in select()
800 Utility.objectEquals(pluralRules, pf.pluralRules) && in equals()
819 return pluralRules.hashCode() ^ parsedValues.hashCode(); in hashCode()
829 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.java101 private transient PluralRules pluralRules; field in TimeUnitFormat
358 pluralRules = PluralRules.forLocale(locale); in setup()
360 Set<String> pluralKeywords = pluralRules.getKeywords(); in setup()
440 Set<String> keywords = pluralRules.getKeywords(); in setup()
DRelativeDateTimeFormatter.java369 numberFormat, pluralRules, formatStr, fieldPosition); in format()
501 PluralRules pluralRules, in RelativeDateTimeFormatter() argument
510 this.pluralRules = pluralRules; in RelativeDateTimeFormatter()
558 private final PluralRules pluralRules; field in RelativeDateTimeFormatter
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralSamples.java35 private PluralRules pluralRules; field in PluralSamples
52 public PluralSamples(PluralRules pluralRules) { in PluralSamples() argument
53 this.pluralRules = pluralRules; in PluralSamples()
54 Set<String> keywords = pluralRules.getKeywords(); in PluralSamples()
64 temp.put(k, pluralRules.isLimited(k)); in PluralSamples()
74 …keywordsRemaining = addSimpleSamples(pluralRules, MAX_SAMPLES, sampleMap, keywordsRemaining, i / 2… in PluralSamples()
77 …keywordsRemaining = addSimpleSamples(pluralRules, MAX_SAMPLES, sampleMap, keywordsRemaining, 10000… in PluralSamples()
86 String keyword = pluralRules.select(s); in PluralSamples()
100 …("Failed to find sample for each keyword: " + foundKeywords + "\n\t" + pluralRules + "\n\t" + ment… in PluralSamples()
109 String keyword = pluralRules.select(s); in PluralSamples()
[all …]
DCurrencyPluralInfo.java107 return pluralRules; in getPluralRules()
156 pluralRules = PluralRules.createRules(ruleDescription); in setPluralRules()
217 return pluralRules.equals(other.pluralRules) && in equals()
243 return pluralRules.select(number); in select()
254 return pluralRules.select(numberInfo); in select()
268 pluralRules = PluralRules.forLocale(uloc); in initialize()
329 private PluralRules pluralRules = null; field in CurrencyPluralInfo
DCompactDecimalFormat.java65 private final PluralRules pluralRules; field in CompactDecimalFormat
117 this.pluralRules = PluralRules.forLocale(locale); in CompactDecimalFormat()
163 CompactStyle style, PluralRules pluralRules, in CompactDecimalFormat() argument
167 this.pluralRules = pluralRules; in CompactDecimalFormat()
169 if (!pluralRules.getKeywords().equals(this.units.keySet())) { in CompactDecimalFormat()
170 …debugCreationErrors.add("Missmatch in pluralCategories, should be: " + pluralRules.getKeywords() +… in CompactDecimalFormat()
211 && pluralRules.equals(other.pluralRules); in equals()
428 if (pluralRules == null) { in getPluralForm()
431 return pluralRules.select(fixedDecimal); in getPluralForm()
DPluralFormat.java144 private PluralRules pluralRules = null; field in PluralFormat
386 pluralRules = (rules == null) ? PluralRules.forLocale(ulocale, type) in init()
556 return pluralRules.select(dec); in select()
820 Utility.objectEquals(pluralRules, pf.pluralRules) && in equals()
841 return pluralRules.hashCode() ^ parsedValues.hashCode(); in hashCode()
852 buf.append(", rules='" + pluralRules + "'"); in toString()
DQuantityFormatter.java62 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { in format() argument
64 StandardPlural p = selectPlural(number, numberFormat, pluralRules); in format()
DTimeUnitFormat.java99 private transient PluralRules pluralRules; field in TimeUnitFormat
356 pluralRules = PluralRules.forLocale(locale); in setup()
358 Set<String> pluralKeywords = pluralRules.getKeywords(); in setup()
438 Set<String> keywords = pluralRules.getKeywords(); in setup()
DRelativeDateTimeFormatter.java409 numberFormat, pluralRules, formatStr, fieldPosition); in format()
548 PluralRules pluralRules, in RelativeDateTimeFormatter() argument
557 this.pluralRules = pluralRules; in RelativeDateTimeFormatter()
605 private final PluralRules pluralRules; field in RelativeDateTimeFormatter
/external/icu/icu4c/source/i18n/
Dplurfmt.cpp150 if (pluralRulesWrapper.pluralRules != NULL) { in copyObjects()
151 delete pluralRulesWrapper.pluralRules; in copyObjects()
159 if (other.pluralRulesWrapper.pluralRules == NULL) { in copyObjects()
160 pluralRulesWrapper.pluralRules = PluralRules::forLocale(locale, status); in copyObjects()
162 pluralRulesWrapper.pluralRules = other.pluralRulesWrapper.pluralRules->clone(); in copyObjects()
178 pluralRulesWrapper.pluralRules = PluralRules::forLocale(locale, type, status); in init()
180 pluralRulesWrapper.pluralRules = rules->clone(); in init()
181 if (pluralRulesWrapper.pluralRules == NULL) { in init()
398 (pluralRulesWrapper.pluralRules == NULL) == (o.pluralRulesWrapper.pluralRules == NULL) && in operator ==()
399 (pluralRulesWrapper.pluralRules == NULL || in operator ==()
[all …]
Dmeasfmt.cpp580 pluralRules(NULL), in MeasureFormat()
593 pluralRules(NULL), in MeasureFormat()
603 pluralRules(other.pluralRules), in MeasureFormat()
608 pluralRules->addRef(); in MeasureFormat()
619 SharedObject::copyPtr(other.pluralRules, pluralRules); in operator =()
629 pluralRules(NULL), in MeasureFormat()
641 if (pluralRules != NULL) { in ~MeasureFormat()
642 pluralRules->removeRef(); in ~MeasureFormat()
817 SharedObject::copyPtr(pr, pluralRules); in initMeasureFormat()
869 return **pluralRules; in getPluralRules()
[all …]
Dcompactdecimalformat.cpp169 PluralRules* pluralRules) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
170 …t(decimalFormat), _unitsByVariant(unitsByVariant), _divisors(divisors), _pluralRules(pluralRules) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
184 LocalPointer<PluralRules> pluralRules(PluralRules::forLocale(inLocale, status)); in createInstance() local
193 … new CompactDecimalFormat(*decfmt, data->unitsByVariant, data->divisors, pluralRules.getAlias()); in createInstance()
198 pluralRules.orphan(); in createInstance()
/external/messageformat/java/com/ibm/icu/simple/
DPluralFormat.java145 private PluralRules pluralRules = null; field in PluralFormat
228 pluralRules = (rules == null) ? PluralRules.forLocale(locale, type) in init()
398 return pluralRules.select(dec); in select()
447 return pluralRules.hashCode() ^ parsedValues.hashCode(); in hashCode()
458 buf.append(", rules='" + pluralRules + "'"); in toString()
/external/icu/icu4c/source/i18n/unicode/
Dplurfmt.h553 PluralSelectorAdapter() : pluralRules(NULL) { in PluralSelectorAdapter()
562 PluralRules* pluralRules; variable
Dcompactdecimalformat.h403 …cimalFormat &, const UHashtable* unitsByVariant, const double* divisors, PluralRules* pluralRules);
Dmeasfmt.h322 const SharedPluralRules *pluralRules; variable
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralRulesTest.java809 PluralRules pluralRules = factory.forLocale(locale);
817 … KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue);
818 … assertEquals(getAssertMessage("Unique Value", locale, pluralRules, keyword), uniqueExpected,
820 …assertEquals(getAssertMessage("Keyword Status", locale, pluralRules, keyword), statusExpected, sta…
824 … status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue, SampleType.DECIMAL);
825 … assertEquals(getAssertMessage("Unique Value - decimal", locale, pluralRules, keyword),
827 … assertEquals(getAssertMessage("Keyword Status - decimal", locale, pluralRules, keyword),
832 KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, null, uniqueValue);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DPluralRulesTest.java813 PluralRules pluralRules = factory.forLocale(locale);
821 … KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue);
822 … assertEquals(getAssertMessage("Unique Value", locale, pluralRules, keyword), uniqueExpected,
824 …assertEquals(getAssertMessage("Keyword Status", locale, pluralRules, keyword), statusExpected, sta…
828 … status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue, SampleType.DECIMAL);
829 … assertEquals(getAssertMessage("Unique Value - decimal", locale, pluralRules, keyword),
831 … assertEquals(getAssertMessage("Keyword Status - decimal", locale, pluralRules, keyword),
836 KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, null, uniqueValue);