Home
last modified time | relevance | path

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

12345678

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DTestMessageFormat.java39 import android.icu.text.MessageFormat;
149 MessageFormat fmt = new MessageFormat(pattern); in TestBug2()
205 MessageFormat form = null; in TestPattern()
207 form = new MessageFormat(testCases[i], Locale.US); in TestPattern()
259 MessageFormat form = null; in TestSample()
262 form = new MessageFormat("There are {0} files on {1}"); in TestSample()
285MessageFormat.format("At {1,time} on {1,date}, there was {2} on planet {0,number,integer}.", in TestStaticFormat()
298 MessageFormat form = new MessageFormat( in TestSimpleFormat()
324 MessageFormat form = new MessageFormat("The disk \"{1}\" contains {0}."); in TestMsgFormatChoice()
360 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;
146 MessageFormat fmt = new MessageFormat(pattern); in TestBug2()
202 MessageFormat form = null; in TestPattern()
204 form = new MessageFormat(testCases[i], Locale.US); in TestPattern()
256 MessageFormat form = null; in TestSample()
259 form = new MessageFormat("There are {0} files on {1}"); in TestSample()
282MessageFormat.format("At {1,time} on {1,date}, there was {2} on planet {0,number,integer}.", in TestStaticFormat()
295 MessageFormat form = new MessageFormat( in TestSimpleFormat()
321 MessageFormat form = new MessageFormat("The disk \"{1}\" contains {0}."); in TestMsgFormatChoice()
357 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.cpp188 LocalPointer<MessageFormat> fmt(new MessageFormat(pattern, status)); in testBug2()
302 LocalPointer<MessageFormat> form; in PatternTest()
305 form.adoptInstead(new MessageFormat(testCases[i], Locale::getUS(), success)); in PatternTest()
375 MessageFormat *form = 0; in sample()
378 form = new MessageFormat("There are {0} files on {1}", success); in sample()
405 result = MessageFormat::format( in testStaticFormat()
441 result = MessageFormat::format( in TestTurkishCasing()
473 MessageFormat* form = new MessageFormat( in testSimpleFormat()
507 MessageFormat* form = new MessageFormat("The disk \"{1}\" contains {0}.", err); in testMsgFormatChoice()
553 MessageFormat* mfNum = new MessageFormat(t1, Locale("fr"), err); in testMsgFormatPlural()
[all …]
Dmsfmrgts.cpp92 MessageFormat *messageFormatter = new MessageFormat("", status); in Test4074764()
186 MessageFormat *messageFormatter = new MessageFormat("", status); in Test4031438()
291 MessageFormat *fmt = new MessageFormat("There are {0} apples growing on the {1} tree.", status); in Test4052223()
459 MessageFormat *mf = new MessageFormat(originalPattern, status); in Test4114743()
485 MessageFormat *mf = new MessageFormat("", status); in Test4116444()
533 MessageFormat *mf = new MessageFormat("<{0}>", status); in Test4114739()
567 MessageFormat *mf = new MessageFormat(originalPattern, status); in Test4113018()
701 MessageFormat *mf = new MessageFormat("", status); in Test4118592()
742 MessageFormat *mf = new MessageFormat("{0}, {0}, {0}", status); in Test4118594()
794 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/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.h345 class U_I18N_API MessageFormat : public Format {
372 MessageFormat(const UnicodeString& pattern,
383 MessageFormat(const UnicodeString& pattern,
396 MessageFormat(const UnicodeString& pattern,
404 MessageFormat(const MessageFormat&);
410 const MessageFormat& operator=(const MessageFormat&);
416 virtual ~MessageFormat();
423 virtual MessageFormat* clone() const;
889 MessageFormat(); // default constructor not implemented
899 PluralSelectorProvider(const MessageFormat &mf, UPluralType type);
[all …]
/external/icu/libicu/cts_headers/unicode/
Dmsgfmt.h345 class U_I18N_API MessageFormat : public Format {
372 MessageFormat(const UnicodeString& pattern,
383 MessageFormat(const UnicodeString& pattern,
396 MessageFormat(const UnicodeString& pattern,
404 MessageFormat(const MessageFormat&);
410 const MessageFormat& operator=(const MessageFormat&);
416 virtual ~MessageFormat();
423 virtual MessageFormat* clone() const;
889 MessageFormat(); // default constructor not implemented
899 PluralSelectorProvider(const MessageFormat &mf, UPluralType type);
[all …]
/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/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/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/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/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/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/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/text/
DMessageFormat.java.patch1 --- android_icu4j/src/main/java/android/icu/text/MessageFormat.java 2021-01-19 16:26:30.210690045 +…
2 +++ android_icu4j/src/main/java/android/icu/text/MessageFormat.java 2021-01-19 16:26:51.134838576 +…
44 * The JDK MessageFormat does create and use a ChoiceFormat object
48 - * <p>Both the ICU and the JDK <code>MessageFormat</code> can control the argument
49 - * formats by using <code>argStyle</code>. But the JDK <code>MessageFormat</code> only
54 - * <code>MessageFormat</code> locale).</p>
60 - * For unknown types, <code>MessageFormat</code> will call <code>toString()</code>.</p>
75 * String result = MessageFormat.format(
/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/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DFormatterTest.java20 import java.text.MessageFormat;
70 assertEquals(MessageFormat.format(pattern, oa), f.formatMessage(r)); in testFormatMessage()
81 assertEquals(MessageFormat.format(pattern, oa), f.formatMessage(r)); in testFormatMessage()
100 assertEquals(MessageFormat.format(rb.getString("pattern"), oa), f in testLocalizedFormatMessage()

12345678