/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | PluralRulesTest.java | 44 import android.icu.text.PluralRules; 45 import android.icu.text.PluralRules.FixedDecimal; 46 import android.icu.text.PluralRules.FixedDecimalRange; 47 import android.icu.text.PluralRules.FixedDecimalSamples; 48 import android.icu.text.PluralRules.KeywordStatus; 49 import android.icu.text.PluralRules.PluralType; 50 import android.icu.text.PluralRules.SampleType; 86 PluralRules rules = factory.forLocale(locale); in testOverUnderflow() 157 PluralRules.parseDescription(rules); in testSyntaxRestrictions() 168 PluralRules test = PluralRules.createRules(description); [all …]
|
D | PluralRulesFactory.java | 12 import android.icu.text.PluralRules; 13 import android.icu.text.PluralRules.PluralType; 20 public abstract class PluralRulesFactory extends PluralRules.Factory { 32 public PluralRules forLocale(ULocale locale, PluralType ordinal) { in forLocale() 33 return PluralRules.forLocale(locale, ordinal); in forLocale() 37 return PluralRules.getAvailableULocales(); in getAvailableULocales() 41 return PluralRules.getFunctionalEquivalent(locale, isAvailable); in getFunctionalEquivalent()
|
D | PluralFormatUnitTest.java | 30 import android.icu.text.PluralRules; 31 import android.icu.text.PluralRules.PluralType; 32 import android.icu.text.PluralRules.SampleType; 46 plFmts[1] = new PluralFormat(PluralRules.DEFAULT); in TestConstructor() 48 plFmts[2] = new PluralFormat(PluralRules.DEFAULT, "other{#}"); in TestConstructor() 52 plFmts[5] = new PluralFormat(ULocale.getDefault(), PluralRules.DEFAULT); in TestConstructor() 55 PluralRules.DEFAULT, in TestConstructor() 62 plFmts[9] = new PluralFormat(Locale.getDefault(), PluralRules.DEFAULT); in TestConstructor() 103 PluralRules oddAndEven = PluralRules.createRules("odd: n mod 2 is 1"); in TestApplyPatternAndFormat() 213 for (ULocale locale : PluralRules.getAvailableULocales()) { in TestSamples() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralRulesTest.java | 43 import com.ibm.icu.text.PluralRules; 44 import com.ibm.icu.text.PluralRules.FixedDecimal; 45 import com.ibm.icu.text.PluralRules.FixedDecimalRange; 46 import com.ibm.icu.text.PluralRules.FixedDecimalSamples; 47 import com.ibm.icu.text.PluralRules.KeywordStatus; 48 import com.ibm.icu.text.PluralRules.PluralType; 49 import com.ibm.icu.text.PluralRules.SampleType; 85 PluralRules rules = factory.forLocale(locale); in testOverUnderflow() 156 PluralRules.parseDescription(rules); in testSyntaxRestrictions() 167 PluralRules test = PluralRules.createRules(description); [all …]
|
D | PluralRulesFactory.java | 11 import com.ibm.icu.text.PluralRules; 12 import com.ibm.icu.text.PluralRules.PluralType; 19 public abstract class PluralRulesFactory extends PluralRules.Factory { 31 public PluralRules forLocale(ULocale locale, PluralType ordinal) { in forLocale() 32 return PluralRules.forLocale(locale, ordinal); in forLocale() 36 return PluralRules.getAvailableULocales(); in getAvailableULocales() 40 return PluralRules.getFunctionalEquivalent(locale, isAvailable); in getFunctionalEquivalent()
|
D | PluralFormatUnitTest.java | 29 import com.ibm.icu.text.PluralRules; 30 import com.ibm.icu.text.PluralRules.PluralType; 31 import com.ibm.icu.text.PluralRules.SampleType; 45 plFmts[1] = new PluralFormat(PluralRules.DEFAULT); in TestConstructor() 47 plFmts[2] = new PluralFormat(PluralRules.DEFAULT, "other{#}"); in TestConstructor() 51 plFmts[5] = new PluralFormat(ULocale.getDefault(), PluralRules.DEFAULT); in TestConstructor() 54 PluralRules.DEFAULT, in TestConstructor() 61 plFmts[9] = new PluralFormat(Locale.getDefault(), PluralRules.DEFAULT); in TestConstructor() 102 PluralRules oddAndEven = PluralRules.createRules("odd: n mod 2 is 1"); in TestApplyPatternAndFormat() 212 for (ULocale locale : PluralRules.getAvailableULocales()) { in TestSamples() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | plurults.cpp | 33 UBool checkEqual(const PluralRules &test, char *result, int32_t max); 34 UBool testEquality(const PluralRules &test); 129 PluralRules defRule(status); in testAPI() 130 LocalPointer<PluralRules> test(new PluralRules(status), status); in testAPI() 135 LocalPointer<PluralRules> newEnPlural(test->forLocale(Locale::getEnglish(), status), status); in testAPI() 142 LocalPointer<PluralRules> dupRule(defRule.clone()); in testAPI() 161 LocalPointer<PluralRules> empRule(test->createRules(UNICODE_STRING_SIMPLE("a:n"), status)); in testAPI() 177 LocalPointer<PluralRules> newRules(test->createRules(pluralTestData[i], status)); in testAPI() 206 LocalPointer<PluralRules> newRules(test->createRules(complexRule, status)); in testAPI() 247 if(test->getDynamicClassID() != PluralRules::getStaticClassID()) { in testAPI() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | plurrule.h | 194 class U_I18N_API PluralRules : public UObject { 204 PluralRules(UErrorCode& status); 210 PluralRules(const PluralRules& other); 216 virtual ~PluralRules(); 222 PluralRules* clone() const; 228 PluralRules& operator=(const PluralRules&); 240 static PluralRules* U_EXPORT2 createRules(const UnicodeString& description, 251 static PluralRules* U_EXPORT2 createDefaultRules(UErrorCode& status); 269 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status); 287 …static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UPluralType type, UErrorCode& status… [all …]
|
D | plurfmt.h | 179 PluralFormat(const PluralRules& rules, UErrorCode& status); 197 PluralFormat(const Locale& locale, const PluralRules& rules, UErrorCode& status); 250 PluralFormat(const PluralRules& rules, 269 const PluralRules& rules, 564 PluralRules* pluralRules; 578 void init(const PluralRules* rules, UPluralType type, UErrorCode& status);
|
/external/messageformat/java/com/ibm/icu/simple/ |
D | PluralRulesLoader.java | 18 import com.ibm.icu.simple.PluralRules.PluralType; 23 public class PluralRulesLoader extends PluralRules.Factory { 28 private final Map<String, PluralRules> rulesIdToRules; 37 rulesIdToRules = new HashMap<String, PluralRules>(); in PluralRulesLoader() 114 public PluralRules getRulesForRulesId(String rulesId) { in getRulesForRulesId() 116 PluralRules rules = null; in getRulesForRulesId() 145 rules = PluralRules.parseDescription(sb.toString()); in getRulesForRulesId() 164 public PluralRules forLocale(Locale locale, PluralRules.PluralType type) { in forLocale() 167 return PluralRules.DEFAULT; in forLocale() 169 PluralRules rules = getRulesForRulesId(rulesId); in forLocale() [all …]
|
D | PluralFormat.java | 17 import com.ibm.icu.simple.PluralRules.FixedDecimal; 18 import com.ibm.icu.simple.PluralRules.PluralType; 145 private PluralRules pluralRules = null; 226 private void init(PluralRules rules, PluralType type, Locale locale) { in init() 228 pluralRules = (rules == null) ? PluralRules.forLocale(locale, type) in init()
|
/external/icu/icu4c/source/i18n/ |
D | sharedpluralrules.h | 19 class PluralRules; variable 23 SharedPluralRules(PluralRules *prToAdopt) : ptr(prToAdopt) { } in SharedPluralRules() 25 const PluralRules *operator->() const { return ptr; } 26 const PluralRules &operator*() const { return *ptr; } 28 PluralRules *ptr;
|
D | plurrule.cpp | 61 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(PluralRules) 64 PluralRules::PluralRules(UErrorCode& /*status*/) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 70 PluralRules::PluralRules(const PluralRules& other) in PluralRules() function in PluralRules 77 PluralRules::~PluralRules() { in ~PluralRules() 85 PluralRules* 86 PluralRules::clone() const { in clone() 87 return new PluralRules(*this); in clone() 90 PluralRules& 91 PluralRules::operator=(const PluralRules& other) { in operator =() 105 StringEnumeration* PluralRules::getAvailableLocales(UErrorCode &status) { in getAvailableLocales() [all …]
|
D | digitaffixesandpadding.h | 30 class PluralRules; variable 135 const PluralRules *optPluralRules, 146 const PluralRules *optPluralRules, 167 const PluralRules *optPluralRules,
|
D | upluralrules.cpp | 31 return (UPluralRules*)PluralRules::forLocale(Locale(locale), type, *status); in uplrules_openForType() 37 delete (PluralRules*)uplrules; in uplrules_close() 53 UnicodeString result = ((PluralRules*)uplrules)->select(number); in uplrules_select()
|
D | quantityformatter.h | 25 class PluralRules; variable 107 const PluralRules &rules, 118 const PluralRules &rules,
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | PluralRulesLoader.java | 22 import android.icu.text.PluralRules; 23 import android.icu.text.PluralRules.PluralType; 31 public class PluralRulesLoader extends PluralRules.Factory { 32 private final Map<String, PluralRules> rulesIdToRules; 44 rulesIdToRules = new HashMap<String, PluralRules>(); in PluralRulesLoader() 184 public PluralRules getRulesForRulesId(String rulesId) { in getRulesForRulesId() 186 PluralRules rules = null; in getRulesForRulesId() 210 rules = PluralRules.parseDescription(sb.toString()); in getRulesForRulesId() 239 public PluralRules forLocale(ULocale locale, PluralRules.PluralType type) { in forLocale() 242 return PluralRules.DEFAULT; in forLocale() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | PluralRulesLoader.java | 21 import com.ibm.icu.text.PluralRules; 22 import com.ibm.icu.text.PluralRules.PluralType; 29 public class PluralRulesLoader extends PluralRules.Factory { 30 private final Map<String, PluralRules> rulesIdToRules; 42 rulesIdToRules = new HashMap<String, PluralRules>(); in PluralRulesLoader() 182 public PluralRules getRulesForRulesId(String rulesId) { in getRulesForRulesId() 184 PluralRules rules = null; in getRulesForRulesId() 208 rules = PluralRules.parseDescription(sb.toString()); in getRulesForRulesId() 237 public PluralRules forLocale(ULocale locale, PluralRules.PluralType type) { in forLocale() 240 return PluralRules.DEFAULT; in forLocale() [all …]
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/ |
D | PluralResourceLoader.java | 16 Map<String, PluralRules> plurals = new HashMap<String, PluralRules>(); 26 PluralRules rules = plurals.get(name); in getValue() 39 PluralRules rules = new PluralRules(); in processNode() 58 static class PluralRules { class in PluralResourceLoader
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | PluralFormat.java | 21 import android.icu.text.PluralRules.FixedDecimal; 22 import android.icu.text.PluralRules.PluralType; 146 private PluralRules pluralRules = null; 218 public PluralFormat(PluralRules rules) { in PluralFormat() 230 public PluralFormat(ULocale ulocale, PluralRules rules) { in PluralFormat() 242 public PluralFormat(Locale locale, PluralRules rules) { in PluralFormat() 308 public PluralFormat(PluralRules rules, String pattern) { in PluralFormat() 324 public PluralFormat(ULocale ulocale, PluralRules rules, String pattern) { in PluralFormat() 373 … private void init(PluralRules rules, PluralType type, ULocale locale, NumberFormat numberFormat) { in init() 375 pluralRules = (rules == null) ? PluralRules.forLocale(ulocale, type) in init()
|
D | CurrencyPluralInfo.java | 100 public PluralRules getPluralRules() { in getPluralRules() 146 pluralRules = PluralRules.createRules(ruleDescription); in setPluralRules() 238 String select(PluralRules.FixedDecimal numberInfo) { in select() 253 pluralRules = PluralRules.forLocale(uloc); in initialize() 314 private PluralRules pluralRules = null;
|
D | QuantityFormatter.java | 16 import android.icu.text.PluralRules.FixedDecimal; 65 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { in format() 95 …public static StandardPlural selectPlural(double number, NumberFormat numberFormat, PluralRules ru… in selectPlural() 109 Number number, NumberFormat fmt, PluralRules rules, in selectPlural()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | PluralFormat.java | 20 import com.ibm.icu.text.PluralRules.FixedDecimal; 21 import com.ibm.icu.text.PluralRules.PluralType; 146 private PluralRules pluralRules = null; 222 public PluralFormat(PluralRules rules) { in PluralFormat() 235 public PluralFormat(ULocale ulocale, PluralRules rules) { in PluralFormat() 248 public PluralFormat(Locale locale, PluralRules rules) { in PluralFormat() 319 public PluralFormat(PluralRules rules, String pattern) { in PluralFormat() 336 public PluralFormat(ULocale ulocale, PluralRules rules, String pattern) { in PluralFormat() 386 … private void init(PluralRules rules, PluralType type, ULocale locale, NumberFormat numberFormat) { in init() 388 pluralRules = (rules == null) ? PluralRules.forLocale(ulocale, type) in init()
|
D | CurrencyPluralInfo.java | 108 public PluralRules getPluralRules() { in getPluralRules() 158 pluralRules = PluralRules.createRules(ruleDescription); in setPluralRules() 255 String select(PluralRules.FixedDecimal numberInfo) { in select() 270 pluralRules = PluralRules.forLocale(uloc); in initialize() 331 private PluralRules pluralRules = null;
|
D | QuantityFormatter.java | 15 import com.ibm.icu.text.PluralRules.FixedDecimal; 64 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { in format() 94 …public static StandardPlural selectPlural(double number, NumberFormat numberFormat, PluralRules ru… in selectPlural() 108 Number number, NumberFormat fmt, PluralRules rules, in selectPlural()
|