/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralRulesTest.java | 52 import com.ibm.icu.text.PluralRules; 53 import com.ibm.icu.text.PluralRules.FixedDecimal; 54 import com.ibm.icu.text.PluralRules.FixedDecimalRange; 55 import com.ibm.icu.text.PluralRules.FixedDecimalSamples; 56 import com.ibm.icu.text.PluralRules.KeywordStatus; 57 import com.ibm.icu.text.PluralRules.PluralType; 58 import com.ibm.icu.text.PluralRules.SampleType; 95 PluralRules rules = factory.forLocale(locale); in testOverUnderflow() 166 PluralRules.parseDescription(rules); in testSyntaxRestrictions() 177 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 | 31 import com.ibm.icu.text.PluralRules; 32 import com.ibm.icu.text.PluralRules.PluralType; 33 import com.ibm.icu.text.PluralRules.SampleType; 48 plFmts[1] = new PluralFormat(PluralRules.DEFAULT); in TestConstructor() 50 plFmts[2] = new PluralFormat(PluralRules.DEFAULT, "other{#}"); in TestConstructor() 54 plFmts[5] = new PluralFormat(ULocale.getDefault(), PluralRules.DEFAULT); in TestConstructor() 57 PluralRules.DEFAULT, in TestConstructor() 64 plFmts[9] = new PluralFormat(Locale.getDefault(), PluralRules.DEFAULT); in TestConstructor() 107 PluralRules oddAndEven = PluralRules.createRules("odd: n mod 2 is 1"); in TestApplyPatternAndFormat() 217 for (ULocale locale : PluralRules.getAvailableULocales()) { in TestSamples() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
D | PluralRulesTest.java | 51 import ohos.global.icu.text.PluralRules; 52 import ohos.global.icu.text.PluralRules.FixedDecimal; 53 import ohos.global.icu.text.PluralRules.FixedDecimalRange; 54 import ohos.global.icu.text.PluralRules.FixedDecimalSamples; 55 import ohos.global.icu.text.PluralRules.KeywordStatus; 56 import ohos.global.icu.text.PluralRules.PluralType; 57 import ohos.global.icu.text.PluralRules.SampleType; 96 PluralRules rules = factory.forLocale(locale); in testOverUnderflow() 167 PluralRules.parseDescription(rules); in testSyntaxRestrictions() 178 PluralRules test = PluralRules.createRules(description); [all …]
|
D | PluralRulesFactory.java | 12 import ohos.global.icu.text.PluralRules; 13 import ohos.global.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 | 32 import ohos.global.icu.text.PluralRules; 33 import ohos.global.icu.text.PluralRules.PluralType; 34 import ohos.global.icu.text.PluralRules.SampleType; 51 plFmts[1] = new PluralFormat(PluralRules.DEFAULT); in TestConstructor() 53 plFmts[2] = new PluralFormat(PluralRules.DEFAULT, "other{#}"); in TestConstructor() 57 plFmts[5] = new PluralFormat(ULocale.getDefault(), PluralRules.DEFAULT); in TestConstructor() 60 PluralRules.DEFAULT, in TestConstructor() 67 plFmts[9] = new PluralFormat(Locale.getDefault(), PluralRules.DEFAULT); in TestConstructor() 110 PluralRules oddAndEven = PluralRules.createRules("odd: n mod 2 is 1"); in TestApplyPatternAndFormat() 220 for (ULocale locale : PluralRules.getAvailableULocales()) { in TestSamples() [all …]
|
/third_party/icu/icu4c/source/test/intltest/ |
D | plurults.cpp | 39 UBool checkEqual(const PluralRules &test, char *result, int32_t max); 40 UBool testEquality(const PluralRules &test); 143 PluralRules defRule(status); in testAPI() 144 LocalPointer<PluralRules> test(new PluralRules(status), status); in testAPI() 149 LocalPointer<PluralRules> newEnPlural(test->forLocale(Locale::getEnglish(), status), status); in testAPI() 156 LocalPointer<PluralRules> dupRule(defRule.clone()); in testAPI() 175 LocalPointer<PluralRules> empRule(test->createRules(UNICODE_STRING_SIMPLE("a:n"), status)); in testAPI() 191 LocalPointer<PluralRules> newRules(test->createRules(pluralTestData[i], status)); in testAPI() 220 LocalPointer<PluralRules> newRules(test->createRules(complexRule, status)); in testAPI() 261 if(test->getDynamicClassID() != PluralRules::getStaticClassID()) { in testAPI() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/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 …]
|
/third_party/icu/icu4c/source/i18n/unicode/ |
D | plurrule.h | 206 class U_I18N_API PluralRules : public UObject { 216 PluralRules(UErrorCode& status); 222 PluralRules(const PluralRules& other); 228 virtual ~PluralRules(); 234 PluralRules* clone() const; 240 PluralRules& operator=(const PluralRules&); 252 static PluralRules* U_EXPORT2 createRules(const UnicodeString& description, 263 static PluralRules* U_EXPORT2 createDefaultRules(UErrorCode& status); 281 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status); 299 …static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UPluralType type, UErrorCode& status… [all …]
|
/third_party/node/deps/icu-small/source/i18n/unicode/ |
D | plurrule.h | 206 class U_I18N_API PluralRules : public UObject { 216 PluralRules(UErrorCode& status); 222 PluralRules(const PluralRules& other); 228 virtual ~PluralRules(); 234 PluralRules* clone() const; 240 PluralRules& operator=(const PluralRules&); 252 static PluralRules* U_EXPORT2 createRules(const UnicodeString& description, 263 static PluralRules* U_EXPORT2 createDefaultRules(UErrorCode& status); 281 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status); 299 …static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UPluralType type, UErrorCode& status… [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/unicode/ |
D | plurrule.h | 206 class U_I18N_API PluralRules : public UObject { 216 PluralRules(UErrorCode& status); 222 PluralRules(const PluralRules& other); 228 virtual ~PluralRules(); 234 PluralRules* clone() const; 240 PluralRules& operator=(const PluralRules&); 252 static PluralRules* U_EXPORT2 createRules(const UnicodeString& description, 263 static PluralRules* U_EXPORT2 createDefaultRules(UErrorCode& status); 281 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status); 299 …static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UPluralType type, UErrorCode& status… [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | upluralrules.cpp | 41 UnicodeString select(const PluralRules &rules, const Formattable& obj, const NumberFormat& fmt, UEr… in select() 71 return (UPluralRules*)PluralRules::forLocale(Locale(locale), type, *status); in uplrules_openForType() 77 delete (PluralRules*)uplrules; in uplrules_close() 93 UnicodeString result = ((PluralRules*)uplrules)->select(number); in uplrules_select() 115 UnicodeString result = ((PluralRules*)uplrules)->select(*dq); in uplrules_selectFormatted() 134 UnicodeString result = ((PluralRules*)uplrules)->select(impl, *status); in uplrules_selectForRange() 148 const PluralRules* plrules = reinterpret_cast<const PluralRules*>(uplrules); in uplrules_selectWithFormat() 166 const PluralRules* plrules = reinterpret_cast<const PluralRules*>(uplrules); in uplrules_getKeywords()
|
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 | 69 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(PluralRules) 72 PluralRules::PluralRules(UErrorCode& /*status*/) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 80 PluralRules::PluralRules(const PluralRules& other) in PluralRules() function in PluralRules 89 PluralRules::~PluralRules() { in ~PluralRules() 98 PluralRules* 99 PluralRules::clone() const { in clone() 106 PluralRules* 107 PluralRules::clone(UErrorCode& status) const { in clone() 108 LocalPointer<PluralRules> newObj(new PluralRules(*this), status); in clone() 116 PluralRules& [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | upluralrules.cpp | 41 UnicodeString select(const PluralRules &rules, const Formattable& obj, const NumberFormat& fmt, UEr… in select() 71 return (UPluralRules*)PluralRules::forLocale(Locale(locale), type, *status); in uplrules_openForType() 77 delete (PluralRules*)uplrules; in uplrules_close() 93 UnicodeString result = ((PluralRules*)uplrules)->select(number); in uplrules_select() 115 UnicodeString result = ((PluralRules*)uplrules)->select(*dq); in uplrules_selectFormatted() 134 UnicodeString result = ((PluralRules*)uplrules)->select(impl, *status); in uplrules_selectForRange() 148 const PluralRules* plrules = reinterpret_cast<const PluralRules*>(uplrules); in uplrules_selectWithFormat() 166 const PluralRules* plrules = reinterpret_cast<const PluralRules*>(uplrules); in uplrules_getKeywords()
|
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 | 69 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(PluralRules) 72 PluralRules::PluralRules(UErrorCode& /*status*/) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 80 PluralRules::PluralRules(const PluralRules& other) in PluralRules() function in PluralRules 89 PluralRules::~PluralRules() { in ~PluralRules() 98 PluralRules* 99 PluralRules::clone() const { in clone() 106 PluralRules* 107 PluralRules::clone(UErrorCode& status) const { in clone() 108 LocalPointer<PluralRules> newObj(new PluralRules(*this), status); in clone() 116 PluralRules& [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | upluralrules.cpp | 41 UnicodeString select(const PluralRules &rules, const Formattable& obj, const NumberFormat& fmt, UEr… in select() 71 return (UPluralRules*)PluralRules::forLocale(Locale(locale), type, *status); in uplrules_openForType() 77 delete (PluralRules*)uplrules; in uplrules_close() 93 UnicodeString result = ((PluralRules*)uplrules)->select(number); in uplrules_select() 115 UnicodeString result = ((PluralRules*)uplrules)->select(*dq); in uplrules_selectFormatted() 134 UnicodeString result = ((PluralRules*)uplrules)->select(impl, *status); in uplrules_selectForRange() 148 const PluralRules* plrules = reinterpret_cast<const PluralRules*>(uplrules); in uplrules_selectWithFormat() 166 const PluralRules* plrules = reinterpret_cast<const PluralRules*>(uplrules); in uplrules_getKeywords()
|
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 | 69 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(PluralRules) 72 PluralRules::PluralRules(UErrorCode& /*status*/) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 80 PluralRules::PluralRules(const PluralRules& other) in PluralRules() function in PluralRules 89 PluralRules::~PluralRules() { in ~PluralRules() 98 PluralRules* 99 PluralRules::clone() const { in clone() 106 PluralRules* 107 PluralRules::clone(UErrorCode& status) const { in clone() 108 LocalPointer<PluralRules> newObj(new PluralRules(*this), status); in clone() 116 PluralRules& [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | upluralrules.cpp | 38 UnicodeString select(const PluralRules &rules, const Formattable& obj, const NumberFormat& fmt, UEr… in select() 68 return (UPluralRules*)PluralRules::forLocale(Locale(locale), type, *status); in uplrules_openForType() 74 delete (PluralRules*)uplrules; in uplrules_close() 90 UnicodeString result = ((PluralRules*)uplrules)->select(number); in uplrules_select() 104 const PluralRules* plrules = reinterpret_cast<const PluralRules*>(uplrules); in uplrules_selectWithFormat() 122 const PluralRules* plrules = reinterpret_cast<const PluralRules*>(uplrules); in uplrules_getKeywords()
|
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 | 63 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(PluralRules) 66 PluralRules::PluralRules(UErrorCode& /*status*/) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 73 PluralRules::PluralRules(const PluralRules& other) in PluralRules() function in PluralRules 81 PluralRules::~PluralRules() { in ~PluralRules() 89 PluralRules* 90 PluralRules::clone() const { in clone() 91 PluralRules* newObj = new PluralRules(*this); in clone() 101 PluralRules& 102 PluralRules::operator=(const PluralRules& other) { in operator =() 125 StringEnumeration* PluralRules::getAvailableLocales(UErrorCode &status) { in getAvailableLocales() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | PluralRulesLoader.java | 22 import com.ibm.icu.text.PluralRules; 23 import com.ibm.icu.text.PluralRules.PluralType; 30 public class PluralRulesLoader extends PluralRules.Factory { 32 private final Map<String, PluralRules> pluralRulesCache; 43 pluralRulesCache = new HashMap<String, PluralRules>(); in PluralRulesLoader() 182 public PluralRules getOrCreateRulesForLocale(ULocale locale, PluralRules.PluralType type) { in getOrCreateRulesForLocale() 190 PluralRules rules = null; in getOrCreateRulesForLocale() 215 rules = PluralRules.newInternal(sb.toString(), ranges); in getOrCreateRulesForLocale() 244 public PluralRules forLocale(ULocale locale, PluralRules.PluralType type) { in forLocale() 245 PluralRules rules = getOrCreateRulesForLocale(locale, type); in forLocale() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | PluralRulesLoader.java | 23 import ohos.global.icu.text.PluralRules; 24 import ohos.global.icu.text.PluralRules.PluralType; 32 public class PluralRulesLoader extends PluralRules.Factory { 33 private final Map<String, PluralRules> rulesIdToRules; 45 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 …]
|