HomeSort by relevance Sort by last modified time
    Searched full:choiceformat (Results 1 - 25 of 55) sorted by null

1 2 3

  /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/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...]
tmsgfmt.h 19 * TestMessageFormat tests MessageFormat, and also a few unctions in ChoiceFormat
26 * regression test for a specific bug regarding ChoiceFormat boundaries
30 * regression test for a specific bug regarding MessageFormat using ChoiceFormat
55 * tests MesageFormat functionality with a format including a ChoiceFormat
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...]
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...]
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) ||
  /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...]
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...]
  /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...]
Format.java 46 * and {@code ChoiceFormat}. {@code ChoiceFormat} is a subclass of
54 * See the {@link ChoiceFormat} and {@link MessageFormat} descriptions for
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...]
  /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...]
format.h 70 * MessageFormat and ChoiceFormat. ChoiceFormat is a subclass of
78 * "MyDisk", and the date value of 2/27/97. See the ChoiceFormat
ucurr.h 124 * is a ChoiceFormat pattern; otherwise it is a static string
130 * ChoiceFormat pattern. Otherwise it is a static string.
148 * is a ChoiceFormat pattern; otherwise it is a static string
  /external/icu4c/samples/msgfmt/
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
  /libcore/dalvik/src/main/java/dalvik/annotation/
TestTarget.java 48 * operators,...), formatters (DecimalFormat, DateFormat, ChoiceFormat,
  /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...]
  /sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/
ApiLookupTest.java 35 assertTrue(mDb.getClassVersion("ava/text/ChoiceFormat") <= 1);
  /external/icu4c/test/testdata/
NumberFormatTestCases.txt 81 # ChoiceFormat-based display names
  /external/icu4c/common/unicode/
messagepattern.h 230 * The argument is a ChoiceFormat with one or more
292 * Also handles patterns for ChoiceFormat, PluralFormat and SelectFormat.
431 * Parses a ChoiceFormat pattern string.
432 * @param pattern a ChoiceFormat pattern string
856 * @param allowInfinity TRUE if U+221E is allowed (for ChoiceFormat)
892 * of a top-level ChoiceFormat pattern.
    [all...]
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/configuration/org.eclipse.osgi/bundles/93/1/.cp/
convert.jar 

Completed in 1324 milliseconds

1 2 3