/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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralRulesTest.java | 60 import com.ibm.icu.text.PluralRules; 61 import com.ibm.icu.text.PluralRules.DecimalQuantitySamples; 62 import com.ibm.icu.text.PluralRules.DecimalQuantitySamplesRange; 63 import com.ibm.icu.text.PluralRules.FixedDecimal; 64 import com.ibm.icu.text.PluralRules.KeywordStatus; 65 import com.ibm.icu.text.PluralRules.PluralType; 66 import com.ibm.icu.text.PluralRules.SampleType; 103 PluralRules rules = factory.forLocale(locale); in testOverUnderflow() 174 PluralRules.parseDescription(rules); in testSyntaxRestrictions() 185 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 | 32 import com.ibm.icu.text.PluralRules; 33 import com.ibm.icu.text.PluralRules.PluralType; 34 import com.ibm.icu.text.PluralRules.SampleType; 49 plFmts[1] = new PluralFormat(PluralRules.DEFAULT); in TestConstructor() 51 plFmts[2] = new PluralFormat(PluralRules.DEFAULT, "other{#}"); in TestConstructor() 55 plFmts[5] = new PluralFormat(ULocale.getDefault(), PluralRules.DEFAULT); in TestConstructor() 58 PluralRules.DEFAULT, in TestConstructor() 65 plFmts[9] = new PluralFormat(Locale.getDefault(), PluralRules.DEFAULT); in TestConstructor() 108 PluralRules oddAndEven = PluralRules.createRules("odd: n mod 2 is 1"); in TestApplyPatternAndFormat() 218 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); 147 PluralRules defRule(status); in testAPI() 148 LocalPointer<PluralRules> test(new PluralRules(status), status); in testAPI() 153 LocalPointer<PluralRules> newEnPlural(test->forLocale(Locale::getEnglish(), status), status); in testAPI() 160 LocalPointer<PluralRules> dupRule(defRule.clone()); in testAPI() 179 LocalPointer<PluralRules> empRule(test->createRules(UNICODE_STRING_SIMPLE("a:n"), status)); in testAPI() 195 LocalPointer<PluralRules> newRules(test->createRules(pluralTestData[i], status)); in testAPI() 224 LocalPointer<PluralRules> newRules(test->createRules(complexRule, status)); in testAPI() 265 if(test->getDynamicClassID() != PluralRules::getStaticClassID()) { in testAPI() [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/unicode/ |
D | plurrule.h | 212 class U_I18N_API PluralRules : public UObject { 222 PluralRules(UErrorCode& status); 228 PluralRules(const PluralRules& other); 234 virtual ~PluralRules(); 240 PluralRules* clone() const; 246 PluralRules& operator=(const PluralRules&); 258 static PluralRules* U_EXPORT2 createRules(const UnicodeString& description, 269 static PluralRules* U_EXPORT2 createDefaultRules(UErrorCode& status); 287 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status); 305 …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 | 212 class U_I18N_API PluralRules : public UObject { 222 PluralRules(UErrorCode& status); 228 PluralRules(const PluralRules& other); 234 virtual ~PluralRules(); 240 PluralRules* clone() const; 246 PluralRules& operator=(const PluralRules&); 258 static PluralRules* U_EXPORT2 createRules(const UnicodeString& description, 269 static PluralRules* U_EXPORT2 createDefaultRules(UErrorCode& status); 287 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status); 305 …static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UPluralType type, UErrorCode& status… [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | es2018IntlAPIs.types | 3 …er.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules/supportedLocale… 18 console.log(Intl.PluralRules.supportedLocalesOf(locales, options).join(', ')); 19 >console.log(Intl.PluralRules.supportedLocalesOf(locales, options).join(', ')) : void 23 >Intl.PluralRules.supportedLocalesOf(locales, options).join(', ') : string 24 >Intl.PluralRules.supportedLocalesOf(locales, options).join : (separator?: string) => string 25 >Intl.PluralRules.supportedLocalesOf(locales, options) : string[] 26 >Intl.PluralRules.supportedLocalesOf : (locales: string | string[], options?: { localeMatcher?: "lo… 27 …PluralRules : { (locales?: string | string[], options?: Intl.PluralRulesOptions): Intl.PluralRules… 29 …PluralRules : { (locales?: string | string[], options?: Intl.PluralRulesOptions): Intl.PluralRules…
|
D | es2018IntlAPIs.symbols | 3 …er.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules/supportedLocale… 12 console.log(Intl.PluralRules.supportedLocalesOf(locales, options).join(', ')); 16 >Intl.PluralRules.supportedLocalesOf(locales, options).join : Symbol(Array.join, Decl(lib.es5.d.ts,… 17 >Intl.PluralRules.supportedLocalesOf : Symbol(supportedLocalesOf, Decl(lib.es2018.intl.d.ts, --, --… 18 >Intl.PluralRules : Symbol(Intl.PluralRules, Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2018.in… 20 >PluralRules : Symbol(Intl.PluralRules, Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2018.intl.d.…
|
/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 | plurrule.cpp | 72 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(PluralRules) 75 PluralRules::PluralRules(UErrorCode& /*status*/) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 83 PluralRules::PluralRules(const PluralRules& other) in PluralRules() function in PluralRules 92 PluralRules::~PluralRules() { in ~PluralRules() 101 PluralRules* 102 PluralRules::clone() const { in clone() 109 PluralRules* 110 PluralRules::clone(UErrorCode& status) const { in clone() 111 LocalPointer<PluralRules> newObj(new PluralRules(*this), status); in clone() 119 PluralRules& [all …]
|
D | sharedpluralrules.h | 20 class PluralRules; variable 24 SharedPluralRules(PluralRules *prToAdopt) : ptr(prToAdopt) { } in SharedPluralRules() 26 const PluralRules *operator->() const { return ptr; } 27 const PluralRules &operator*() const { return *ptr; } 29 PluralRules *ptr;
|
/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 | 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 …]
|
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 | number_longnames.h | 39 forCurrencyLongNames(const Locale &loc, const CurrencyUnit ¤cy, const PluralRules *rules, 64 const PluralRules *rules, 82 const PluralRules *rules; 89 LongNameHandler(const PluralRules *rules, const MicroPropsGenerator *parent) in LongNameHandler() 160 const PluralRules *rules, 180 const PluralRules *rules; 201 MixedUnitLongNameHandler(const PluralRules *rules, const MicroPropsGenerator *parent) in MixedUnitLongNameHandler() 237 const PluralRules *rules,
|
/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 | plurrule.cpp | 72 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(PluralRules) 75 PluralRules::PluralRules(UErrorCode& /*status*/) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 83 PluralRules::PluralRules(const PluralRules& other) in PluralRules() function in PluralRules 92 PluralRules::~PluralRules() { in ~PluralRules() 101 PluralRules* 102 PluralRules::clone() const { in clone() 109 PluralRules* 110 PluralRules::clone(UErrorCode& status) const { in clone() 111 LocalPointer<PluralRules> newObj(new PluralRules(*this), status); in clone() 119 PluralRules& [all …]
|
D | sharedpluralrules.h | 20 class PluralRules; variable 24 SharedPluralRules(PluralRules *prToAdopt) : ptr(prToAdopt) { } in SharedPluralRules() 26 const PluralRules *operator->() const { return ptr; } 27 const PluralRules &operator*() const { return *ptr; } 29 PluralRules *ptr;
|
D | number_longnames.h | 39 forCurrencyLongNames(const Locale &loc, const CurrencyUnit ¤cy, const PluralRules *rules, 64 const PluralRules *rules, 82 const PluralRules *rules; 89 LongNameHandler(const PluralRules *rules, const MicroPropsGenerator *parent) in LongNameHandler() 160 const PluralRules *rules, 180 const PluralRules *rules; 201 MixedUnitLongNameHandler(const PluralRules *rules, const MicroPropsGenerator *parent) in MixedUnitLongNameHandler() 237 const PluralRules *rules,
|
/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 …]
|