Home
last modified time | relevance | path

Searched refs:PluralFormat (Results 1 - 25 of 42) sorted by relevance

12

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DPluralFormatUnitTest.java31 import ohos.global.icu.text.PluralFormat;
48 PluralFormat plFmts[] = new PluralFormat[10]; in TestConstructor()
49 plFmts[0] = new PluralFormat(); in TestConstructor()
51 plFmts[1] = new PluralFormat(PluralRules.DEFAULT); in TestConstructor()
53 plFmts[2] = new PluralFormat(PluralRules.DEFAULT, "other{#}"); in TestConstructor()
54 plFmts[3] = new PluralFormat("other{#}"); in TestConstructor()
55 plFmts[4] = new PluralFormat(ULocale.getDefault()); in TestConstructor()
57 plFmts[5] = new PluralFormat(ULocale.getDefault(), PluralRules.DEFAULT); in TestConstructor()
59 plFmts[6] = new PluralFormat(ULocal in TestConstructor()
[all...]
H A DPluralFormatTest.java24 import ohos.global.icu.text.PluralFormat;
60 PluralFormat plf = new PluralFormat(new ULocale(locales[i]), testPattern); in helperTestRules()
335 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, "one{#kg}other{#kgs}"); in TestFractionRounding()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DPluralFormatUnitTest.java31 import com.ibm.icu.text.PluralFormat;
46 PluralFormat plFmts[] = new PluralFormat[10]; in TestConstructor()
47 plFmts[0] = new PluralFormat(); in TestConstructor()
49 plFmts[1] = new PluralFormat(PluralRules.DEFAULT); in TestConstructor()
51 plFmts[2] = new PluralFormat(PluralRules.DEFAULT, "other{#}"); in TestConstructor()
52 plFmts[3] = new PluralFormat("other{#}"); in TestConstructor()
53 plFmts[4] = new PluralFormat(ULocale.getDefault()); in TestConstructor()
55 plFmts[5] = new PluralFormat(ULocale.getDefault(), PluralRules.DEFAULT); in TestConstructor()
57 plFmts[6] = new PluralFormat(ULocal in TestConstructor()
[all...]
H A DPluralFormatTest.java23 import com.ibm.icu.text.PluralFormat;
57 PluralFormat plf = new PluralFormat(new ULocale(locales[i]), testPattern); in helperTestRules()
332 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, "one{#kg}other{#kgs}"); in TestFractionRounding()
/third_party/icu/icu4c/source/i18n/
H A Dplurfmt.cpp38 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(PluralFormat)
40 PluralFormat::PluralFormat(UErrorCode& status) in PluralFormat() function in PluralFormat
48 PluralFormat::PluralFormat(const Locale& loc, UErrorCode& status) in PluralFormat() function in PluralFormat
56 PluralFormat::PluralFormat(const PluralRules& rules, UErrorCode& status) in PluralFormat() function in PluralFormat
64 PluralFormat::PluralFormat(const Locale& loc, in PluralFormat() function in PluralFormat
74 PluralFormat function in PluralFormat
84 PluralFormat::PluralFormat(const UnicodeString& pat, PluralFormat() function in PluralFormat
94 PluralFormat::PluralFormat(const Locale& loc, PluralFormat() function in PluralFormat
105 PluralFormat::PluralFormat(const PluralRules& rules, PluralFormat() function in PluralFormat
116 PluralFormat::PluralFormat(const Locale& loc, PluralFormat() function in PluralFormat
128 PluralFormat::PluralFormat(const Locale& loc, PluralFormat() function in PluralFormat
140 PluralFormat::PluralFormat(const PluralFormat& other) PluralFormat() function in PluralFormat
[all...]
H A Dnfrule.h29 class PluralFormat;
116 const PluralFormat* rulePatternFormat;
/third_party/node/deps/icu-small/source/i18n/
H A Dplurfmt.cpp38 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(PluralFormat)
40 PluralFormat::PluralFormat(UErrorCode& status) in PluralFormat() function in PluralFormat
48 PluralFormat::PluralFormat(const Locale& loc, UErrorCode& status) in PluralFormat() function in PluralFormat
56 PluralFormat::PluralFormat(const PluralRules& rules, UErrorCode& status) in PluralFormat() function in PluralFormat
64 PluralFormat::PluralFormat(const Locale& loc, in PluralFormat() function in PluralFormat
74 PluralFormat function in PluralFormat
84 PluralFormat::PluralFormat(const UnicodeString& pat, PluralFormat() function in PluralFormat
94 PluralFormat::PluralFormat(const Locale& loc, PluralFormat() function in PluralFormat
105 PluralFormat::PluralFormat(const PluralRules& rules, PluralFormat() function in PluralFormat
116 PluralFormat::PluralFormat(const Locale& loc, PluralFormat() function in PluralFormat
128 PluralFormat::PluralFormat(const Locale& loc, PluralFormat() function in PluralFormat
140 PluralFormat::PluralFormat(const PluralFormat& other) PluralFormat() function in PluralFormat
[all...]
H A Dnfrule.h29 class PluralFormat;
116 const PluralFormat* rulePatternFormat;
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dplurfmt.cpp38 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(PluralFormat)
40 PluralFormat::PluralFormat(UErrorCode& status) in PluralFormat() function in PluralFormat
48 PluralFormat::PluralFormat(const Locale& loc, UErrorCode& status) in PluralFormat() function in PluralFormat
56 PluralFormat::PluralFormat(const PluralRules& rules, UErrorCode& status) in PluralFormat() function in PluralFormat
64 PluralFormat::PluralFormat(const Locale& loc, in PluralFormat() function in PluralFormat
74 PluralFormat function in PluralFormat
84 PluralFormat::PluralFormat(const UnicodeString& pat, PluralFormat() function in PluralFormat
94 PluralFormat::PluralFormat(const Locale& loc, PluralFormat() function in PluralFormat
105 PluralFormat::PluralFormat(const PluralRules& rules, PluralFormat() function in PluralFormat
116 PluralFormat::PluralFormat(const Locale& loc, PluralFormat() function in PluralFormat
128 PluralFormat::PluralFormat(const Locale& loc, PluralFormat() function in PluralFormat
140 PluralFormat::PluralFormat(const PluralFormat& other) PluralFormat() function in PluralFormat
[all...]
H A Dnfrule.h29 class PluralFormat;
116 const PluralFormat* rulePatternFormat;
/third_party/icu/icu4c/source/i18n/unicode/
H A Dplurfmt.h23 * \brief C++ API: PluralFormat object
39 * <code>PluralFormat</code> supports the creation of internationalized
43 * <code>PluralFormat</code> selects the appropriate message based on
60 * <code>PluralFormat</code> deals with this by breaking the problem
76 * <h4>Usage of <code>PluralFormat</code></h4>
79 * rather than using a stand-alone <code>PluralFormat</code>.
81 * This discussion assumes that you use <code>PluralFormat</code> with
124 * <code>NumberFormat</code> for the <code>PluralFormat</code>'s locale. If you
134 * <p>If you need to use <code>PluralFormat</code> with custom rules, you can
136 * <code>PluralFormat</cod
148 class U_I18N_API PluralFormat : public Format { global() class
[all...]
H A Drbnf.h48 class PluralFormat;
497 * This uses the cardinal plural rules from PluralFormat. All strings used in the plural format are treated
506 * This uses the ordinal plural rules from PluralFormat. All strings used in the plural format are treated
576 * @see PluralFormat
1092 PluralFormat *createPluralFormat(UPluralType pluralType, const UnicodeString &pattern, UErrorCode& status) const;
/third_party/node/deps/icu-small/source/i18n/unicode/
H A Dplurfmt.h23 * \brief C++ API: PluralFormat object
39 * <code>PluralFormat</code> supports the creation of internationalized
43 * <code>PluralFormat</code> selects the appropriate message based on
60 * <code>PluralFormat</code> deals with this by breaking the problem
76 * <h4>Usage of <code>PluralFormat</code></h4>
79 * rather than using a stand-alone <code>PluralFormat</code>.
81 * This discussion assumes that you use <code>PluralFormat</code> with
124 * <code>NumberFormat</code> for the <code>PluralFormat</code>'s locale. If you
134 * <p>If you need to use <code>PluralFormat</code> with custom rules, you can
136 * <code>PluralFormat</cod
148 class U_I18N_API PluralFormat : public Format { global() class
[all...]
H A Drbnf.h48 class PluralFormat;
499 * This uses the cardinal plural rules from PluralFormat. All strings used in the plural format are treated
508 * This uses the ordinal plural rules from PluralFormat. All strings used in the plural format are treated
578 * @see PluralFormat
1094 PluralFormat *createPluralFormat(UPluralType pluralType, const UnicodeString &pattern, UErrorCode& status) const;
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
H A Dplurfmt.h23 * \brief C++ API: PluralFormat object
39 * <code>PluralFormat</code> supports the creation of internationalized
43 * <code>PluralFormat</code> selects the appropriate message based on
60 * <code>PluralFormat</code> deals with this by breaking the problem
76 * <h4>Usage of <code>PluralFormat</code></h4>
79 * rather than using a stand-alone <code>PluralFormat</code>.
81 * This discussion assumes that you use <code>PluralFormat</code> with
124 * <code>NumberFormat</code> for the <code>PluralFormat</code>'s locale. If you
134 * <p>If you need to use <code>PluralFormat</code> with custom rules, you can
136 * <code>PluralFormat</cod
148 class U_I18N_API PluralFormat : public Format { global() class
[all...]
H A Drbnf.h48 class PluralFormat;
479 * This uses the cardinal plural rules from PluralFormat. All strings used in the plural format are treated
488 * This uses the ordinal plural rules from PluralFormat. All strings used in the plural format are treated
558 * @see PluralFormat
1071 PluralFormat *createPluralFormat(UPluralType pluralType, const UnicodeString &pattern, UErrorCode& status) const;
/third_party/icu/icu4c/source/test/intltest/
H A Dplurfmts.cpp37 if (exec) logln("TestSuite PluralFormat"); in runIndexedTest()
50 * Test various generic API methods of PluralFormat for Basic usage.
55 PluralFormat* plFmt[8]; in pluralFormatBasicTest()
58 UnicodeString message=UnicodeString("PluralFormat basic test"); in pluralFormatBasicTest()
61 logln(" Testing PluralFormat constructors ..."); in pluralFormatBasicTest()
74 plFmt[0] = new PluralFormat(status[0]); in pluralFormatBasicTest()
75 plFmt[1] = new PluralFormat(*plRules, status[1]); in pluralFormatBasicTest()
76 plFmt[2] = new PluralFormat(locale, status[2]); in pluralFormatBasicTest()
77 plFmt[3] = new PluralFormat(locale, *plRules, status[3]); in pluralFormatBasicTest()
78 plFmt[4] = new PluralFormat(otherPatter in pluralFormatBasicTest()
[all...]
H A Dplurfmts.h38 void numberFormatTest(PluralFormat* plFmt,
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DPluralFormat.java29 * <code>PluralFormat</code> supports the creation of internationalized
33 * <code>PluralFormat</code> selects the appropriate message based on
50 * <code>PluralFormat</code> deals with this by breaking the problem
66 * <h4>Usage of <code>PluralFormat</code></h4>
69 * rather than using a stand-alone <code>PluralFormat</code>.
71 * This discussion assumes that you use <code>PluralFormat</code> with
113 * <code>NumberFormat</code> for the <code>PluralFormat</code>'s locale. If you
123 * <p>If you need to use <code>PluralFormat</code> with custom rules, you can
125 * <code>PluralFormat</code>'s constructor. If you also specify a locale in this
135 public class PluralFormat extend class
190 public PluralFormat() { PluralFormat() method in PluralFormat
201 public PluralFormat(ULocale ulocale) { PluralFormat() method in PluralFormat
213 public PluralFormat(Locale locale) { PluralFormat() method in PluralFormat
225 public PluralFormat(PluralRules rules) { PluralFormat() method in PluralFormat
238 public PluralFormat(ULocale ulocale, PluralRules rules) { PluralFormat() method in PluralFormat
251 public PluralFormat(Locale locale, PluralRules rules) { PluralFormat() method in PluralFormat
263 public PluralFormat(ULocale ulocale, PluralType type) { PluralFormat() method in PluralFormat
275 public PluralFormat(Locale locale, PluralType type) { PluralFormat() method in PluralFormat
288 public PluralFormat(String pattern) { PluralFormat() method in PluralFormat
306 public PluralFormat(ULocale ulocale, String pattern) { PluralFormat() method in PluralFormat
322 public PluralFormat(PluralRules rules, String pattern) { PluralFormat() method in PluralFormat
339 public PluralFormat(ULocale ulocale, PluralRules rules, String pattern) { PluralFormat() method in PluralFormat
355 public PluralFormat(ULocale ulocale, PluralType type, String pattern) { PluralFormat() method in PluralFormat
371 /*package*/ PluralFormat(ULocale ulocale, PluralType type, String pattern, NumberFormat numberFormat) { PluralFormat() method in PluralFormat
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DPluralFormat.java30 * <code>PluralFormat</code> supports the creation of internationalized
34 * <code>PluralFormat</code> selects the appropriate message based on
51 * <code>PluralFormat</code> deals with this by breaking the problem
67 * <h4>Usage of <code>PluralFormat</code></h4>
70 * rather than using a stand-alone <code>PluralFormat</code>.
72 * This discussion assumes that you use <code>PluralFormat</code> with
114 * <code>NumberFormat</code> for the <code>PluralFormat</code>'s locale. If you
124 * <p>If you need to use <code>PluralFormat</code> with custom rules, you can
126 * <code>PluralFormat</code>'s constructor. If you also specify a locale in this
135 public class PluralFormat extend class
189 public PluralFormat() { PluralFormat() method in PluralFormat
199 public PluralFormat(ULocale ulocale) { PluralFormat() method in PluralFormat
210 public PluralFormat(Locale locale) { PluralFormat() method in PluralFormat
221 public PluralFormat(PluralRules rules) { PluralFormat() method in PluralFormat
233 public PluralFormat(ULocale ulocale, PluralRules rules) { PluralFormat() method in PluralFormat
245 public PluralFormat(Locale locale, PluralRules rules) { PluralFormat() method in PluralFormat
256 public PluralFormat(ULocale ulocale, PluralType type) { PluralFormat() method in PluralFormat
267 public PluralFormat(Locale locale, PluralType type) { PluralFormat() method in PluralFormat
279 public PluralFormat(String pattern) { PluralFormat() method in PluralFormat
296 public PluralFormat(ULocale ulocale, String pattern) { PluralFormat() method in PluralFormat
311 public PluralFormat(PluralRules rules, String pattern) { PluralFormat() method in PluralFormat
327 public PluralFormat(ULocale ulocale, PluralRules rules, String pattern) { PluralFormat() method in PluralFormat
342 public PluralFormat(ULocale ulocale, PluralType type, String pattern) { PluralFormat() method in PluralFormat
358 /*package*/ PluralFormat(ULocale ulocale, PluralType type, String pattern, NumberFormat numberFormat) { PluralFormat() method in PluralFormat
[all...]
/third_party/icu/icu4j/samples/src/com/ibm/icu/samples/text/pluralformat/
H A DPluralFormatSample.java14 import com.ibm.icu.text.PluralFormat;
29 System.out.println(" Use PluralFormat and Messageformat to get appropriate Plural Form for languages below:"); in PluralFormatExample()
39 // Create a new PluralFormat for a given locale locale and pattern string in PluralFormatExample()
40 PluralFormat plfmtEn = new PluralFormat(locEn, patEn); in PluralFormatExample()
41 PluralFormat plfmtSl = new PluralFormat(locSl, patSl); in PluralFormatExample()
47 System.out.println("Output by using PluralFormat and MessageFormat API\n"); in PluralFormatExample()
/third_party/icu/icu4c/source/samples/plurfmtsample/
H A Dplurfmtsample.cpp26 u_printf(" Use PluralFormat and Messageformat to get Plural Form for languages below:\n"); in PluralFormatExample()
38 // Create a new PluralFormat for a given locale locale and pattern string in PluralFormatExample()
39 PluralFormat plfmtEn = PluralFormat(locEn, patEn,status); in PluralFormatExample()
40 PluralFormat plfmtSl = PluralFormat(locSl, patSl,status); in PluralFormatExample()
46 u_printf("Output by using PluralFormat and MessageFormat API\n"); in PluralFormatExample()
/third_party/skia/third_party/externals/icu/source/samples/plurfmtsample/
H A Dplurfmtsample.cpp26 u_printf(" Use PluralFormat and Messageformat to get Plural Form for languages below:\n"); in PluralFormatExample()
38 // Create a new PluralFormat for a given locale locale and pattern string in PluralFormatExample()
39 PluralFormat plfmtEn = PluralFormat(locEn, patEn,status); in PluralFormatExample()
40 PluralFormat plfmtSl = PluralFormat(locSl, patSl,status); in PluralFormatExample()
46 u_printf("Output by using PluralFormat and MessageFormat API\n"); in PluralFormatExample()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/serializable/
H A DFormatHandler.java37 import ohos.global.icu.text.PluralFormat;
2285 PluralFormat[] plfmts = new PluralFormat[locales.length]; in getTestObjects()
2289 plfmts[i] = new PluralFormat(uloc, "one{1 foo} other{# foo}"); in getTestObjects()
2298 PluralFormat pfa = (PluralFormat)a; in hasSameBehavior()
2299 PluralFormat pfb = (PluralFormat)b; in hasSameBehavior()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
H A DFormatHandler.java37 import com.ibm.icu.text.PluralFormat;
2298 PluralFormat[] plfmts = new PluralFormat[locales.length]; in getTestObjects()
2302 plfmts[i] = new PluralFormat(uloc, "one{1 foo} other{# foo}"); in getTestObjects()
2311 PluralFormat pfa = (PluralFormat)a; in hasSameBehavior()
2312 PluralFormat pfb = (PluralFormat)b; in hasSameBehavior()

Completed in 32 milliseconds

12