/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
D | ChoiceFormatTest.java | 20 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 …]
|
D | NumberFormatTest.java | 20 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()
|
D | MessageFormatTest.java | 25 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/ |
D | choicfmt.cpp | 47 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 …]
|
D | msgfmt.cpp | 1015 if (dynamic_cast<const ChoiceFormat*>(formatter) || in format() 1055 int32_t subMsgStart = ChoiceFormat::findSubMessage(msgPattern, i, number); in format() 1338 double choiceResult = ChoiceFormat::parseArgument(msgPattern, i, source, tempStatus); in parse()
|
D | ucurr.cpp | 772 ChoiceFormat fmt(s, ec2); in getCurrencyNameCount() 895 ChoiceFormat fmt(s, ec2); in collectCurrencyNames() 1437 ChoiceFormat f(currname, ec); in uprv_getStaticCurrencyName()
|
D | decimfmt.cpp | 662 fCurrencyChoice = (ChoiceFormat*) rhs.fCurrencyChoice->clone(); in operator =() 3344 ChoiceFormat* fmt = new ChoiceFormat(UnicodeString(s), ec); in expandAffix()
|
/external/icu4c/i18n/unicode/ |
D | choicfmt.h | 168 class U_I18N_API ChoiceFormat: public NumberFormat { 178 ChoiceFormat(const UnicodeString& pattern, 194 ChoiceFormat(const double* limits, 212 ChoiceFormat(const double* limits, 223 ChoiceFormat(const ChoiceFormat& that); 231 const ChoiceFormat& operator=(const ChoiceFormat& that); 237 virtual ~ChoiceFormat(); 548 ChoiceFormat(); // default constructor not implemented 561 ChoiceFormat(const UnicodeString& newPattern, 661 ChoiceFormat::format(const Formattable& obj, in format() [all …]
|
D | decimfmt.h | 46 class ChoiceFormat; variable 2129 ChoiceFormat* fCurrencyChoice;
|
/external/icu4c/test/intltest/ |
D | tchcfmt.cpp | 46 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 …]
|
D | msfmrgts.cpp | 301 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()
|
D | uobjtest.cpp | 357 …TESTCLASSID_CTOR(ChoiceFormat, (UNICODE_STRING_SIMPLE("0#are no files|1#is one file|1<are many fil… in testIDs() 584 if (dynamic_cast<DecimalFormat *>(nf) == NULL || dynamic_cast<ChoiceFormat *>(nf) != NULL) { in TestCompilerRTTI() 589 typeid(*nf) != typeid(DecimalFormat) || typeid(*nf) == typeid(ChoiceFormat) || in TestCompilerRTTI()
|
D | tmsgfmt.cpp | 159 ChoiceFormat *cf = new ChoiceFormat(limit, formats, 3); in testBug1() 506 ChoiceFormat* fileform = new ChoiceFormat(filelimits, filepart, 3); in testMsgFormatChoice() 1742 ChoiceFormat cf(limit, formats, 3); in testCoverage()
|
D | dtfmapts.cpp | 359 ChoiceFormat fmt("0#foo|1#foos|2#foos", status); in TestNameHiding()
|
/external/icu4c/samples/msgfmt/ |
D | README.TXT | 66 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/icu4c/test/testdata/ |
D | NumberFormatTestCases.txt | 81 # ChoiceFormat-based display names
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
D | SerializationStressTest.java | 142 static final java.text.ChoiceFormat CHOICE = new java.text.ChoiceFormat(
|
/external/webkit/Source/JavaScriptCore/icu/unicode/ |
D | urename.h | 1210 #define ChoiceFormat ChoiceFormat_3_2 macro
|
/external/webkit/Source/JavaScriptGlue/icu/unicode/ |
D | urename.h | 1210 #define ChoiceFormat ChoiceFormat_3_2 macro
|
/external/webkit/Source/WebKit/mac/icu/unicode/ |
D | urename.h | 1210 #define ChoiceFormat ChoiceFormat_3_2 macro
|
/external/webkit/Source/WebCore/icu/unicode/ |
D | urename.h | 1210 #define ChoiceFormat ChoiceFormat_3_2 macro
|
/external/icu4c/common/unicode/ |
D | urename.h | 1879 #define ChoiceFormat U_ICU_ENTRY_POINT_RENAME(ChoiceFormat) macro
|