Home
last modified time | relevance | path

Searched refs:PluralFormat (Results 1 – 25 of 40) sorted by relevance

12

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralFormatUnitTest.java24 import com.ibm.icu.text.PluralFormat;
41 PluralFormat plFmts[] = new PluralFormat[10]; in TestConstructor()
42 plFmts[0] = new PluralFormat(); in TestConstructor()
44 plFmts[1] = new PluralFormat(PluralRules.DEFAULT); in TestConstructor()
46 plFmts[2] = new PluralFormat(PluralRules.DEFAULT, "other{#}"); in TestConstructor()
47 plFmts[3] = new PluralFormat("other{#}"); in TestConstructor()
48 plFmts[4] = new PluralFormat(ULocale.getDefault()); in TestConstructor()
50 plFmts[5] = new PluralFormat(ULocale.getDefault(), PluralRules.DEFAULT); in TestConstructor()
52 plFmts[6] = new PluralFormat(ULocale.getDefault(), in TestConstructor()
55 plFmts[7] = new PluralFormat(ULocale.getDefault(), "other{#}"); in TestConstructor()
[all …]
DTestAll.java107 public static class PluralFormat extends TestGroup { class in TestAll
108 public PluralFormat() { in PluralFormat() method in TestAll.PluralFormat
DPluralFormatTest.java15 import com.ibm.icu.text.PluralFormat;
53 PluralFormat plf = new PluralFormat(new ULocale(locales[i]), testPattern); in helperTestRules()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DPluralFormatUnitTest.java25 import android.icu.text.PluralFormat;
45 PluralFormat plFmts[] = new PluralFormat[10]; in TestConstructor()
46 plFmts[0] = new PluralFormat(); in TestConstructor()
48 plFmts[1] = new PluralFormat(PluralRules.DEFAULT); in TestConstructor()
50 plFmts[2] = new PluralFormat(PluralRules.DEFAULT, "other{#}"); in TestConstructor()
51 plFmts[3] = new PluralFormat("other{#}"); in TestConstructor()
52 plFmts[4] = new PluralFormat(ULocale.getDefault()); in TestConstructor()
54 plFmts[5] = new PluralFormat(ULocale.getDefault(), PluralRules.DEFAULT); in TestConstructor()
56 plFmts[6] = new PluralFormat(ULocale.getDefault(), in TestConstructor()
59 plFmts[7] = new PluralFormat(ULocale.getDefault(), "other{#}"); in TestConstructor()
[all …]
DTestAll.java117 public static class PluralFormat extends TestGroup { class in TestAll
118 public PluralFormat() { in PluralFormat() method in TestAll.PluralFormat
DPluralFormatTest.java16 import android.icu.text.PluralFormat;
57 PluralFormat plf = new PluralFormat(new ULocale(locales[i]), testPattern); in helperTestRules()
/external/icu/icu4c/source/i18n/
Dplurfmt.cpp33 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(PluralFormat) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
35 PluralFormat::PluralFormat(UErrorCode& status) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
43 PluralFormat::PluralFormat(const Locale& loc, UErrorCode& status) in PluralFormat() function in PluralFormat
51 PluralFormat::PluralFormat(const PluralRules& rules, UErrorCode& status) in PluralFormat() function in PluralFormat
59 PluralFormat::PluralFormat(const Locale& loc, in PluralFormat() function in PluralFormat
69 PluralFormat::PluralFormat(const Locale& loc, in PluralFormat() function in PluralFormat
79 PluralFormat::PluralFormat(const UnicodeString& pat, in PluralFormat() function in PluralFormat
89 PluralFormat::PluralFormat(const Locale& loc, in PluralFormat() function in PluralFormat
100 PluralFormat::PluralFormat(const PluralRules& rules, in PluralFormat() function in PluralFormat
111 PluralFormat::PluralFormat(const Locale& loc, in PluralFormat() function in PluralFormat
[all …]
Dnfrule.h28 class PluralFormat; variable
113 const PluralFormat* rulePatternFormat;
/external/icu/icu4c/source/i18n/unicode/
Dplurfmt.h144 class U_I18N_API PluralFormat : public Format {
155 PluralFormat(UErrorCode& status);
166 PluralFormat(const Locale& locale, UErrorCode& status);
177 PluralFormat(const PluralRules& rules, UErrorCode& status);
195 PluralFormat(const Locale& locale, const PluralRules& rules, UErrorCode& status);
207 PluralFormat(const Locale& locale, UPluralType type, UErrorCode& status);
219 PluralFormat(const UnicodeString& pattern, UErrorCode& status);
235 PluralFormat(const Locale& locale, const UnicodeString& pattern, UErrorCode& status);
248 PluralFormat(const PluralRules& rules,
266 PluralFormat(const Locale& locale,
[all …]
Drbnf.h44 class PluralFormat; variable
1025PluralFormat *createPluralFormat(UPluralType pluralType, const UnicodeString &pattern, UErrorCode&…
Dmsgfmt.h875 class U_I18N_API PluralSelectorProvider : public PluralFormat::PluralSelector {
/external/icu/icu4c/source/test/intltest/
Dplurfmts.cpp53 PluralFormat* plFmt[8]; in pluralFormatBasicTest()
72 plFmt[0] = new PluralFormat(status[0]); in pluralFormatBasicTest()
73 plFmt[1] = new PluralFormat(*plRules, status[1]); in pluralFormatBasicTest()
74 plFmt[2] = new PluralFormat(locale, status[2]); in pluralFormatBasicTest()
75 plFmt[3] = new PluralFormat(locale, *plRules, status[3]); in pluralFormatBasicTest()
76 plFmt[4] = new PluralFormat(otherPattern, status[4]); in pluralFormatBasicTest()
77 plFmt[5] = new PluralFormat(*plRules, otherPattern, status[5]); in pluralFormatBasicTest()
78 plFmt[6] = new PluralFormat(locale, otherPattern, status[6]); in pluralFormatBasicTest()
79 plFmt[7] = new PluralFormat(locale, *plRules, otherPattern, status[7]); in pluralFormatBasicTest()
92 plFmt[0]= new PluralFormat(status[0]); in pluralFormatBasicTest()
[all …]
Dplurfmts.h36 void numberFormatTest(PluralFormat* plFmt,
/external/icu/android_icu4j/src/main/java/android/icu/text/
DPluralFormat.java130 public class PluralFormat extends UFormat { class
184 public PluralFormat() { in PluralFormat() method in PluralFormat
194 public PluralFormat(ULocale ulocale) { in PluralFormat() method in PluralFormat
205 public PluralFormat(Locale locale) { in PluralFormat() method in PluralFormat
216 public PluralFormat(PluralRules rules) { in PluralFormat() method in PluralFormat
228 public PluralFormat(ULocale ulocale, PluralRules rules) { in PluralFormat() method in PluralFormat
240 public PluralFormat(Locale locale, PluralRules rules) { in PluralFormat() method in PluralFormat
251 public PluralFormat(ULocale ulocale, PluralType type) { in PluralFormat() method in PluralFormat
262 public PluralFormat(Locale locale, PluralType type) { in PluralFormat() method in PluralFormat
274 public PluralFormat(String pattern) { in PluralFormat() method in PluralFormat
[all …]
DNFRule.java97 private PluralFormat rulePatternFormat = null;
1095 …String delimiter, PluralFormat pluralFormatDelimiter, ParsePosition pp, NFSubstitution sub, double… in matchToDelimiter()
1237 private int[] findText(String str, String key, PluralFormat pluralFormatKey, int startingAt) { in findText()
DRuleBasedNumberFormat.java1563 PluralFormat createPluralFormat(PluralRules.PluralType pluralType, String pattern) { in createPluralFormat()
1564 return new PluralFormat(locale, pluralType, pattern, getDecimalFormat()); in createPluralFormat()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralFormat.java130 public class PluralFormat extends UFormat { class
185 public PluralFormat() { in PluralFormat() method in PluralFormat
196 public PluralFormat(ULocale ulocale) { in PluralFormat() method in PluralFormat
208 public PluralFormat(Locale locale) { in PluralFormat() method in PluralFormat
220 public PluralFormat(PluralRules rules) { in PluralFormat() method in PluralFormat
233 public PluralFormat(ULocale ulocale, PluralRules rules) { in PluralFormat() method in PluralFormat
246 public PluralFormat(Locale locale, PluralRules rules) { in PluralFormat() method in PluralFormat
258 public PluralFormat(ULocale ulocale, PluralType type) { in PluralFormat() method in PluralFormat
270 public PluralFormat(Locale locale, PluralType type) { in PluralFormat() method in PluralFormat
283 public PluralFormat(String pattern) { in PluralFormat() method in PluralFormat
[all …]
DNFRule.java96 private PluralFormat rulePatternFormat = null;
1094 …String delimiter, PluralFormat pluralFormatDelimiter, ParsePosition pp, NFSubstitution sub, double… in matchToDelimiter()
1236 private int[] findText(String str, String key, PluralFormat pluralFormatKey, int startingAt) { in findText()
DRuleBasedNumberFormat.java1599 PluralFormat createPluralFormat(PluralRules.PluralType pluralType, String pattern) { in createPluralFormat()
1600 return new PluralFormat(locale, pluralType, pattern, getDecimalFormat()); in createPluralFormat()
/external/icu/android_icu4j/src/samples/java/android/icu/samples/text/pluralformat/
DPluralFormatSample.java13 import android.icu.text.PluralFormat;
39 PluralFormat plfmtEn = new PluralFormat(locEn, patEn); in PluralFormatExample()
40 PluralFormat plfmtSl = new PluralFormat(locSl, patSl); in PluralFormatExample()
/external/icu/icu4j/samples/src/com/ibm/icu/samples/text/pluralformat/
DPluralFormatSample.java12 import com.ibm.icu.text.PluralFormat;
38 PluralFormat plfmtEn = new PluralFormat(locEn, patEn); in PluralFormatExample()
39 PluralFormat plfmtSl = new PluralFormat(locSl, patSl); in PluralFormatExample()
/external/icu/icu4c/source/samples/plurfmtsample/
Dplurfmtsample.cpp33 PluralFormat plfmtEn = PluralFormat(locEn, patEn,status); in PluralFormatExample()
34 PluralFormat plfmtSl = PluralFormat(locSl, patSl,status); in PluralFormatExample()
/external/messageformat/java/com/ibm/icu/simple/
DPluralFormat.java131 public class PluralFormat /* extends UFormat */ { class
186 public PluralFormat() { in PluralFormat() method in PluralFormat
197 public PluralFormat(Locale locale) { in PluralFormat() method in PluralFormat
209 public PluralFormat(Locale locale, PluralType type) { in PluralFormat() method in PluralFormat
437 public boolean equals(PluralFormat rhs) { in equals()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DFormatTests.java34 import android.icu.text.PluralFormat;
2140 PluralFormat[] plfmts = new PluralFormat[locales.length]; in getTestObjects()
2144 plfmts[i] = new PluralFormat(uloc, "one{1 foo} other{# foo}"); in getTestObjects()
2152 PluralFormat pfa = (PluralFormat)a; in hasSameBehavior()
2153 PluralFormat pfb = (PluralFormat)b; in hasSameBehavior()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DFormatTests.java33 import com.ibm.icu.text.PluralFormat;
2139 PluralFormat[] plfmts = new PluralFormat[locales.length]; in getTestObjects()
2143 plfmts[i] = new PluralFormat(uloc, "one{1 foo} other{# foo}"); in getTestObjects()
2151 PluralFormat pfa = (PluralFormat)a; in hasSameBehavior()
2152 PluralFormat pfb = (PluralFormat)b; in hasSameBehavior()

12