Home
last modified time | relevance | path

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

123456

/third_party/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 …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DTestMessageFormat.java39 import ohos.global.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 ohos.global.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 …]
/third_party/flutter/skia/third_party/externals/icu/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 …]
/third_party/skia/third_party/externals/icu/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 …]
/third_party/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 …]
/third_party/node/deps/icu-small/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 …]
/third_party/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 …]
/third_party/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()
/third_party/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()
/third_party/flutter/skia/third_party/externals/icu/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()
/third_party/skia/third_party/externals/icu/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()
/third_party/skia/third_party/externals/icu/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 …]
/third_party/node/deps/icu-small/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 override;
889 MessageFormat(); // default constructor not implemented
899 PluralSelectorProvider(const MessageFormat &mf, UPluralType type);
[all …]
/third_party/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 …]
/third_party/flutter/skia/third_party/externals/icu/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 …]
/third_party/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()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/util/
DElapsedTimer.java15 import ohos.global.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()
/third_party/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()

123456