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

1 2 3 4 5

  /external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
MessageFormatTest.java 19 import com.ibm.icu.text.MessageFormat;
35 * Test method for 'com.ibm.icu.text.MessageFormat.hashCode()'
38 MessageFormat mf = new MessageFormat(pattern);
39 MessageFormat eq = new MessageFormat(altPattern);
40 MessageFormat ne = new MessageFormat("Deleted (0, number, currency} files at {1, time} on {1, date}.");
45 * Test method for 'com.ibm.icu.text.MessageFormat.MessageFormat(MessageFormat)
    [all...]
  /external/proguard/src/proguard/gui/
GUIResources.java 23 import java.text.MessageFormat;
35 private static final MessageFormat formatter = new MessageFormat("");
  /external/apache-commons-math/src/main/java/org/apache/commons/math/exception/util/
MessageFactory.java 19 import java.text.MessageFormat;
65 final MessageFormat fmt = new MessageFormat(general.getLocalizedString(locale), locale);
72 final MessageFormat fmt = new MessageFormat(specific.getLocalizedString(locale), locale);
  /external/icu/android_icu4j/src/samples/java/android/icu/samples/text/pluralformat/
PluralFormatSample.java 14 import android.icu.text.MessageFormat;
30 System.out.println(" Use PluralFormat and Messageformat to get appropriate Plural Form for languages below:");
43 // Constructs a MessageFormat for the specified locale and pattern.
44 MessageFormat msgfmtEn = new MessageFormat("{0,number} {1}", locEn);
45 MessageFormat msgfmtSl = new MessageFormat("{0,number} {1}", locSl);
48 System.out.println("Output by using PluralFormat and MessageFormat API\n");
51 // Use MessageFormat.format () to format the objects and appends to the given StringBuffer
68 MessageFormat altMsgfmtEn = new MessageFormat(msgPatEn, locEn)
    [all...]
  /external/icu/icu4j/samples/src/com/ibm/icu/samples/text/pluralformat/
PluralFormatSample.java 13 import com.ibm.icu.text.MessageFormat;
29 System.out.println(" Use PluralFormat and Messageformat to get appropriate Plural Form for languages below:");
42 // Constructs a MessageFormat for the specified locale and pattern.
43 MessageFormat msgfmtEn = new MessageFormat("{0,number} {1}", locEn);
44 MessageFormat msgfmtSl = new MessageFormat("{0,number} {1}", locSl);
47 System.out.println("Output by using PluralFormat and MessageFormat API\n");
50 // Use MessageFormat.format () to format the objects and appends to the given StringBuffer
67 MessageFormat altMsgfmtEn = new MessageFormat(msgPatEn, locEn)
    [all...]
  /external/icu/icu4c/source/samples/plurfmtsample/
plurfmtsample.cpp 26 u_printf(" Use PluralFormat and Messageformat to get Plural Form for languages below:\n");
41 // Constructs a MessageFormat for given pattern and locale.
42 MessageFormat* msgfmtEn = new MessageFormat("{0,number} {1}", locEn,status);
43 MessageFormat* msgfmtSl = new MessageFormat("{0,number} {1}", locSl,status);
46 u_printf("Output by using PluralFormat and MessageFormat API\n");
49 // Use MessageFormat.format () to format the objects and append to the given StringBuffer
66 MessageFormat* altMsgfmtEn = new MessageFormat(msgPatEn, locEn,status)
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
TestMessageFormat.java 39 import android.icu.text.MessageFormat;
147 MessageFormat fmt = new MessageFormat(pattern);
150 errln("MessageFormat pattern creation failed.");
203 MessageFormat form = null;
205 form = new MessageFormat(testCases[i], Locale.US);
207 errln("MessageFormat for " + testCases[i] + " creation failed.");
236 // errln("MessageFormat failed test #5");
237 // logln(String("MessageFormat failed test #5 with error code ")+(int)success);
250 // errln("MessageFormat failed test #6")
    [all...]
