Home
last modified time | relevance | path

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

12345678

/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/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DTestMessageFormat.java39 import android.icu.text.MessageFormat;
147 MessageFormat fmt = new MessageFormat(pattern); in TestBug2()
203 MessageFormat form = null; in TestPattern()
205 form = new MessageFormat(testCases[i], Locale.US); in TestPattern()
257 MessageFormat form = null; in TestSample()
260 form = new MessageFormat("There are {0} files on {1}"); in TestSample()
283MessageFormat.format("At {1,time} on {1,date}, there was {2} on planet {0,number,integer}.", in TestStaticFormat()
296 MessageFormat form = new MessageFormat( in TestSimpleFormat()
322 MessageFormat form = new MessageFormat("The disk \"{1}\" contains {0}."); in TestMsgFormatChoice()
358 MessageFormat x = new MessageFormat("There are {0} files on {1}"); in TestClone()
[all …]
DMessageRegressionTest.java54 import android.icu.text.MessageFormat;
76 MessageFormat messageFormatter = new MessageFormat(""); in Test4074764()
134 MessageFormat messageFormatter = new MessageFormat(""); in Test4031438()
179 MessageFormat fmt = new MessageFormat("There are {0} apples growing on the {1} tree."); in Test4052223()
265 MessageFormat format1 = null; in Test4111739()
266 MessageFormat format2 = null; in Test4111739()
280 format1 = new MessageFormat("pattern{0}"); in Test4111739()
287 format2 = (MessageFormat)istream.readObject(); in Test4111739()
307 MessageFormat mf = new MessageFormat(originalPattern); in Test4114743()
325 MessageFormat mf = new MessageFormat(""); in Test4116444()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTestMessageFormat.java38 import com.ibm.icu.text.MessageFormat;
144 MessageFormat fmt = new MessageFormat(pattern); in TestBug2()
200 MessageFormat form = null; in TestPattern()
202 form = new MessageFormat(testCases[i], Locale.US); in TestPattern()
254 MessageFormat form = null; in TestSample()
257 form = new MessageFormat("There are {0} files on {1}"); in TestSample()
280MessageFormat.format("At {1,time} on {1,date}, there was {2} on planet {0,number,integer}.", in TestStaticFormat()
293 MessageFormat form = new MessageFormat( in TestSimpleFormat()
319 MessageFormat form = new MessageFormat("The disk \"{1}\" contains {0}."); in TestMsgFormatChoice()
355 MessageFormat x = new MessageFormat("There are {0} files on {1}"); in TestClone()
[all …]
DMessageRegressionTest.java53 import com.ibm.icu.text.MessageFormat;
73 MessageFormat messageFormatter = new MessageFormat(""); in Test4074764()
131 MessageFormat messageFormatter = new MessageFormat(""); in Test4031438()
176 MessageFormat fmt = new MessageFormat("There are {0} apples growing on the {1} tree."); in Test4052223()
262 MessageFormat format1 = null; in Test4111739()
263 MessageFormat format2 = null; in Test4111739()
277 format1 = new MessageFormat("pattern{0}"); in Test4111739()
284 format2 = (MessageFormat)istream.readObject(); in Test4111739()
304 MessageFormat mf = new MessageFormat(originalPattern); in Test4114743()
322 MessageFormat mf = new MessageFormat(""); in Test4116444()
[all …]
/external/icu/icu4c/source/i18n/
Dmsgfmt.cpp162 return icu::MessageFormat::equalFormats(key1.pointer, key2.pointer); in equalFormatsForHash()
170 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MessageFormat) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
233 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat
254 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat
276 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat
299 MessageFormat::MessageFormat(const MessageFormat& that) in MessageFormat() function in MessageFormat
325 MessageFormat::~MessageFormat() in ~MessageFormat()
346 UBool MessageFormat::allocateArgTypes(int32_t capacity, UErrorCode& status) { in allocateArgTypes()
372 const MessageFormat&
373 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()
334 ((MessageFormat*)fmt)->applyPattern(UnicodeString(pattern,patternLength),*parseError,*status); in umsg_applyPattern()
359 ((const MessageFormat*)fmt)->toPattern(res); in umsg_toPattern()
[all …]
/external/icu/icu4c/source/test/intltest/
Dtmsgfmt.cpp185 MessageFormat *fmt = new MessageFormat(pattern, status); in testBug2()
300 MessageFormat *form = 0; in PatternTest()
303 form = new MessageFormat(testCases[i], Locale::getUS(), success); in PatternTest()
374 MessageFormat *form = 0; in sample()
377 form = new MessageFormat("There are {0} files on {1}", success); in sample()
404 result = MessageFormat::format( in testStaticFormat()
440 result = MessageFormat::format( in TestTurkishCasing()
472 MessageFormat* form = new MessageFormat( in testSimpleFormat()
506 MessageFormat* form = new MessageFormat("The disk \"{1}\" contains {0}.", err); in testMsgFormatChoice()
552 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/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/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/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/icu4c/source/samples/plurfmtsample/
Dplurfmtsample.cpp42 MessageFormat* msgfmtEn = new MessageFormat("{0,number} {1}", locEn,status); in PluralFormatExample()
43 MessageFormat* msgfmtSl = new MessageFormat("{0,number} {1}", locSl,status); in PluralFormatExample()
66 MessageFormat* altMsgfmtEn = new MessageFormat(msgPatEn, locEn,status); in PluralFormatExample()
67 MessageFormat* altMsgfmtSl = new MessageFormat(msgPatSl, locSl,status); in PluralFormatExample()
/external/icu/icu4c/source/i18n/unicode/
Dmsgfmt.h328 class U_I18N_API MessageFormat : public Format {
355 MessageFormat(const UnicodeString& pattern,
366 MessageFormat(const UnicodeString& pattern,
379 MessageFormat(const UnicodeString& pattern,
387 MessageFormat(const MessageFormat&);
393 const MessageFormat& operator=(const MessageFormat&);
399 virtual ~MessageFormat();
872 MessageFormat(); // default constructor not implemented
882 PluralSelectorProvider(const MessageFormat &mf, UPluralType type);
888 const MessageFormat &msgFormat;
[all …]
/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/icu/android_icu4j/src/main/tests/android/icu/dev/util/
DElapsedTimer.java15 import android.icu.text.MessageFormat;
53 private MessageFormat myMsgFormat = null;
58 public ElapsedTimer(MessageFormat aMsgFmt) { in ElapsedTimer()
66 public ElapsedTimer(MessageFormat aMsgFmt, NumberFormat aNumFmt) { in ElapsedTimer()
72 myMsgFormat = new MessageFormat(pattern); in ElapsedTimer()
76 myMsgFormat = new MessageFormat(pattern); in ElapsedTimer()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
DElapsedTimer.java14 import com.ibm.icu.text.MessageFormat;
50 private MessageFormat myMsgFormat = null;
55 public ElapsedTimer(MessageFormat aMsgFmt) { in ElapsedTimer()
63 public ElapsedTimer(MessageFormat aMsgFmt, NumberFormat aNumFmt) { in ElapsedTimer()
69 myMsgFormat = new MessageFormat(pattern); in ElapsedTimer()
73 myMsgFormat = new MessageFormat(pattern); in ElapsedTimer()
/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/android_icu4j/src/main/java/android/icu/text/
DTimeUnitFormat.java266 MessageFormat pattern = (MessageFormat) (patternEntry.getValue())[styl]; in parseObject()
425 final MessageFormat messageFormat = new MessageFormat(pattern, locale); in put()
504 final MessageFormat messageFormat = new MessageFormat(pattern, locale); in searchInTree()
529 MessageFormat messageFormat = null; in searchInTree()
531 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_SECOND, locale); in searchInTree()
533 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_MINUTE, locale); in searchInTree()
535 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_HOUR, locale); in searchInTree()
537 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_WEEK, locale); in searchInTree()
539 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_DAY, locale); in searchInTree()
541 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_MONTH, locale); in searchInTree()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeUnitFormat.java264 MessageFormat pattern = (MessageFormat) (patternEntry.getValue())[styl]; in parseObject()
423 final MessageFormat messageFormat = new MessageFormat(pattern, locale); in put()
502 final MessageFormat messageFormat = new MessageFormat(pattern, locale); in searchInTree()
527 MessageFormat messageFormat = null; in searchInTree()
529 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_SECOND, locale); in searchInTree()
531 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_MINUTE, locale); in searchInTree()
533 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_HOUR, locale); in searchInTree()
535 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_WEEK, locale); in searchInTree()
537 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_DAY, locale); in searchInTree()
539 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/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()
DSample50_PopSort.java23 import com.ibm.icu.text.MessageFormat;
60 MessageFormat fmt = new MessageFormat(pattern,defaultLocaleID); in main()
73 System.out.println(MessageFormat.format(info, infoArgs)); in main()
/external/cldr/tools/java/org/unicode/cldr/util/
DPathDescription.java17 import com.ibm.icu.text.MessageFormat;
187 …description = MessageFormat.format(MessageFormat.autoQuoteApostrophe(description), new Object[] { … in getDescription()
191 description = MessageFormat.format(MessageFormat.autoQuoteApostrophe(description), in getDescription()
194 description = MessageFormat.format(MessageFormat.autoQuoteApostrophe(description), in getDescription()

12345678