Home
last modified time | relevance | path

Searched refs:ChoiceFormat (Results 1 – 21 of 21) 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.cpp1088 if (dynamic_cast<const ChoiceFormat*>(formatter) || in format()
1128 int32_t subMsgStart = ChoiceFormat::findSubMessage(msgPattern, i, number); in format()
1473 double choiceResult = ChoiceFormat::parseArgument(msgPattern, i, source, tempStatus); in parse()
/external/icu/icu4c/source/i18n/unicode/
Dchoicfmt.h176 class U_I18N_API ChoiceFormat: public NumberFormat {
186 ChoiceFormat(const UnicodeString& pattern,
202 ChoiceFormat(const double* limits,
220 ChoiceFormat(const double* limits,
231 ChoiceFormat(const ChoiceFormat& that);
239 const ChoiceFormat& operator=(const ChoiceFormat& that);
245 virtual ~ChoiceFormat();
254 virtual ChoiceFormat* clone() const;
481 ChoiceFormat(); // default constructor not implemented
493 ChoiceFormat(const UnicodeString& newPattern,
/external/icu/libicu/cts_headers/unicode/
Dchoicfmt.h176 class U_I18N_API ChoiceFormat: public NumberFormat {
186 ChoiceFormat(const UnicodeString& pattern,
202 ChoiceFormat(const double* limits,
220 ChoiceFormat(const double* limits,
231 ChoiceFormat(const ChoiceFormat& that);
239 const ChoiceFormat& operator=(const ChoiceFormat& that);
245 virtual ~ChoiceFormat();
254 virtual ChoiceFormat* clone() const;
481 ChoiceFormat(); // default constructor not implemented
493 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 = form_A->clone(); in TestComplexExample()
325 ChoiceFormat form_Assigned( *form_A ); in TestComplexExample()
341 ChoiceFormat form_pat( testPattern, status ); in TestComplexExample()
[all …]
Dmsfmrgts.cpp305 ChoiceFormat *f = new ChoiceFormat( in Test4052223()
343 ChoiceFormat *cf = new ChoiceFormat(limits, formats, formats_length); in Test4104976()
398 ChoiceFormat *cf = new ChoiceFormat(limits, formats, 3); in Test4106660()
590 ChoiceFormat *fmt = new ChoiceFormat( in Test4106661()
648 ChoiceFormat *fmt = new ChoiceFormat(pattern, status); in Test4094906()
804 ChoiceFormat *fileform = new ChoiceFormat(filelimits, filepart, 3); in Test4105380()
939 ChoiceFormat *cf = new ChoiceFormat(DATA[i], status); in TestChoicePatternQuote()
952 ChoiceFormat *cf2 = new ChoiceFormat(pat, status); in TestChoicePatternQuote()
Duobjtest.cpp362 …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.cpp170 ChoiceFormat *cf = new ChoiceFormat(limit, formats, 3); in testBug1()
510 ChoiceFormat* fileform = new ChoiceFormat(filelimits, filepart, 3); in testMsgFormatChoice()
1746 ChoiceFormat cf(limit, formats, 3); in testCoverage()
Ddtfmapts.cpp365 ChoiceFormat fmt("0#foo|1#foos|2#foos", status); in TestNameHiding()
/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;
138 ChoiceFormat cf = new ChoiceFormat(limit, formats); in TestBug1()
327 ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart); in TestMsgFormatChoice()
1620 ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart); in TestFormatToCharacterIterator()
1865 ChoiceFormat choice = new ChoiceFormat("0#1'2''3'''4''''."); in TestCompatibleApostrophe()
DNumberFormatTestCases.txt86 # ChoiceFormat-based display names
/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;
135 ChoiceFormat cf = new ChoiceFormat(limit, formats); in TestBug1()
324 ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart); in TestMsgFormatChoice()
1617 ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart); in TestFormatToCharacterIterator()
1862 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/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/text/
DMessageFormat.java.patch44 * The JDK MessageFormat does create and use a ChoiceFormat object
45 * (<code>new ChoiceFormat(argStyleText)</code>).
/external/icu/icu4c/source/test/testdata/
DNumberFormatTestCases.txt83 # ChoiceFormat-based display names
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java22 import java.text.ChoiceFormat;
1711 if ( formatter instanceof ChoiceFormat || in format()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DMessageFormat.java23 import java.text.ChoiceFormat;
1639 if ( formatter instanceof ChoiceFormat || in format()
/external/cldr/tools/java/org/unicode/cldr/test/
DExampleGenerator.java5 import java.text.ChoiceFormat;
1689 ChoiceFormat cf = new ChoiceFormat(value); in handleCurrency()