Home
last modified time | relevance | path

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

12

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DPluralFormatUnitTest.java31 import android.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(ULocale.getDefault(), in TestConstructor()
62 plFmts[7] = new PluralFormat(ULocale.getDefault(), "other{#}"); in TestConstructor()
[all …]
DPluralFormatTest.java24 import android.icu.text.PluralFormat;
60 PluralFormat plf = new PluralFormat(new ULocale(locales[i]), testPattern); in helperTestRules()
334 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, "one{#kg}other{#kgs}"); in TestFractionRounding()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralFormatUnitTest.java30 import com.ibm.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 …]
DPluralFormatTest.java23 import com.ibm.icu.text.PluralFormat;
57 PluralFormat plf = new PluralFormat(new ULocale(locales[i]), testPattern); in helperTestRules()
331 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, "one{#kg}other{#kgs}"); in TestFractionRounding()
/external/icu/icu4c/source/i18n/
Dplurfmt.cpp35 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(PluralFormat) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
37 PluralFormat::PluralFormat(UErrorCode& status) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
45 PluralFormat::PluralFormat(const Locale& loc, UErrorCode& status) in PluralFormat() function in PluralFormat
53 PluralFormat::PluralFormat(const PluralRules& rules, UErrorCode& status) in PluralFormat() function in PluralFormat
61 PluralFormat::PluralFormat(const Locale& loc, in PluralFormat() function in PluralFormat
71 PluralFormat::PluralFormat(const Locale& loc, in PluralFormat() function in PluralFormat
81 PluralFormat::PluralFormat(const UnicodeString& pat, in PluralFormat() function in PluralFormat
91 PluralFormat::PluralFormat(const Locale& loc, in PluralFormat() function in PluralFormat
102 PluralFormat::PluralFormat(const PluralRules& rules, in PluralFormat() function in PluralFormat
113 PluralFormat::PluralFormat(const Locale& loc, in PluralFormat() function in PluralFormat
[all …]
Dnfrule.h29 class PluralFormat; variable
114 const PluralFormat* rulePatternFormat;
/external/icu/icu4c/source/i18n/unicode/
Dplurfmt.h146 class U_I18N_API PluralFormat : public Format {
157 PluralFormat(UErrorCode& status);
168 PluralFormat(const Locale& locale, UErrorCode& status);
179 PluralFormat(const PluralRules& rules, UErrorCode& status);
197 PluralFormat(const Locale& locale, const PluralRules& rules, UErrorCode& status);
209 PluralFormat(const Locale& locale, UPluralType type, UErrorCode& status);
221 PluralFormat(const UnicodeString& pattern, UErrorCode& status);
237 PluralFormat(const Locale& locale, const UnicodeString& pattern, UErrorCode& status);
250 PluralFormat(const PluralRules& rules,
268 PluralFormat(const Locale& locale,
[all …]
Drbnf.h46 class PluralFormat; variable
1092PluralFormat *createPluralFormat(UPluralType pluralType, const UnicodeString &pattern, UErrorCode&…
Dmsgfmt.h877 class U_I18N_API PluralSelectorProvider : public PluralFormat::PluralSelector {
/external/icu/icu4c/source/test/intltest/
Dplurfmts.cpp55 PluralFormat* plFmt[8]; 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(otherPattern, status[4]); in pluralFormatBasicTest()
79 plFmt[5] = new PluralFormat(*plRules, otherPattern, status[5]); in pluralFormatBasicTest()
80 plFmt[6] = new PluralFormat(locale, otherPattern, status[6]); in pluralFormatBasicTest()
81 plFmt[7] = new PluralFormat(locale, *plRules, otherPattern, status[7]); in pluralFormatBasicTest()
94 plFmt[0]= new PluralFormat(status[0]); in pluralFormatBasicTest()
[all …]
Dplurfmts.h38 void numberFormatTest(PluralFormat* plFmt,
Duobjtest.cpp367 TESTCLASSID_CTOR(PluralFormat, (status)); in testIDs()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DPluralFormat.java133 public class PluralFormat extends UFormat { class
187 public PluralFormat() { in PluralFormat() method in PluralFormat
197 public PluralFormat(ULocale ulocale) { in PluralFormat() method in PluralFormat
208 public PluralFormat(Locale locale) { in PluralFormat() method in PluralFormat
219 public PluralFormat(PluralRules rules) { in PluralFormat() method in PluralFormat
231 public PluralFormat(ULocale ulocale, PluralRules rules) { in PluralFormat() method in PluralFormat
243 public PluralFormat(Locale locale, PluralRules rules) { in PluralFormat() method in PluralFormat
254 public PluralFormat(ULocale ulocale, PluralType type) { in PluralFormat() method in PluralFormat
265 public PluralFormat(Locale locale, PluralType type) { in PluralFormat() method in PluralFormat
277 public PluralFormat(String pattern) { in PluralFormat() method in PluralFormat
[all …]
DNFRule.java99 private PluralFormat rulePatternFormat = null;
1125 …String delimiter, PluralFormat pluralFormatDelimiter, ParsePosition pp, NFSubstitution sub, double… in matchToDelimiter()
1267 private int[] findText(String str, String key, PluralFormat pluralFormatKey, int startingAt) { in findText()
DRuleBasedNumberFormat.java1585 PluralFormat createPluralFormat(PluralRules.PluralType pluralType, String pattern) { in createPluralFormat()
1586 return new PluralFormat(locale, pluralType, pattern, getDecimalFormat()); in createPluralFormat()
DMessageFormat.java1639 formatter instanceof PluralFormat || in format()
1703 int subMsgStart=PluralFormat.findSubMessage( in format()
2038 private static final class PluralSelectorProvider implements PluralFormat.PluralSelector {
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralFormat.java133 public class PluralFormat extends UFormat { class
188 public PluralFormat() { in PluralFormat() method in PluralFormat
199 public PluralFormat(ULocale ulocale) { in PluralFormat() method in PluralFormat
211 public PluralFormat(Locale locale) { in PluralFormat() method in PluralFormat
223 public PluralFormat(PluralRules rules) { in PluralFormat() method in PluralFormat
236 public PluralFormat(ULocale ulocale, PluralRules rules) { in PluralFormat() method in PluralFormat
249 public PluralFormat(Locale locale, PluralRules rules) { in PluralFormat() method in PluralFormat
261 public PluralFormat(ULocale ulocale, PluralType type) { in PluralFormat() method in PluralFormat
273 public PluralFormat(Locale locale, PluralType type) { in PluralFormat() method in PluralFormat
286 public PluralFormat(String pattern) { in PluralFormat() method in PluralFormat
[all …]
DNFRule.java98 private PluralFormat rulePatternFormat = null;
1124 …String delimiter, PluralFormat pluralFormatDelimiter, ParsePosition pp, NFSubstitution sub, double… in matchToDelimiter()
1266 private int[] findText(String str, String key, PluralFormat pluralFormatKey, int startingAt) { in findText()
DRuleBasedNumberFormat.java1623 PluralFormat createPluralFormat(PluralRules.PluralType pluralType, String pattern) { in createPluralFormat()
1624 return new PluralFormat(locale, pluralType, pattern, getDecimalFormat()); in createPluralFormat()
DMessageFormat.java1683 formatter instanceof PluralFormat || in format()
1747 int subMsgStart=PluralFormat.findSubMessage( in format()
2082 private static final class PluralSelectorProvider implements PluralFormat.PluralSelector {
/external/icu/icu4j/samples/src/com/ibm/icu/samples/text/pluralformat/
DPluralFormatSample.java14 import com.ibm.icu.text.PluralFormat;
40 PluralFormat plfmtEn = new PluralFormat(locEn, patEn); in PluralFormatExample()
41 PluralFormat plfmtSl = new PluralFormat(locSl, patSl); in PluralFormatExample()
/external/icu/android_icu4j/src/samples/java/android/icu/samples/text/pluralformat/
DPluralFormatSample.java15 import android.icu.text.PluralFormat;
41 PluralFormat plfmtEn = new PluralFormat(locEn, patEn); in PluralFormatExample()
42 PluralFormat plfmtSl = new PluralFormat(locSl, patSl); in PluralFormatExample()
/external/icu/icu4c/source/samples/plurfmtsample/
Dplurfmtsample.cpp37 PluralFormat plfmtEn = PluralFormat(locEn, patEn,status); in PluralFormatExample()
38 PluralFormat plfmtSl = PluralFormat(locSl, patSl,status); in PluralFormatExample()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DFormatHandler.java36 import android.icu.text.PluralFormat;
2221 PluralFormat[] plfmts = new PluralFormat[locales.length]; in getTestObjects()
2225 plfmts[i] = new PluralFormat(uloc, "one{1 foo} other{# foo}"); in getTestObjects()
2234 PluralFormat pfa = (PluralFormat)a; in hasSameBehavior()
2235 PluralFormat pfb = (PluralFormat)b; in hasSameBehavior()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DFormatHandler.java35 import com.ibm.icu.text.PluralFormat;
2218 PluralFormat[] plfmts = new PluralFormat[locales.length]; in getTestObjects()
2222 plfmts[i] = new PluralFormat(uloc, "one{1 foo} other{# foo}"); in getTestObjects()
2231 PluralFormat pfa = (PluralFormat)a; in hasSameBehavior()
2232 PluralFormat pfb = (PluralFormat)b; in hasSameBehavior()

12