MessageRegressionTest.java 21 * @summary Regression tests for MessageFormat and associated classes
54 import android.icu.text.MessageFormat;
63 * Null exception when formatting pattern with MessageFormat
76 MessageFormat messageFormatter = new MessageFormat("");
84 errln("MessageFormat with one param test failed.");
91 errln("MessageFormat with no param test failed.");
100 //we get an NullPointerException in MessageFormat.java(617)
102 //we get an StringArrayIndexOutOfBoundsException in MessageFormat.java(614)
112 * MessageFormat.toPattern has weird rounding behavior
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
TestMessageFormat.java 38 import com.ibm.icu.text.MessageFormat;
144 MessageFormat fmt = new MessageFormat(pattern);
147 errln("MessageFormat pattern creation failed.");
200 MessageFormat form = null;
202 form = new MessageFormat(testCases[i], Locale.US);
204 errln("MessageFormat for " + testCases[i] + " creation failed.");
233 // errln("MessageFormat failed test #5");
234 // logln(String("MessageFormat failed test #5 with error code ")+(int)success);
247 // errln("MessageFormat failed test #6")
    [all...]
MessageRegressionTest.java 20 * @summary Regression tests for MessageFormat and associated classes
53 import com.ibm.icu.text.MessageFormat;
60 * Null exception when formatting pattern with MessageFormat
73 MessageFormat messageFormatter = new MessageFormat("");
81 errln("MessageFormat with one param test failed.");
88 errln("MessageFormat with no param test failed.");
97 //we get an NullPointerException in MessageFormat.java(617)
99 //we get an StringArrayIndexOutOfBoundsException in MessageFormat.java(614)
109 * MessageFormat.toPattern has weird rounding behavior
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
ElapsedTimer.java 15 import android.icu.text.MessageFormat;
27 * Advanced: { ElapsedTimer et = new ElapsedTimer("Thing2's time: {0}"); // messageformat pattern
31 * More advanced: NumberFormat and/or MessageFormat can be provided in the constructor
53 private MessageFormat myMsgFormat = null;
58 public ElapsedTimer(MessageFormat aMsgFmt) {
66 public ElapsedTimer(MessageFormat aMsgFmt, NumberFormat aNumFmt) {
72 myMsgFormat = new MessageFormat(pattern);
76 myMsgFormat = new MessageFormat(pattern);
  /external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
ElapsedTimer.java 14 import com.ibm.icu.text.MessageFormat;
25 * Advanced: { ElapsedTimer et = new ElapsedTimer("Thing2's time: {0}"); // messageformat pattern
29 * More advanced: NumberFormat and/or MessageFormat can be provided in the constructor
50 private MessageFormat myMsgFormat = null;
55 public ElapsedTimer(MessageFormat aMsgFmt) {
63 public ElapsedTimer(MessageFormat aMsgFmt, NumberFormat aNumFmt) {
69 myMsgFormat = new MessageFormat(pattern);
73 myMsgFormat = new MessageFormat(pattern);
  /external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
MessageFormat.java 33 * {@icuenhanced java.text.MessageFormat}.{@icu _usage_}
35 * <p>MessageFormat produces concatenated messages in a language-neutral
39 * <p>A MessageFormat contains an array of <em>subformats</em> arranged
41 * template string determine how the MessageFormat will operate during
48 * <p>When formatting, MessageFormat takes a collection of arguments
53 * the MessageFormat to produce the final output string.
56 * <code>MessageFormat</code> differs from the other <code>Format</code>
57 * classes in that you create a <code>MessageFormat</code> object with one
59 * method). The factory methods aren't necessary because <code>MessageFormat</code>
65 * In ICU 3.8 MessageFormat supports named arguments. If a named argumen
    [all...]
  /external/icu/icu4c/source/i18n/
msgfmt.cpp 55 // class MessageFormat
85 // MessageFormat Type List Number, Date, Time or Choice
162 return icu::MessageFormat::equalFormats(key1.pointer, key2.pointer);
170 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MessageFormat)
231 // Creates a MessageFormat instance based on the pattern.
233 MessageFormat::MessageFormat(const UnicodeString& pattern,
254 MessageFormat::MessageFormat(const UnicodeString& pattern,
276 MessageFormat::MessageFormat(const UnicodeString& pattern
    [all...]
tmutfmt.cpp 205 // the value is a pair of MessageFormat*
206 MessageFormat** patterns = (MessageFormat**)valueTok.pointer;
209 MessageFormat* pattern = patterns[style];
426 LocalPointer<MessageFormat> messageFormat(new MessageFormat(
431 MessageFormat** formatters =
432 (MessageFormat**)countToPatterns->get(pluralCountUniStr);
434 LocalMemory<MessageFormat *> localFormatters
    [all...]
  /external/icu/icu4c/source/i18n/unicode/
msgfmt.h 51 * <p>MessageFormat prepares strings for display to users,
56 * <p>A MessageFormat is constructed from a <em>pattern</em> string
59 * <p><code>MessageFormat</code> differs from the other <code>Format</code>
60 * classes in that you create a <code>MessageFormat</code> object with one
62 * method). Factory methods aren't necessary because <code>MessageFormat</code>
79 * <p>An argument might have a "complex" type with nested MessageFormat sub-patterns.
90 * <p>When formatting, MessageFormat takes a collection of argument values
105 * <code>MessageFormat</code> uses patterns of the following form:
147 * only in program syntax, like quoting in MessageFormat.
259 * MessageFormat::format
    [all...]
  /external/icu/icu4c/source/test/intltest/
tmsgfmt.h 21 * TestMessageFormat tests MessageFormat, and also a few unctions in ChoiceFormat
32 * regression test for a specific bug regarding MessageFormat using ChoiceFormat
40 * test MessageFormat with various given patterns
49 * tests the static MessageFormat::format method
66 * tests MessageFormat functionality with a SelectFormat.
73 * Internal method to format a MessageFormat object with passed args
75 void internalFormat(MessageFormat* msgFmt ,
80 * Internal method to create a MessageFormat object with passed args
82 MessageFormat* internalCreate(
86 * Verify that MessageFormat accomodates more than 10 argument
    [all...]
tmsgfmt.cpp 185 MessageFormat *fmt = new MessageFormat(pattern, status);
187 dataerrln("MessageFormat pattern creation failed. - %s", u_errorName(status));
192 errln("MessageFormat::toPattern() failed.");
300 MessageFormat *form = 0;
303 form = new MessageFormat(testCases[i], Locale::getUS(), success);
305 dataerrln("MessageFormat creation failed.#1 - %s", u_errorName(success));
306 logln(((UnicodeString)"MessageFormat for ") + testCases[i] + " creation failed.\n");
329 dataerrln("MessageFormat failed test #3 - %s", u_errorName(success));
352 errln("MessageFormat failed test #5")
    [all...]
  /external/icu/icu4j/samples/src/com/ibm/icu/samples/iuc/
Sample40_PopMsg.java 20 import com.ibm.icu.text.MessageFormat;
48 MessageFormat fmt = new MessageFormat(pattern,defaultLocaleID);
61 System.out.println(MessageFormat.format(info, infoArgs));
Sample50_PopSort.java 23 import com.ibm.icu.text.MessageFormat;
60 MessageFormat fmt = new MessageFormat(pattern,defaultLocaleID);
73 System.out.println(MessageFormat.format(info, infoArgs));
  /external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
ScriptIDModuleWriter.java 14 import com.ibm.icu.text.MessageFormat;
46 MessageFormat format = new MessageFormat(scriptPreamble);
60 format = new MessageFormat(scriptPreambleStable);
85 format = new MessageFormat(scriptPreambleStable);
133 MessageFormat format = new MessageFormat(languagePreamble);
148 format = new MessageFormat(languagePreambleStable);
170 format = new MessageFormat(languagePreambleStable);
247 MessageFormat format = new MessageFormat(moduleHeader)
    [all...]
  /external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timescale/
EpochOffsets.java 16 import com.ibm.icu.text.MessageFormat;
84 MessageFormat fmt = new MessageFormat("{0, date, full} {0, time, full} = {1}");
  /external/icu/icu4c/source/samples/msgfmt/answers/
main_2.cpp 32 MessageFormat msg(PATTERN, status);
33 check(status, "MessageFormat::ct");
42 check(status, "MessageFormat::format");
main_3.cpp 32 MessageFormat msg(PATTERN, status);
33 check(status, "MessageFormat::ct");
42 check(status, "MessageFormat::format");
  /external/icu/icu4c/source/samples/msgfmt/
main.cpp 32 MessageFormat msg(PATTERN, status);
33 check(status, "MessageFormat::ct");
42 check(status, "MessageFormat::format");

Completed in 1811 milliseconds

1 2 3 4 5