/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | PluralSamples.java | 37 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 …]
|
D | CurrencyPluralInfo.java | 109 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
|
D | PluralFormat.java | 149 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()
|
D | QuantityFormatter.java | 64 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { in format() argument 66 StandardPlural p = selectPlural(number, numberFormat, pluralRules); in format()
|
D | TimeUnitFormat.java | 94 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()
|
D | RelativeDateTimeFormatter.java | 511 numberFormat, pluralRules, formatStr, fieldPosition); in format() 770 PluralRules pluralRules, in RelativeDateTimeFormatter() argument 779 this.pluralRules = pluralRules; in RelativeDateTimeFormatter() 828 private final PluralRules pluralRules; field in RelativeDateTimeFormatter
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | PluralSamples.java | 39 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 …]
|
D | CurrencyPluralInfo.java | 101 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
|
D | PluralFormat.java | 149 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()
|
D | QuantityFormatter.java | 65 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { in format() argument 67 StandardPlural p = selectPlural(number, numberFormat, pluralRules); in format()
|
D | TimeUnitFormat.java | 96 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()
|
D | RelativeDateTimeFormatter.java | 455 numberFormat, pluralRules, formatStr, fieldPosition); in format() 707 PluralRules pluralRules, in RelativeDateTimeFormatter() argument 716 this.pluralRules = pluralRules; in RelativeDateTimeFormatter() 765 private final PluralRules pluralRules; field in RelativeDateTimeFormatter
|
/external/icu/icu4c/source/i18n/ |
D | plurfmt.cpp | 155 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() 391 (pluralRulesWrapper.pluralRules == NULL) == (o.pluralRulesWrapper.pluralRules == NULL) && in operator ==() 392 (pluralRulesWrapper.pluralRules == NULL || in operator ==() [all …]
|
D | measfmt.cpp | 620 pluralRules(NULL), in MeasureFormat() 633 pluralRules(NULL), in MeasureFormat() 643 pluralRules(other.pluralRules), in MeasureFormat() 648 pluralRules->addRef(); in MeasureFormat() 661 SharedObject::copyPtr(other.pluralRules, pluralRules); in operator =() 675 pluralRules(NULL), in MeasureFormat() 687 if (pluralRules != NULL) { in ~MeasureFormat() 688 pluralRules->removeRef(); in ~MeasureFormat() 882 SharedObject::copyPtr(pr, pluralRules); in initMeasureFormat() 934 return **pluralRules; in getPluralRules() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | DecimalFormatProperties.java | 118 private transient PluralRules pluralRules; field in DecimalFormatProperties 190 pluralRules = null; in _clear() 236 pluralRules = other.pluralRules; in _copyFrom() 283 eq = eq && _equalsHelper(pluralRules, other.pluralRules); in _equals() 346 hashCode ^= _hashCodeHelper(pluralRules); in _hashCode() 545 return pluralRules; in getPluralRules() 1194 public DecimalFormatProperties setPluralRules(PluralRules pluralRules) { in setPluralRules() argument 1195 this.pluralRules = pluralRules; in setPluralRules()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | DecimalFormatProperties.java | 113 private transient PluralRules pluralRules; field in DecimalFormatProperties 185 pluralRules = null; in _clear() 231 pluralRules = other.pluralRules; in _copyFrom() 278 eq = eq && _equalsHelper(pluralRules, other.pluralRules); in _equals() 341 hashCode ^= _hashCodeHelper(pluralRules); in _hashCode() 540 return pluralRules; in getPluralRules() 1189 public DecimalFormatProperties setPluralRules(PluralRules pluralRules) { in setPluralRules() argument 1190 this.pluralRules = pluralRules; in setPluralRules()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | GeneratedPluralSamples.java | 491 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();
|
D | ShowPlurals.java | 144 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/ |
D | ShadowArscResourcesImpl.java | 93 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()
|
D | ShadowLegacyResourcesImpl.java | 68 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()
|
D | ShadowResources.java | 113 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/cldr/tools/java/org/unicode/cldr/util/ |
D | PluralSnapshot.java | 86 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/icu4c/source/i18n/unicode/ |
D | plurfmt.h | 547 PluralSelectorAdapter() : pluralRules(NULL) { in PluralSelectorAdapter() 556 PluralRules* pluralRules; variable
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | PluralRulesTest.java | 838 PluralRules pluralRules = factory.forLocale(locale); 846 … KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue); 847 … assertEquals(getAssertMessage("Unique Value", locale, pluralRules, keyword), uniqueExpected, 849 …assertEquals(getAssertMessage("Keyword Status", locale, pluralRules, keyword), statusExpected, sta… 853 … status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue, SampleType.DECIMAL); 854 … assertEquals(getAssertMessage("Unique Value - decimal", locale, pluralRules, keyword), 856 … assertEquals(getAssertMessage("Keyword Status - decimal", locale, pluralRules, keyword), 861 KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, null, uniqueValue);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralRulesTest.java | 835 PluralRules pluralRules = factory.forLocale(locale); 843 … KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue); 844 … assertEquals(getAssertMessage("Unique Value", locale, pluralRules, keyword), uniqueExpected, 846 …assertEquals(getAssertMessage("Keyword Status", locale, pluralRules, keyword), statusExpected, sta… 850 … status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue, SampleType.DECIMAL); 851 … assertEquals(getAssertMessage("Unique Value - decimal", locale, pluralRules, keyword), 853 … assertEquals(getAssertMessage("Keyword Status - decimal", locale, pluralRules, keyword), 858 KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, null, uniqueValue);
|