Home
last modified time | relevance | path

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

/external/icu/icu4c/source/i18n/
Dchoicfmt.cpp49 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(ChoiceFormat)
77 ChoiceFormat::ChoiceFormat(const UnicodeString& newPattern, in ChoiceFormat() function in ChoiceFormat
89 ChoiceFormat::ChoiceFormat(const double* limits, in ChoiceFormat() function in ChoiceFormat
100 ChoiceFormat::ChoiceFormat(const double* limits, in ChoiceFormat() function in ChoiceFormat
113 ChoiceFormat::ChoiceFormat(const ChoiceFormat& that) in ChoiceFormat() function in ChoiceFormat
125 ChoiceFormat::ChoiceFormat(const UnicodeString& newPattern, in ChoiceFormat() function in ChoiceFormat
136 ChoiceFormat::operator==(const Format& that) const in operator ==()
140 ChoiceFormat& thatAlias = (ChoiceFormat&)that; in operator ==()
147 const ChoiceFormat&
148 ChoiceFormat::operator=(const ChoiceFormat& that) in operator =()
[all …]
Dmsgfmt.cpp1083 if (dynamic_cast<const ChoiceFormat*>(formatter) || in format()
1123 int32_t subMsgStart = ChoiceFormat::findSubMessage(msgPattern, i, number); in format()
1468 double choiceResult = ChoiceFormat::parseArgument(msgPattern, i, source, tempStatus); in parse()
/external/icu/icu4c/source/i18n/unicode/
Dchoicfmt.h173 class U_I18N_API ChoiceFormat: public NumberFormat {
183 ChoiceFormat(const UnicodeString& pattern,
199 ChoiceFormat(const double* limits,
217 ChoiceFormat(const double* limits,
228 ChoiceFormat(const ChoiceFormat& that);
236 const ChoiceFormat& operator=(const ChoiceFormat& that);
242 virtual ~ChoiceFormat();
478 ChoiceFormat(); // default constructor not implemented
490 ChoiceFormat(const UnicodeString& newPattern,
/external/icu/icu4c/source/test/intltest/
Dtchcfmt.cpp47 ChoiceFormat* form = new ChoiceFormat(limits, monthNames, 7); in TestSimpleExample()
74 ChoiceFormat* formnew=new ChoiceFormat(filelimits, filepart, 3); in TestSimpleExample()
75 ChoiceFormat* formequal=new ChoiceFormat(limits, monthNames, 7); in TestSimpleExample()
132 ChoiceFormat* fileform = new ChoiceFormat( filelimits, filepart, 4); in TestComplexExample()
294 ChoiceFormat* form_A = new ChoiceFormat(limits_A, monthNames_A, 7); in TestComplexExample()
295 ChoiceFormat* form_A2 = new ChoiceFormat(limits_A, monthNames_A, 7); in TestComplexExample()
298 ChoiceFormat* form_B = new ChoiceFormat(limits_B, monthNames_B, 7); in TestComplexExample()
314 ChoiceFormat* form_A3 = (ChoiceFormat*) form_A->clone(); in TestComplexExample()
325 ChoiceFormat form_Assigned( *form_A ); in TestComplexExample()
341 ChoiceFormat form_pat( testPattern, status ); in TestComplexExample()
[all …]
Dmsfmrgts.cpp304 ChoiceFormat *f = new ChoiceFormat( in Test4052223()
342 ChoiceFormat *cf = new ChoiceFormat(limits, formats, formats_length); in Test4104976()
397 ChoiceFormat *cf = new ChoiceFormat(limits, formats, 3); in Test4106660()
589 ChoiceFormat *fmt = new ChoiceFormat( in Test4106661()
647 ChoiceFormat *fmt = new ChoiceFormat(pattern, status); in Test4094906()
803 ChoiceFormat *fileform = new ChoiceFormat(filelimits, filepart, 3); in Test4105380()
938 ChoiceFormat *cf = new ChoiceFormat(DATA[i], status); in TestChoicePatternQuote()
951 ChoiceFormat *cf2 = new ChoiceFormat(pat, status); in TestChoicePatternQuote()
Duobjtest.cpp363 …TESTCLASSID_CTOR(ChoiceFormat, (UNICODE_STRING_SIMPLE("0#are no files|1#is one file|1<are many fil… in testIDs()
597 if (dynamic_cast<DecimalFormat *>(nf) == NULL || dynamic_cast<ChoiceFormat *>(nf) != NULL) { in TestCompilerRTTI()
602 typeid(*nf) != typeid(DecimalFormat) || typeid(*nf) == typeid(ChoiceFormat) || in TestCompilerRTTI()
Dtmsgfmt.cpp167 ChoiceFormat *cf = new ChoiceFormat(limit, formats, 3); in testBug1()
509 ChoiceFormat* fileform = new ChoiceFormat(filelimits, filepart, 3); in testMsgFormatChoice()
1745 ChoiceFormat cf(limit, formats, 3); in testCoverage()
Ddtfmapts.cpp365 ChoiceFormat fmt("0#foo|1#foos|2#foos", status); in TestNameHiding()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DMessageRegressionTest.java40 import java.text.ChoiceFormat;
189 ChoiceFormat f = new ChoiceFormat( in Test4052223()
212 ChoiceFormat cf = new ChoiceFormat(limits, formats); in Test4104976()
229 ChoiceFormat cf = null; in Test4106659()
231 cf = new ChoiceFormat(limits, formats); in Test4106659()
249 ChoiceFormat cf = new ChoiceFormat(limits, formats); in Test4106660()
401 ChoiceFormat fmt = new ChoiceFormat( in Test4106661()
422 ChoiceFormat fmt = new ChoiceFormat( in Test4094906()
495 ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart); in Test4105380()
582 ChoiceFormat cf = new ChoiceFormat(DATA[i]); in TestChoicePatternQuote()
[all …]
DTestMessageFormat.java17 import java.text.ChoiceFormat;
133 ChoiceFormat cf = new ChoiceFormat(limit, formats); in TestBug1()
322 ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart); in TestMsgFormatChoice()
1615 ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart); in TestFormatToCharacterIterator()
1860 ChoiceFormat choice = new ChoiceFormat("0#1'2''3'''4''''."); in TestCompatibleApostrophe()
DNumberFormatTestCases.txt86 # ChoiceFormat-based display names
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DMessageRegressionTest.java41 import java.text.ChoiceFormat;
192 ChoiceFormat f = new ChoiceFormat( in Test4052223()
215 ChoiceFormat cf = new ChoiceFormat(limits, formats); in Test4104976()
232 ChoiceFormat cf = null; in Test4106659()
234 cf = new ChoiceFormat(limits, formats); in Test4106659()
252 ChoiceFormat cf = new ChoiceFormat(limits, formats); in Test4106660()
404 ChoiceFormat fmt = new ChoiceFormat( in Test4106661()
425 ChoiceFormat fmt = new ChoiceFormat( in Test4094906()
498 ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart); in Test4105380()
585 ChoiceFormat cf = new ChoiceFormat(DATA[i]); in TestChoicePatternQuote()
[all …]
DTestMessageFormat.java18 import java.text.ChoiceFormat;
136 ChoiceFormat cf = new ChoiceFormat(limit, formats); in TestBug1()
325 ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart); in TestMsgFormatChoice()
1618 ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart); in TestFormatToCharacterIterator()
1863 ChoiceFormat choice = new ChoiceFormat("0#1'2''3'''4''''."); in TestCompatibleApostrophe()
DNumberFormatTestCases.txt86 # ChoiceFormat-based display names
/external/icu/icu4c/source/samples/msgfmt/
DREADME.TXT69 Problem 2: ChoiceFormat (Medium)
75 This kind of value-based switching is done using a ChoiceFormat.
76 However, you seldom needs to create a ChoiceFormat by itself.
77 Instead, most of the time you will supply the ChoiceFormat pattern
80 Use a ChoiceFormat pattern within the MessageFormat pattern, instead
/external/icu/icu4c/source/test/testdata/
DNumberFormatTestCases.txt83 # ChoiceFormat-based display names
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DMessageFormat.java20 import java.text.ChoiceFormat;
/external/cldr/tools/java/org/unicode/cldr/test/
DExampleGenerator.java5 import java.text.ChoiceFormat;
1494 ChoiceFormat cf = new ChoiceFormat(value); in handleCurrency()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DMessageFormat.java23 import java.text.ChoiceFormat;
1639 if ( formatter instanceof ChoiceFormat || in format()
DDecimalFormat_ICU58_Android.java18 import java.text.ChoiceFormat;
5624 private ChoiceFormat currencyChoice;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java22 import java.text.ChoiceFormat;
1686 if ( formatter instanceof ChoiceFormat || in format()
DDecimalFormat_ICU58_Android.java17 import java.text.ChoiceFormat;
5712 private ChoiceFormat currencyChoice;