Home
last modified time | relevance | path

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

/external/icu/icu4c/source/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.cpp1079 if (dynamic_cast<const ChoiceFormat*>(formatter) || in format()
1119 int32_t subMsgStart = ChoiceFormat::findSubMessage(msgPattern, i, number); in format()
1464 double choiceResult = ChoiceFormat::parseArgument(msgPattern, i, source, tempStatus); in parse()
Ducurr.cpp927 ChoiceFormat fmt(UnicodeString(TRUE, s, len), ec2); in getCurrencyNameCount()
1059 ChoiceFormat fmt(UnicodeString(TRUE, s, len), ec2); in collectCurrencyNames()
1624 ChoiceFormat f(UnicodeString(TRUE, currname, len), ec); in uprv_getStaticCurrencyName()
Ddecimfmt.cpp4375 ChoiceFormat* fmt = new ChoiceFormat(UnicodeString(s), ec);
/external/icu/icu4c/source/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();
476 ChoiceFormat(); // default constructor not implemented
488 ChoiceFormat(const UnicodeString& newPattern,
Ddecimfmt.h55 class ChoiceFormat; variable
2261 ChoiceFormat* fCurrencyChoice;
/external/icu/icu4c/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()
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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DMessageRegression.java38 import java.text.ChoiceFormat;
183 ChoiceFormat f = new ChoiceFormat( in Test4052223()
205 ChoiceFormat cf = new ChoiceFormat(limits, formats); in Test4104976()
221 ChoiceFormat cf = null; in Test4106659()
223 cf = new ChoiceFormat(limits, formats); in Test4106659()
240 ChoiceFormat cf = new ChoiceFormat(limits, formats); in Test4106660()
386 ChoiceFormat fmt = new ChoiceFormat( in Test4106661()
406 ChoiceFormat fmt = new ChoiceFormat( in Test4094906()
476 ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart); in Test4105380()
560 ChoiceFormat cf = new ChoiceFormat(DATA[i]); in TestChoicePatternQuote()
[all …]
DTestMessageFormat.java15 import java.text.ChoiceFormat;
127 ChoiceFormat cf = new ChoiceFormat(limit, formats); in TestBug1()
310 ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart); in TestMsgFormatChoice()
1575 ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart); in TestFormatToCharacterIterator()
1817 ChoiceFormat choice = new ChoiceFormat("0#1'2''3'''4''''."); in TestCompatibleApostrophe()
DNumberFormatTestCases.txt81 # ChoiceFormat-based display names
/external/icu/icu4c/source/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/icu/icu4c/source/test/testdata/
DNumberFormatTestCases.txt81 # ChoiceFormat-based display names
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDecimalFormatSymbols.java12 import java.text.ChoiceFormat;
980 ? new ChoiceFormat(currname).format(2.0) in initialize()
DMessageFormat.java20 import java.text.ChoiceFormat;
1677 if ( formatter instanceof ChoiceFormat || in format()
DDecimalFormat.java15 import java.text.ChoiceFormat;
4145 currencyChoice = new ChoiceFormat(s);
5546 private ChoiceFormat currencyChoice;
/external/messageformat/java/com/ibm/icu/simple/
DMessageFormat.java19 import java.text.ChoiceFormat;
/external/robolectric/lib/main/
Dandroid.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/android/ com/ ...