Home
last modified time | relevance | path

Searched refs:ChoiceFormat (Results 1 – 25 of 29) sorted by relevance

12

/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DChoiceFormatTest.java20 import java.text.ChoiceFormat;
29 double[] limits = new double[] { 0, 1, ChoiceFormat.nextDouble(1),
30 ChoiceFormat.nextDouble(2) };
35 ChoiceFormat f1 = new ChoiceFormat(limits, formats);
47 ChoiceFormat cf = new ChoiceFormat(appleLimits, appleFormats); in test_Constructor$D$Ljava_lang_String()
94 ChoiceFormat cf = new ChoiceFormat(patternString); in test_ConstructorLjava_lang_String()
141 ChoiceFormat f = (ChoiceFormat) f1.clone(); in test_applyPatternLjava_lang_String()
149 double[] choiceLimits = { -1, 0, 1, ChoiceFormat.nextDouble(1) }; in test_applyPatternLjava_lang_String()
153 f = new ChoiceFormat(""); in test_applyPatternLjava_lang_String()
160 f = new ChoiceFormat(""); in test_applyPatternLjava_lang_String()
[all …]
DNumberFormatTest.java20 import java.text.ChoiceFormat;
208 ChoiceFormat cformat = new ChoiceFormat( in test_getCurrency()
238 ChoiceFormat cformat = new ChoiceFormat( in test_setCurrencyLjava_util_Currency()
275 ChoiceFormat choiceFormat = new ChoiceFormat( in test_setRoundingMode_NullRoundingMode()
292 ChoiceFormat choiceFormat = new ChoiceFormat( in test_setRoundingMode_Normal()
DMessageFormatTest.java25 import java.text.ChoiceFormat;
106 assertTrue("Wrong choice format", formats[3].equals(new ChoiceFormat( in test_ConstructorLjava_lang_String()
284 "0.0#no|1.0#one|2.0#{1,number}", ((ChoiceFormat) format.getFormats()[0]).toPattern()); in test_applyPatternLjava_lang_String()
410 new ChoiceFormat("0#off|1#on"), DateFormat.getDateInstance(), }; in test_getFormats()
424 new ChoiceFormat("0#off|1#on"), DateFormat.getDateInstance() }; in test_getFormats()
448 new ChoiceFormat("0#off|1#on"), DateFormat.getTimeInstance(), in test_getFormatsByArgumentIndex()
461 new ChoiceFormat("0#off|1#on"), null, in test_getFormatsByArgumentIndex()
486 f1.setFormatByArgumentIndex(4, new ChoiceFormat("1#few|2#ok|3#a lot")); in test_setFormatByArgumentIndexILjava_text_Format()
494 new ChoiceFormat("0#off|1#on"), DateFormat.getTimeInstance(), in test_setFormatByArgumentIndexILjava_text_Format()
496 new ChoiceFormat("1#few|2#ok|3#a lot") }; in test_setFormatByArgumentIndexILjava_text_Format()
[all …]
/external/icu4c/i18n/
Dchoicfmt.cpp47 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(ChoiceFormat)
75 ChoiceFormat::ChoiceFormat(const UnicodeString& newPattern, in ChoiceFormat() function in ChoiceFormat
87 ChoiceFormat::ChoiceFormat(const double* limits, in ChoiceFormat() function in ChoiceFormat
98 ChoiceFormat::ChoiceFormat(const double* limits, in ChoiceFormat() function in ChoiceFormat
111 ChoiceFormat::ChoiceFormat(const ChoiceFormat& that) in ChoiceFormat() function in ChoiceFormat
123 ChoiceFormat::ChoiceFormat(const UnicodeString& newPattern, in ChoiceFormat() function in ChoiceFormat
134 ChoiceFormat::operator==(const Format& that) const in operator ==()
138 ChoiceFormat& thatAlias = (ChoiceFormat&)that; in operator ==()
145 const ChoiceFormat&
146 ChoiceFormat::operator=(const ChoiceFormat& that) in operator =()
[all …]
Dmsgfmt.cpp1021 if (dynamic_cast<const ChoiceFormat*>(formatter) || in format()
1061 int32_t subMsgStart = ChoiceFormat::findSubMessage(msgPattern, i, number); in format()
1346 double choiceResult = ChoiceFormat::parseArgument(msgPattern, i, source, tempStatus); in parse()
/external/chromium_org/third_party/icu/source/i18n/
Dchoicfmt.cpp45 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(ChoiceFormat)
70 ChoiceFormat::ChoiceFormat(const UnicodeString& newPattern, in ChoiceFormat() function in ChoiceFormat
84 ChoiceFormat::ChoiceFormat(const double* limits, in ChoiceFormat() function in ChoiceFormat
97 ChoiceFormat::ChoiceFormat(const double* limits, in ChoiceFormat() function in ChoiceFormat
112 ChoiceFormat::ChoiceFormat(const ChoiceFormat& that) in ChoiceFormat() function in ChoiceFormat
126 ChoiceFormat::ChoiceFormat(const UnicodeString& newPattern, in ChoiceFormat() function in ChoiceFormat
139 ChoiceFormat::operator==(const Format& that) const in operator ==()
143 ChoiceFormat& thatAlias = (ChoiceFormat&)that; in operator ==()
159 const ChoiceFormat&
160 ChoiceFormat::operator=(const ChoiceFormat& that) in operator =()
[all …]
Dmsgfmt.cpp726 ChoiceFormat* chcfmt; in toPattern()
832 else if ((chcfmt = dynamic_cast<ChoiceFormat*>(fmt)) != NULL) { in toPattern()
837 appendTo += ((ChoiceFormat*)fmt)->toPattern(buffer); in toPattern()
1241 if ((dynamic_cast<ChoiceFormat*>(fmt) != NULL || in format()
1591 fmt = new ChoiceFormat(segments[3], parseError, ec); in makeFormat()
Ducurr.cpp727 ChoiceFormat fmt(s, ec2); in getCurrencyNameCount()
850 ChoiceFormat fmt(s, ec2); in collectCurrencyNames()
1392 ChoiceFormat f(currname, ec); in uprv_getStaticCurrencyName()
/external/chromium_org/third_party/icu/source/i18n/unicode/
Dchoicfmt.h259 class U_I18N_API ChoiceFormat: public NumberFormat {
270 ChoiceFormat(const UnicodeString& pattern,
284 ChoiceFormat(const double* limits,
305 ChoiceFormat(const double* limits,
316 ChoiceFormat(const ChoiceFormat& that);
324 const ChoiceFormat& operator=(const ChoiceFormat& that);
330 virtual ~ChoiceFormat();
663 ChoiceFormat(); // default constructor not implemented
676 ChoiceFormat(const UnicodeString& newPattern,
725 ChoiceFormat::format(const Formattable& obj, in format()
[all …]
Ddecimfmt.h46 class ChoiceFormat; variable
2109 ChoiceFormat* fCurrencyChoice;
/external/icu4c/i18n/unicode/
Dchoicfmt.h171 class U_I18N_API ChoiceFormat: public NumberFormat {
181 ChoiceFormat(const UnicodeString& pattern,
197 ChoiceFormat(const double* limits,
215 ChoiceFormat(const double* limits,
226 ChoiceFormat(const ChoiceFormat& that);
234 const ChoiceFormat& operator=(const ChoiceFormat& that);
240 virtual ~ChoiceFormat();
551 ChoiceFormat(); // default constructor not implemented
563 ChoiceFormat(const UnicodeString& newPattern,
663 ChoiceFormat::format(const Formattable& obj, in format()
[all …]
Ddecimfmt.h57 class ChoiceFormat; variable
2238 ChoiceFormat* fCurrencyChoice;
/external/icu4c/test/intltest/
Dtchcfmt.cpp46 ChoiceFormat* form = new ChoiceFormat(limits, monthNames, 7); in TestSimpleExample()
73 ChoiceFormat* formnew=new ChoiceFormat(filelimits, filepart, 3); in TestSimpleExample()
74 ChoiceFormat* formequal=new ChoiceFormat(limits, monthNames, 7); in TestSimpleExample()
131 ChoiceFormat* fileform = new ChoiceFormat( filelimits, filepart, 4); in TestComplexExample()
293 ChoiceFormat* form_A = new ChoiceFormat(limits_A, monthNames_A, 7); in TestComplexExample()
294 ChoiceFormat* form_A2 = new ChoiceFormat(limits_A, monthNames_A, 7); in TestComplexExample()
297 ChoiceFormat* form_B = new ChoiceFormat(limits_B, monthNames_B, 7); in TestComplexExample()
313 ChoiceFormat* form_A3 = (ChoiceFormat*) form_A->clone(); in TestComplexExample()
324 ChoiceFormat form_Assigned( *form_A ); in TestComplexExample()
340 ChoiceFormat form_pat( testPattern, status ); in TestComplexExample()
[all …]
Dmsfmrgts.cpp301 ChoiceFormat *f = new ChoiceFormat( in Test4052223()
339 ChoiceFormat *cf = new ChoiceFormat(limits, formats, formats_length); in Test4104976()
394 ChoiceFormat *cf = new ChoiceFormat(limits, formats, 3); in Test4106660()
586 ChoiceFormat *fmt = new ChoiceFormat( in Test4106661()
644 ChoiceFormat *fmt = new ChoiceFormat(pattern, status); in Test4094906()
800 ChoiceFormat *fileform = new ChoiceFormat(filelimits, filepart, 3); in Test4105380()
935 ChoiceFormat *cf = new ChoiceFormat(DATA[i], status); in TestChoicePatternQuote()
948 ChoiceFormat *cf2 = new ChoiceFormat(pat, status); in TestChoicePatternQuote()
Duobjtest.cpp359 …TESTCLASSID_CTOR(ChoiceFormat, (UNICODE_STRING_SIMPLE("0#are no files|1#is one file|1<are many fil… in testIDs()
591 if (dynamic_cast<DecimalFormat *>(nf) == NULL || dynamic_cast<ChoiceFormat *>(nf) != NULL) { in TestCompilerRTTI()
596 typeid(*nf) != typeid(DecimalFormat) || typeid(*nf) == typeid(ChoiceFormat) || in TestCompilerRTTI()
Dtmsgfmt.cpp162 ChoiceFormat *cf = new ChoiceFormat(limit, formats, 3); in testBug1()
504 ChoiceFormat* fileform = new ChoiceFormat(filelimits, filepart, 3); in testMsgFormatChoice()
1740 ChoiceFormat cf(limit, formats, 3); in testCoverage()
Ddtfmapts.cpp363 ChoiceFormat fmt("0#foo|1#foos|2#foos", status); in TestNameHiding()
/external/chromium_org/third_party/icu/source/test/intltest/
Dtchcfmt.cpp46 ChoiceFormat* form = new ChoiceFormat(limits, monthNames, 7); in TestSimpleExample()
73 ChoiceFormat* formnew=new ChoiceFormat(filelimits, filepart, 3); in TestSimpleExample()
74 ChoiceFormat* formequal=new ChoiceFormat(limits, monthNames, 7); in TestSimpleExample()
121 ChoiceFormat* fileform = new ChoiceFormat( filelimits, filepart, 4); in TestComplexExample()
281 ChoiceFormat* form_A = new ChoiceFormat(limits_A, monthNames_A, 7); in TestComplexExample()
282 ChoiceFormat* form_A2 = new ChoiceFormat(limits_A, monthNames_A, 7); in TestComplexExample()
285 ChoiceFormat* form_B = new ChoiceFormat(limits_B, monthNames_B, 7); in TestComplexExample()
301 ChoiceFormat* form_A3 = (ChoiceFormat*) form_A->clone(); in TestComplexExample()
312 ChoiceFormat form_Assigned( *form_A ); in TestComplexExample()
328 ChoiceFormat form_pat( testPattern, status ); in TestComplexExample()
[all …]
Dmsfmrgts.cpp299 ChoiceFormat *f = new ChoiceFormat( in Test4052223()
337 ChoiceFormat *cf = new ChoiceFormat(limits, formats, formats_length); in Test4104976()
392 ChoiceFormat *cf = new ChoiceFormat(limits, formats, 3); in Test4106660()
584 ChoiceFormat *fmt = new ChoiceFormat( in Test4106661()
642 ChoiceFormat *fmt = new ChoiceFormat(pattern, status); in Test4094906()
798 ChoiceFormat *fileform = new ChoiceFormat(filelimits, filepart, 3); in Test4105380()
924 ChoiceFormat *cf = new ChoiceFormat(DATA[i], status); in TestChoicePatternQuote()
937 ChoiceFormat *cf2 = new ChoiceFormat(pat, status); in TestChoicePatternQuote()
Duobjtest.cpp349 …TESTCLASSID_CTOR(ChoiceFormat, (UNICODE_STRING_SIMPLE("0#are no files|1#is one file|1<are many fil… in testIDs()
571 if (dynamic_cast<DecimalFormat *>(nf) == NULL || dynamic_cast<ChoiceFormat *>(nf) != NULL) { in TestCompilerRTTI()
576 typeid(*nf) != typeid(DecimalFormat) || typeid(*nf) == typeid(ChoiceFormat) || in TestCompilerRTTI()
Dtmsgfmt.cpp156 ChoiceFormat *cf = new ChoiceFormat(limit, formats, 3); in testBug1()
495 ChoiceFormat* fileform = new ChoiceFormat(filelimits, filepart, 3); in testMsgFormatChoice()
1574 ChoiceFormat cf(limit, formats, 3); in testCoverage()
Ddtfmapts.cpp359 ChoiceFormat fmt("0#foo|1#foos|2#foos", status); in TestNameHiding()
/external/icu4c/samples/msgfmt/
DREADME.TXT66 Problem 2: ChoiceFormat (Medium)
72 This kind of value-based switching is done using a ChoiceFormat.
73 However, you seldom needs to create a ChoiceFormat by itself.
74 Instead, most of the time you will supply the ChoiceFormat pattern
77 Use a ChoiceFormat pattern within the MessageFormat pattern, instead
/external/chromium_org/third_party/icu/source/test/testdata/
DNumberFormatTestCases.txt81 # ChoiceFormat-based display names
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
DSerializationStressTest.java142 static final java.text.ChoiceFormat CHOICE = new java.text.ChoiceFormat(

12