Home
last modified time | relevance | path

Searched refs:MessageFormat (Results 1 – 25 of 151) sorted by relevance

1234567

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DMessageFormatTest.java19 import com.ibm.icu.text.MessageFormat;
38 MessageFormat mf = new MessageFormat(pattern); in testHashCode()
39 MessageFormat eq = new MessageFormat(altPattern); in testHashCode()
40MessageFormat ne = new MessageFormat("Deleted (0, number, currency} files at {1, time} on {1, date… in testHashCode()
55 MessageFormat mf = new MessageFormat(pattern); in testMessageFormatString()
63 MessageFormat mf = new MessageFormat(pattern, Locale.US); in testMessageFormatStringLocale()
71 MessageFormat mf = new MessageFormat(pattern, ULocale.US); in testMessageFormatStringULocale()
79 MessageFormat mf = new MessageFormat(pattern, Locale.US); in testSetLocaleLocale()
89 MessageFormat mf = new MessageFormat(pattern, Locale.US); in testSetLocaleULocale()
99 MessageFormat mf = new MessageFormat(pattern, Locale.US); in testGetLocale()
[all …]
/external/messageformat/javatests/com/android/messageformat/
DSimpleMessageFormatTest.java16 MessageFormat.formatNamedArgs( in testBasic()
23 MessageFormat.formatNamedArgs(Locale.US, msg, "gender", "female")); in testSelect()
25 MessageFormat.formatNamedArgs(Locale.US, msg, "gender", "male")); in testSelect()
27 MessageFormat.formatNamedArgs(Locale.US, msg, "gender", "unknown")); in testSelect()
39 MessageFormat.formatNamedArgs(sr, msg, "num", 1, "name", "Peter")); in testPlural()
41 MessageFormat.formatNamedArgs(sr, msg, "num", 2, "name", "Paul")); in testPlural()
43 MessageFormat.formatNamedArgs(sr, msg, "num", 22, "name", "Mary")); in testPlural()
45 MessageFormat.formatNamedArgs(sr, msg, "num", 33, "name", "John")); in testPlural()
47 MessageFormat.formatNamedArgs(sr, msg, "num", 6, "name", "Yoko")); in testPlural()
61 MessageFormat.formatNamedArgs(ja, msg, "gender", "female", "num", 1)); in testSelectAndPlural()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTestMessageFormat.java35 import com.ibm.icu.text.MessageFormat;
140 MessageFormat fmt = new MessageFormat(pattern); in TestBug2()
196 MessageFormat form = null; in TestPattern()
198 form = new MessageFormat(testCases[i], Locale.US); in TestPattern()
250 MessageFormat form = null; in TestSample()
253 form = new MessageFormat("There are {0} files on {1}"); in TestSample()
276MessageFormat.format("At {1,time} on {1,date}, there was {2} on planet {0,number,integer}.", in TestStaticFormat()
289 MessageFormat form = new MessageFormat( in TestSimpleFormat()
315 MessageFormat form = new MessageFormat("The disk \"{1}\" contains {0}."); in TestMsgFormatChoice()
351 MessageFormat x = new MessageFormat("There are {0} files on {1}"); in TestClone()
[all …]
DMessageRegressionTest.java50 import com.ibm.icu.text.MessageFormat;
69 MessageFormat messageFormatter = new MessageFormat(""); in Test4074764()
127 MessageFormat messageFormatter = new MessageFormat(""); in Test4031438()
172 MessageFormat fmt = new MessageFormat("There are {0} apples growing on the {1} tree."); in Test4052223()
258 MessageFormat format1 = null; in Test4111739()
259 MessageFormat format2 = null; in Test4111739()
273 format1 = new MessageFormat("pattern{0}"); in Test4111739()
280 format2 = (MessageFormat)istream.readObject(); in Test4111739()
300 MessageFormat mf = new MessageFormat(originalPattern); in Test4114743()
318 MessageFormat mf = new MessageFormat(""); in Test4116444()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DTestMessageFormat.java36 import android.icu.text.MessageFormat;
141 MessageFormat fmt = new MessageFormat(pattern); in TestBug2()
197 MessageFormat form = null; in TestPattern()
199 form = new MessageFormat(testCases[i], Locale.US); in TestPattern()
251 MessageFormat form = null; in TestSample()
254 form = new MessageFormat("There are {0} files on {1}"); in TestSample()
277MessageFormat.format("At {1,time} on {1,date}, there was {2} on planet {0,number,integer}.", in TestStaticFormat()
290 MessageFormat form = new MessageFormat( in TestSimpleFormat()
316 MessageFormat form = new MessageFormat("The disk \"{1}\" contains {0}."); in TestMsgFormatChoice()
352 MessageFormat x = new MessageFormat("There are {0} files on {1}"); in TestClone()
[all …]
DMessageRegressionTest.java51 import android.icu.text.MessageFormat;
70 MessageFormat messageFormatter = new MessageFormat(""); in Test4074764()
128 MessageFormat messageFormatter = new MessageFormat(""); in Test4031438()
173 MessageFormat fmt = new MessageFormat("There are {0} apples growing on the {1} tree."); in Test4052223()
259 MessageFormat format1 = null; in Test4111739()
260 MessageFormat format2 = null; in Test4111739()
274 format1 = new MessageFormat("pattern{0}"); in Test4111739()
281 format2 = (MessageFormat)istream.readObject(); in Test4111739()
301 MessageFormat mf = new MessageFormat(originalPattern); in Test4114743()
319 MessageFormat mf = new MessageFormat(""); in Test4116444()
[all …]
/external/icu/icu4c/source/i18n/
Dmsgfmt.cpp161 return icu::MessageFormat::equalFormats(key1.pointer, key2.pointer); in equalFormatsForHash()
169 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MessageFormat) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
232 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat
253 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat
275 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat
298 MessageFormat::MessageFormat(const MessageFormat& that) in MessageFormat() function in MessageFormat
324 MessageFormat::~MessageFormat() in ~MessageFormat()
345 UBool MessageFormat::allocateArgTypes(int32_t capacity, UErrorCode& status) { in allocateArgTypes()
371 const MessageFormat&
372 MessageFormat::operator=(const MessageFormat& that) in operator =()
[all …]
Dtmutfmt.cpp206 MessageFormat** patterns = (MessageFormat**)valueTok.pointer; in parseObject()
209 MessageFormat* pattern = patterns[style]; in parseObject()
426 LocalPointer<MessageFormat> messageFormat(new MessageFormat( in put()
431 MessageFormat** formatters = in put()
432 (MessageFormat**)countToPatterns->get(pluralCountUniStr); in put()
434 LocalMemory<MessageFormat *> localFormatters( in put()
435 … (MessageFormat **)uprv_malloc(UTMUTFMT_FORMAT_STYLE_COUNT*sizeof(MessageFormat*))); in put()
521 MessageFormat** formatters = (MessageFormat**)countToPatterns->get(*pluralCount); in checkConsistency()
575 LocalPointer<MessageFormat> messageFormat( in searchInLocaleChain()
576 … new MessageFormat(UnicodeString(TRUE, pattern, ptLength), getLocale(err), err), err); in searchInLocaleChain()
[all …]
Dumsg.cpp45 static const Formattable::Type* getArgTypeList(const MessageFormat& m,
47 static UBool hasArgTypeConflicts(const MessageFormat& m) { in hasArgTypeConflicts()
52 MessageFormatAdapter::getArgTypeList(const MessageFormat& m, in getArgTypeList()
251 MessageFormat* retVal = new MessageFormat(patString,Locale(locale),*parseError,*status); in umsg_open()
269 delete (MessageFormat*) format; in umsg_close()
284 UMessageFormat retVal = (UMessageFormat)((MessageFormat*)fmt)->clone(); in umsg_clone()
299 ((MessageFormat*)fmt)->setLocale(Locale(locale)); in umsg_setLocale()
309 return ((const MessageFormat*)fmt)->getLocale().getName(); in umsg_getLocale()
336 ((MessageFormat*)fmt)->applyPattern(UnicodeString(pattern,patternLength),*parseError,*status); in umsg_applyPattern()
361 ((const MessageFormat*)fmt)->toPattern(res); in umsg_toPattern()
[all …]
/external/icu/icu4c/source/test/intltest/
Dtmsgfmt.cpp183 MessageFormat *fmt = new MessageFormat(pattern, status); in testBug2()
298 MessageFormat *form = 0; in PatternTest()
301 form = new MessageFormat(testCases[i], Locale::getUS(), success); in PatternTest()
372 MessageFormat *form = 0; in sample()
375 form = new MessageFormat("There are {0} files on {1}", success); in sample()
402 result = MessageFormat::format( in testStaticFormat()
438 result = MessageFormat::format( in TestTurkishCasing()
470 MessageFormat* form = new MessageFormat( in testSimpleFormat()
504 MessageFormat* form = new MessageFormat("The disk \"{1}\" contains {0}.", err); in testMsgFormatChoice()
550 MessageFormat* mfNum = new MessageFormat(t1, Locale("fr"), err); in testMsgFormatPlural()
[all …]
Dmsfmrgts.cpp91 MessageFormat *messageFormatter = new MessageFormat("", status); in Test4074764()
185 MessageFormat *messageFormatter = new MessageFormat("", status); in Test4031438()
290 MessageFormat *fmt = new MessageFormat("There are {0} apples growing on the {1} tree.", status); in Test4052223()
458 MessageFormat *mf = new MessageFormat(originalPattern, status); in Test4114743()
484 MessageFormat *mf = new MessageFormat("", status); in Test4116444()
532 MessageFormat *mf = new MessageFormat("<{0}>", status); in Test4114739()
566 MessageFormat *mf = new MessageFormat(originalPattern, status); in Test4113018()
700 MessageFormat *mf = new MessageFormat("", status); in Test4118592()
741 MessageFormat *mf = new MessageFormat("{0}, {0}, {0}", status); in Test4118594()
793 MessageFormat *form1 = new MessageFormat(patternText1, status); in Test4105380()
[all …]
/external/icu/icu4j/samples/src/com/ibm/icu/samples/text/pluralformat/
DPluralFormatSample.java13 import com.ibm.icu.text.MessageFormat;
43 MessageFormat msgfmtEn = new MessageFormat("{0,number} {1}", locEn); in PluralFormatExample()
44 MessageFormat msgfmtSl = new MessageFormat("{0,number} {1}", locSl); in PluralFormatExample()
67 MessageFormat altMsgfmtEn = new MessageFormat(msgPatEn, locEn); in PluralFormatExample()
68 MessageFormat altMsgfmtSl = new MessageFormat(msgPatSl, locSl); in PluralFormatExample()
/external/icu/android_icu4j/src/samples/java/android/icu/samples/text/pluralformat/
DPluralFormatSample.java14 import android.icu.text.MessageFormat;
44 MessageFormat msgfmtEn = new MessageFormat("{0,number} {1}", locEn); in PluralFormatExample()
45 MessageFormat msgfmtSl = new MessageFormat("{0,number} {1}", locSl); in PluralFormatExample()
68 MessageFormat altMsgfmtEn = new MessageFormat(msgPatEn, locEn); in PluralFormatExample()
69 MessageFormat altMsgfmtSl = new MessageFormat(msgPatSl, locSl); in PluralFormatExample()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DMessageFormat.java412 public class MessageFormat extends UFormat { class
418 public final java.text.MessageFormat messageFormat;
424 public MessageFormat(java.text.MessageFormat delegate) { in MessageFormat() method in MessageFormat
441 public MessageFormat(String pattern) { in MessageFormat() method in MessageFormat
442 this(new java.text.MessageFormat(pattern, ULocale.getDefault(Category.FORMAT).toLocale())); in MessageFormat()
458 public MessageFormat(String pattern, Locale locale) { in MessageFormat() method in MessageFormat
459 this(new java.text.MessageFormat(pattern, locale)); in MessageFormat()
475 public MessageFormat(String pattern, ULocale locale) { in MessageFormat() method in MessageFormat
476 this(new java.text.MessageFormat(pattern, locale.toLocale())); in MessageFormat()
964 return java.text.MessageFormat.format(pattern, arguments); in format()
[all …]
/external/icu/icu4c/source/samples/plurfmtsample/
Dplurfmtsample.cpp40 MessageFormat* msgfmtEn = new MessageFormat("{0,number} {1}", locEn,status); in PluralFormatExample()
41 MessageFormat* msgfmtSl = new MessageFormat("{0,number} {1}", locSl,status); in PluralFormatExample()
64 MessageFormat* altMsgfmtEn = new MessageFormat(msgPatEn, locEn,status); in PluralFormatExample()
65 MessageFormat* altMsgfmtSl = new MessageFormat(msgPatSl, locSl,status); in PluralFormatExample()
/external/icu/icu4c/source/i18n/unicode/
Dmsgfmt.h325 class U_I18N_API MessageFormat : public Format {
352 MessageFormat(const UnicodeString& pattern,
363 MessageFormat(const UnicodeString& pattern,
376 MessageFormat(const UnicodeString& pattern,
384 MessageFormat(const MessageFormat&);
390 const MessageFormat& operator=(const MessageFormat&);
396 virtual ~MessageFormat();
869 MessageFormat(); // default constructor not implemented
879 PluralSelectorProvider(const MessageFormat &mf, UPluralType type);
885 const MessageFormat &msgFormat;
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
DElapsedTimer.java15 import android.icu.text.MessageFormat;
49 private MessageFormat myMsgFormat = null;
54 public ElapsedTimer(MessageFormat aMsgFmt) { in ElapsedTimer()
62 public ElapsedTimer(MessageFormat aMsgFmt, NumberFormat aNumFmt) { in ElapsedTimer()
68 myMsgFormat = new MessageFormat(pattern); in ElapsedTimer()
72 myMsgFormat = new MessageFormat(pattern); in ElapsedTimer()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
DScriptIDModuleWriter.java14 import com.ibm.icu.text.MessageFormat;
46 MessageFormat format = new MessageFormat(scriptPreamble); in writeScriptHeader()
60 format = new MessageFormat(scriptPreambleStable); in writeScriptHeader()
85 format = new MessageFormat(scriptPreambleStable); in writeScriptHeader()
133 MessageFormat format = new MessageFormat(languagePreamble); in writeLanguageHeader()
148 format = new MessageFormat(languagePreambleStable); in writeLanguageHeader()
170 format = new MessageFormat(languagePreambleStable); in writeLanguageHeader()
247 MessageFormat format = new MessageFormat(moduleHeader); in updateScriptAndLanguages()
/external/apache-commons-math/src/main/java/org/apache/commons/math/exception/util/
DMessageFactory.java19 import java.text.MessageFormat;
65 final MessageFormat fmt = new MessageFormat(general.getLocalizedString(locale), locale); in buildMessage()
72 … final MessageFormat fmt = new MessageFormat(specific.getLocalizedString(locale), locale); in buildMessage()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
DElapsedTimer.java14 import com.ibm.icu.text.MessageFormat;
48 private MessageFormat myMsgFormat = null;
53 public ElapsedTimer(MessageFormat aMsgFmt) { in ElapsedTimer()
61 public ElapsedTimer(MessageFormat aMsgFmt, NumberFormat aNumFmt) { in ElapsedTimer()
67 myMsgFormat = new MessageFormat(pattern); in ElapsedTimer()
71 myMsgFormat = new MessageFormat(pattern); in ElapsedTimer()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTimeUnitFormat.java280 MessageFormat pattern = (MessageFormat) (patternEntry.getValue())[styl]; in parseObject()
439 final MessageFormat messageFormat = new MessageFormat(pattern, locale); in put()
518 final MessageFormat messageFormat = new MessageFormat(pattern, locale); in searchInTree()
543 MessageFormat messageFormat = null; in searchInTree()
545 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_SECOND, locale); in searchInTree()
547 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_MINUTE, locale); in searchInTree()
549 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_HOUR, locale); in searchInTree()
551 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_WEEK, locale); in searchInTree()
553 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_DAY, locale); in searchInTree()
555 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_MONTH, locale); in searchInTree()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeUnitFormat.java278 MessageFormat pattern = (MessageFormat) (patternEntry.getValue())[styl]; in parseObject()
437 final MessageFormat messageFormat = new MessageFormat(pattern, locale); in put()
516 final MessageFormat messageFormat = new MessageFormat(pattern, locale); in searchInTree()
541 MessageFormat messageFormat = null; in searchInTree()
543 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_SECOND, locale); in searchInTree()
545 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_MINUTE, locale); in searchInTree()
547 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_HOUR, locale); in searchInTree()
549 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_WEEK, locale); in searchInTree()
551 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_DAY, locale); in searchInTree()
553 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_MONTH, locale); in searchInTree()
[all …]
/external/proguard/src/proguard/gui/
DGUIResources.java23 import java.text.MessageFormat;
35 private static final MessageFormat formatter = new MessageFormat("");
/external/messageformat/java/com/android/messageformat/
DMessageFormat.java23 public final class MessageFormat { class
34 return com.ibm.icu.simple.MessageFormat.formatNamedArgs(locale, msg, nameValuePairs); in formatNamedArgs()
66 private MessageFormat() { in MessageFormat() method in MessageFormat
/external/icu/icu4j/samples/src/com/ibm/icu/samples/iuc/
DSample40_PopMsg.java20 import com.ibm.icu.text.MessageFormat;
48 MessageFormat fmt = new MessageFormat(pattern,defaultLocaleID); in main()
61 System.out.println(MessageFormat.format(info, infoArgs)); in main()

1234567