Home
last modified time | relevance | path

Searched refs:pluralRules (Results 1 – 25 of 31) 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()
818 Objects.equals(pluralRules, pf.pluralRules) && in equals()
837 return pluralRules.hashCode() ^ parsedValues.hashCode(); in hashCode()
847 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()
DRelativeDateTimeFormatter.java648 pluralKeyword = pluralRules.select(dq); in formatImpl()
652 pluralKeyword = pluralRules.select(quantity); in formatImpl()
1017 PluralRules pluralRules, in RelativeDateTimeFormatter() argument
1026 this.pluralRules = pluralRules; in RelativeDateTimeFormatter()
1075 private final PluralRules pluralRules; field in RelativeDateTimeFormatter
/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()
838 Objects.equals(pluralRules, pf.pluralRules) && in equals()
859 return pluralRules.hashCode() ^ parsedValues.hashCode(); in hashCode()
870 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.java718 pluralKeyword = pluralRules.select(dq); in formatImpl()
722 pluralKeyword = pluralRules.select(quantity); in formatImpl()
1097 PluralRules pluralRules, in RelativeDateTimeFormatter() argument
1106 this.pluralRules = pluralRules; in RelativeDateTimeFormatter()
1155 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.cpp354 pluralRules(NULL), in MeasureFormat()
367 pluralRules(NULL), in MeasureFormat()
377 pluralRules(other.pluralRules), in MeasureFormat()
382 pluralRules->addRef(); in MeasureFormat()
395 SharedObject::copyPtr(other.pluralRules, pluralRules); in operator =()
409 pluralRules(NULL), in MeasureFormat()
421 if (pluralRules != NULL) { in ~MeasureFormat()
422 pluralRules->removeRef(); in ~MeasureFormat()
598 SharedObject::copyPtr(pr, pluralRules); in initMeasureFormat()
655 return **pluralRules; in getPluralRules()
[all …]
/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.java128 private transient PluralRules pluralRules; field in DecimalFormatProperties
200 pluralRules = null; in _clear()
246 pluralRules = other.pluralRules; in _copyFrom()
293 eq = eq && _equalsHelper(pluralRules, other.pluralRules); in _equals()
356 hashCode ^= _hashCodeHelper(pluralRules); in _hashCode()
555 return pluralRules; in getPluralRules()
1204 public DecimalFormatProperties setPluralRules(PluralRules pluralRules) { in setPluralRules() argument
1205 this.pluralRules = pluralRules; in setPluralRules()
/external/cldr/tools/java/org/unicode/cldr/tool/
DGeneratedPluralSamples.java491 PluralRules pluralRules = pluralInfo.getPluralRules();
495 String keyword = pluralRules.select(ni);
497 INFO.add(Info.Type.Warning, checkForDuplicates(pluralRules, ni));
500 keywordToData.put(keyword, data = new DataSamples(keyword, pluralRules));
505 public static String checkForDuplicates(PluralRules pluralRules, FixedDecimal ni) {
508 for (String keywordCheck : pluralRules.getKeywords()) {
509 if (pluralRules.matches(ni, keywordCheck)) {
516 message += keywordCheck + ": " + pluralRules.getRules(keywordCheck) + "; ";
609 PluralRules pluralRules = pluralInfo.getPluralRules();
610 Set<String> keywords = pluralRules.getKeywords();
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/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/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()
146 PluralSnapshot(PluralRules pluralRules, Integral integral, BitSet pluralsTransitionAt) { in PluralSnapshot() argument
154 final Plurals plural = Plurals.valueOf(pluralRules.select(probe)); in PluralSnapshot()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralRulesTest.java902 PluralRules pluralRules = factory.forLocale(locale);
910 … KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue);
911 … assertEquals(getAssertMessage("Unique Value", locale, pluralRules, keyword), uniqueExpected,
913 …assertEquals(getAssertMessage("Keyword Status", locale, pluralRules, keyword), statusExpected, sta…
917 … status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue, SampleType.DECIMAL);
918 … assertEquals(getAssertMessage("Unique Value - decimal", locale, pluralRules, keyword),
920 … assertEquals(getAssertMessage("Keyword Status - decimal", locale, pluralRules, keyword),
925 KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, null, uniqueValue);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DPluralRulesTest.java905 PluralRules pluralRules = factory.forLocale(locale);
913 … KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue);
914 … assertEquals(getAssertMessage("Unique Value", locale, pluralRules, keyword), uniqueExpected,
916 …assertEquals(getAssertMessage("Keyword Status", locale, pluralRules, keyword), statusExpected, sta…
920 … status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue, SampleType.DECIMAL);
921 … assertEquals(getAssertMessage("Unique Value - decimal", locale, pluralRules, keyword),
923 … assertEquals(getAssertMessage("Keyword Status - decimal", locale, pluralRules, keyword),
928 KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, null, uniqueValue);

12