Searched refs:ChoiceFormat (Results 1 - 20 of 20) sorted by relevance

/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
H A 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);
38 * @tests java.text.ChoiceFormat#ChoiceFormat(double[], java.lang.String[])
41 // Test for method java.text.ChoiceFormat(double [], java.lang.String
47 ChoiceFormat cf = new ChoiceFormat(appleLimit
[all...]
H A DNumberFormatTest.java20 import java.text.ChoiceFormat;
208 ChoiceFormat cformat = new ChoiceFormat(
238 ChoiceFormat cformat = new ChoiceFormat(
273 // Create a subclass ChoiceFormat which doesn't support
275 ChoiceFormat choiceFormat = new ChoiceFormat(
290 // Create a subclass ChoiceFormat which doesn't support
292 ChoiceFormat choiceForma
[all...]
H A DMessageFormatTest.java25 import java.text.ChoiceFormat;
106 assertTrue("Wrong choice format", formats[3].equals(new ChoiceFormat(
284 "0.0#no|1.0#one|2.0#{1,number}", ((ChoiceFormat) format.getFormats()[0]).toPattern());
410 new ChoiceFormat("0#off|1#on"), DateFormat.getDateInstance(), };
424 new ChoiceFormat("0#off|1#on"), DateFormat.getDateInstance() };
448 new ChoiceFormat("0#off|1#on"), DateFormat.getTimeInstance(),
461 new ChoiceFormat("0#off|1#on"), null,
486 f1.setFormatByArgumentIndex(4, new ChoiceFormat("1#few|2#ok|3#a lot"));
494 new ChoiceFormat("0#off|1#on"), DateFormat.getTimeInstance(),
496 new ChoiceFormat("
[all...]
/external/icu4c/i18n/
H A Dchoicfmt.cpp40 // class ChoiceFormat
45 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(ChoiceFormat)
47 // Special characters used by ChoiceFormat. There are two characters
68 // Creates a ChoiceFormat instance based on the pattern.
70 ChoiceFormat::ChoiceFormat(const UnicodeString& newPattern, function in class:ChoiceFormat
81 // Creates a ChoiceFormat instance with the limit array and
84 ChoiceFormat::ChoiceFormat(const double* limits, function in class:ChoiceFormat
97 ChoiceFormat function in class:ChoiceFormat
112 ChoiceFormat::ChoiceFormat(const ChoiceFormat& that) function in class:ChoiceFormat
126 ChoiceFormat::ChoiceFormat(const UnicodeString& newPattern, function in class:ChoiceFormat
[all...]
H A Dmsgfmt.cpp726 ChoiceFormat* chcfmt;
840 else if ((chcfmt = dynamic_cast<ChoiceFormat*>(fmt)) != NULL) {
845 appendTo += ((ChoiceFormat*)fmt)->toPattern(buffer);
1241 // a ChoiceFormat object, a PluralFormat object, a SelectFormat object.
1247 // Needs to reprocess the ChoiceFormat and PluralFormat and SelectFormat option by using the
1249 if ((dynamic_cast<ChoiceFormat*>(fmt) != NULL ||
1599 fmt = new ChoiceFormat(segments[3], parseError, ec);
H A Ducurr.cpp87 // Marker character indicating that a display name is a ChoiceFormat
88 // pattern. Strings that start with one mark are ChoiceFormat
544 // Determine if this is a ChoiceFormat pattern. One leading mark
545 // indicates a ChoiceFormat. Two indicates a static string that
727 ChoiceFormat fmt(s, ec2);
850 ChoiceFormat fmt(s, ec2);
1388 // If this is a ChoiceFormat currency, then format an
1392 ChoiceFormat f(currname, ec);
H A Ddecimfmt.cpp661 fCurrencyChoice = (ChoiceFormat*) rhs.fCurrencyChoice->clone();
3009 * which a currency format references a ChoiceFormat (e.g., en_IN display
3013 * currencyChoice to a ChoiceFormat object, if the currency's display name
3014 * in this locale is a ChoiceFormat pattern (very rare). It only does this
3021 * currency symbol is encountered that expands to a ChoiceFormat, the
3103 // If the currency is handled by a ChoiceFormat,
3105 // patterns. Instantiate the ChoiceFormat and
3109 ChoiceFormat* fmt = new ChoiceFormat(s, ec);
/external/icu4c/i18n/unicode/
H A Dchoicfmt.h44 * ChoiceFormat converts between ranges of numeric values
45 * and string names for those ranges. A <code>ChoiceFormat</code> splits
48 * string. <code>ChoiceFormat</code> is generally used in a
52 * <p>There are two methods of defining a <code>ChoiceFormat</code>; both
56 * <code>ChoiceFormat</code>.</p>
61 * <code>ChoiceFormat</code> is with a pattern. Here is an example of a
62 * <code>ChoiceFormat</code> pattern:</p>
95 * inclusive. (The two characters are equivalent to ChoiceFormat.)
111 * <p>A <code>ChoiceFormat</code> defining <code>n</code> intervals
134 * string. <code>ChoiceFormat</cod
259 class U_I18N_API ChoiceFormat: public NumberFormat { class in inherits:NumberFormat
[all...]
H A Ddecimfmt.h46 class ChoiceFormat;
2105 * Formatter for ChoiceFormat-based currency names. If this field
2109 ChoiceFormat* fCurrencyChoice;
/external/icu4c/test/intltest/
H A Dtchcfmt.cpp46 ChoiceFormat* form = new ChoiceFormat(limits, monthNames, 7);
73 ChoiceFormat* formnew=new ChoiceFormat(filelimits, filepart, 3);
74 ChoiceFormat* formequal=new ChoiceFormat(limits, monthNames, 7);
121 ChoiceFormat* fileform = new ChoiceFormat( filelimits, filepart, 4);
167 it_logln("ChoiceFormat toPattern: " + res1);
171 it_errln("*** ChoiceFormat t
[all...]
H A Dmsfmrgts.cpp299 ChoiceFormat *f = new ChoiceFormat(
301 failure(status, "new ChoiceFormat");
323 * ChoiceFormat.equals(null) throws NullPointerException
337 ChoiceFormat *cf = new ChoiceFormat(limits, formats, formats_length);
338 failure(status, "new ChoiceFormat");
343 errln("ChoiceFormat.equals(null) throws exception.");
350 * ChoiceFormat.ctor(double[], String[]) doesn't check
365 ChoiceFormat *c
[all...]
H A Duobjtest.cpp349 TESTCLASSID_CTOR(ChoiceFormat, (UNICODE_STRING_SIMPLE("0#are no files|1#is one file|1<are many files"), status));
571 if (dynamic_cast<DecimalFormat *>(nf) == NULL || dynamic_cast<ChoiceFormat *>(nf) != NULL) {
576 typeid(*nf) != typeid(DecimalFormat) || typeid(*nf) == typeid(ChoiceFormat) ||
H A Dtmsgfmt.cpp156 ChoiceFormat *cf = new ChoiceFormat(limit, formats, 3);
161 errln("ChoiceFormat cmp in testBug1");
495 ChoiceFormat* fileform = new ChoiceFormat(filelimits, filepart, 3);
1574 ChoiceFormat cf(limit, formats, 3);
H A Ddtfmapts.cpp355 // ChoiceFormat calling Format & NumberFormat API
357 logln("ChoiceFormat");
359 ChoiceFormat fmt("0#foo|1#foos|2#foos", status);
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
H A DSerializationStressTest.java142 static final java.text.ChoiceFormat CHOICE = new java.text.ChoiceFormat(
/external/webkit/Source/JavaScriptCore/icu/unicode/
H A Durename.h1210 #define ChoiceFormat ChoiceFormat_3_2 macro
/external/webkit/Source/JavaScriptGlue/icu/unicode/
H A Durename.h1210 #define ChoiceFormat ChoiceFormat_3_2 macro
/external/webkit/Source/WebCore/icu/unicode/
H A Durename.h1210 #define ChoiceFormat ChoiceFormat_3_2 macro
/external/webkit/Source/WebKit/mac/icu/unicode/
H A Durename.h1210 #define ChoiceFormat ChoiceFormat_3_2 macro
/external/icu4c/common/unicode/
H A Durename.h1860 #define ChoiceFormat U_ICU_ENTRY_POINT_RENAME(ChoiceFormat) macro

Completed in 332 milliseconds