HomeSort by relevance Sort by last modified time
    Searched refs:ChoiceFormat (Results 1 - 25 of 33) sorted by null

1 2

  /external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
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);
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(appleLimits, appleFormats)
    [all...]
NumberFormatTest.java 20 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(
277 ((NumberFormat) choiceFormat).setRoundingMode(null)
    [all...]
MessageFormatTest.java 25 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("1#few|2#ok|3#a lot") }
    [all...]
  /external/icu4c/i18n/
choicfmt.cpp 42 // class ChoiceFormat
47 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(ChoiceFormat)
49 // Special characters used by ChoiceFormat. There are two characters
73 // Creates a ChoiceFormat instance based on the pattern.
75 ChoiceFormat::ChoiceFormat(const UnicodeString& newPattern,
84 // Creates a ChoiceFormat instance with the limit array and
87 ChoiceFormat::ChoiceFormat(const double* limits,
98 ChoiceFormat::ChoiceFormat(const double* limits,
    [all...]
msgfmt.cpp 1015 if (dynamic_cast<const ChoiceFormat*>(formatter) ||
    [all...]
ucurr.cpp 93 // Marker character indicating that a display name is a ChoiceFormat
94 // pattern. Strings that start with one mark are ChoiceFormat
589 // Determine if this is a ChoiceFormat pattern. One leading mark
590 // indicates a ChoiceFormat. Two indicates a static string that
772 ChoiceFormat fmt(s, ec2);
895 ChoiceFormat fmt(s, ec2);
    [all...]
decimfmt.cpp 662 fCurrencyChoice = (ChoiceFormat*) rhs.fCurrencyChoice->clone();
    [all...]
  /external/icu4c/i18n/unicode/
choicfmt.h 45 * ChoiceFormat converts between ranges of numeric values and strings for those ranges.
48 * <p><em><code>ChoiceFormat</code> is probably not what you need.
53 * <p>A <code>ChoiceFormat</code> splits
59 * <p><code>ChoiceFormat</code> was originally intended
63 * are too complex for the capabilities of ChoiceFormat,
67 * <p>There are two methods of defining a <code>ChoiceFormat</code>; both
71 * <code>ChoiceFormat</code>.</p>
75 * rather than using a stand-alone <code>ChoiceFormat</code>.</p>
99 * <p>When a <code>ChoiceFormat</code> is constructed from
149 * ChoiceFormat fmt(limits, monthNames, 7)
    [all...]
decimfmt.h 46 class ChoiceFormat;
    [all...]
  /external/icu4c/test/intltest/
tchcfmt.cpp 46 ChoiceFormat* form = new ChoiceFormat(limits, monthNames, 7);
73 ChoiceFormat* formnew=new ChoiceFormat(filelimits, filepart, 3);
74 ChoiceFormat* formequal=new ChoiceFormat(limits, monthNames, 7);
87 #if 1 // ICU 4.8 deprecates and disables the ChoiceFormat getters.
131 ChoiceFormat* fileform = new ChoiceFormat( filelimits, filepart, 4);
177 it_logln("ChoiceFormat toPattern: " + res1)
    [all...]
msfmrgts.cpp 301 ChoiceFormat *f = new ChoiceFormat(
303 failure(status, "new ChoiceFormat");
325 * ChoiceFormat.equals(null) throws NullPointerException
339 ChoiceFormat *cf = new ChoiceFormat(limits, formats, formats_length);
340 failure(status, "new ChoiceFormat");
345 errln("ChoiceFormat.equals(null) throws exception.");
352 * ChoiceFormat.ctor(double[], String[]) doesn't check
367 ChoiceFormat *cf = NULL
    [all...]
uobjtest.cpp 357 TESTCLASSID_CTOR(ChoiceFormat, (UNICODE_STRING_SIMPLE("0#are no files|1#is one file|1<are many files"), status));
584 if (dynamic_cast<DecimalFormat *>(nf) == NULL || dynamic_cast<ChoiceFormat *>(nf) != NULL) {
589 typeid(*nf) != typeid(DecimalFormat) || typeid(*nf) == typeid(ChoiceFormat) ||
dtfmapts.cpp 355 // ChoiceFormat calling Format & NumberFormat API
357 logln("ChoiceFormat");
359 ChoiceFormat fmt("0#foo|1#foos|2#foos", status);
tmsgfmt.cpp 159 ChoiceFormat *cf = new ChoiceFormat(limit, formats, 3);
164 errln("ChoiceFormat cmp in testBug1");
506 ChoiceFormat* fileform = new ChoiceFormat(filelimits, filepart, 3);
    [all...]
  /libcore/luni/src/main/java/java/text/
ChoiceFormat.java 29 * messages. {@code ChoiceFormat} enables users to attach a format to a range of
45 * double[] limits2 = {0, 1, ChoiceFormat.nextDouble(1)};
50 * ChoiceFormat.nextDouble(double) allows to get the double following the one
53 * {@code ChoiceFormat} objects also may be converted to and from patterns.
71 public class ChoiceFormat extends NumberFormat {
80 * Constructs a new {@code ChoiceFormat} with the specified double values
97 public ChoiceFormat(double[] limits, String[] formats) {
102 * Constructs a new {@code ChoiceFormat} with the strings and limits parsed
110 public ChoiceFormat(String template) {
116 * {@code ChoiceFormat}
    [all...]
MessageFormat.java 218 * <td>{@code new ChoiceFormat(subformatPattern)}</td>
261 * For more sophisticated patterns, you can use a {@code ChoiceFormat} to
269 * ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart);
282 * example, or by using a pattern (see {@link ChoiceFormat} for more
292 * {@code ChoiceFormat} in {@code MessageFormat} is treated
295 * {@code ChoiceFormat} programmatically (instead of using the string
581 if (format instanceof ChoiceFormat) {
    [all...]
  /libcore/luni/src/test/java/libcore/java/text/
OldMessageFormatTest.java 20 import java.text.ChoiceFormat;
126 f1.setFormat(3, new ChoiceFormat("0#off|1#on"));
127 f1.setFormat(4, new ChoiceFormat("1#few|2#ok|3#a lot"));
135 NumberFormat.getInstance(), new ChoiceFormat("0#off|1#on"),
136 new ChoiceFormat("1#few|2#ok|3#a lot"),
307 new ChoiceFormat("0#off|1#on"),
310 new ChoiceFormat("1#few|2#ok|3#a lot") };
OldNumberFormatTest.java 20 import java.text.ChoiceFormat;
83 ChoiceFormat cformat = new ChoiceFormat(
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
SerializationStressTest.java 142 static final java.text.ChoiceFormat CHOICE = new java.text.ChoiceFormat(
  /external/webkit/Source/JavaScriptCore/icu/unicode/
urename.h     [all...]
  /external/webkit/Source/JavaScriptGlue/icu/unicode/
urename.h     [all...]
  /external/webkit/Source/WebCore/icu/unicode/
urename.h     [all...]
  /external/webkit/Source/WebKit/mac/icu/unicode/
urename.h     [all...]
  /external/icu4c/common/unicode/
urename.h     [all...]
  /prebuilts/sdk/10/
android.jar 

Completed in 243 milliseconds

1 2