Home
last modified time | relevance | path

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

1234

/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DMessageFormatTest.java29 import java.text.MessageFormat;
44 private MessageFormat format1, format2, format3;
48 private void checkSerialization(MessageFormat format) { in checkSerialization()
56 MessageFormat read = (MessageFormat) in.readObject(); in checkSerialization()
75 MessageFormat format = new MessageFormat( in test_ConstructorLjava_lang_StringLjava_util_Locale()
93 MessageFormat format = new MessageFormat( in test_ConstructorLjava_lang_String()
96 format.getClass() == MessageFormat.class); in test_ConstructorLjava_lang_String()
127 assertEquals("Simple string", "Test message", new MessageFormat("Test message").format( in test_ConstructorLjava_lang_String()
130 result = new MessageFormat("Don't").format(new Object[0]); in test_ConstructorLjava_lang_String()
135 new MessageFormat("Invalid {1,foobar} format descriptor!"); in test_ConstructorLjava_lang_String()
[all …]
DSupport_MessageFormat.java21 import java.text.MessageFormat;
23 import java.text.MessageFormat.Field;
49 MessageFormat format = new MessageFormat(pattern, Locale.US); in t_format_with_FieldPosition()
76 MessageFormat format = new MessageFormat(pattern, Locale.US); in t_formatToCharacterIterator()
/external/icu4c/i18n/
Dmsgfmt.cpp157 return icu::MessageFormat::equalFormats(key1.pointer, key2.pointer); in equalFormatsForHash()
165 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MessageFormat) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
218 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat
239 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat
261 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat
284 MessageFormat::MessageFormat(const MessageFormat& that) in MessageFormat() function in MessageFormat
310 MessageFormat::~MessageFormat() in ~MessageFormat()
331 UBool MessageFormat::allocateArgTypes(int32_t capacity, UErrorCode& status) { in allocateArgTypes()
357 const MessageFormat&
358 MessageFormat::operator=(const MessageFormat& that) in operator =()
[all …]
Dtmutfmt.cpp227 MessageFormat* pattern = ((MessageFormat**)countToPattern->get(count))[fStyle]; in format()
271 MessageFormat** patterns = (MessageFormat**)valueTok.pointer; in parseObject()
274 MessageFormat* pattern = patterns[style]; in parseObject()
510 MessageFormat* messageFormat = new MessageFormat(pattern, fLocale, err); in readFromCurrentLocale()
515MessageFormat** formatters = (MessageFormat**)countToPatterns->get(pluralCountUniStr); in readFromCurrentLocale()
517 … formatters = (MessageFormat**)uprv_malloc(UTMUTFMT_FORMAT_STYLE_COUNT*sizeof(MessageFormat*)); in readFromCurrentLocale()
592MessageFormat** formatters = (MessageFormat**)countToPatterns->get(*pluralCount); in checkConsistency()
648MessageFormat* messageFormat = new MessageFormat(UnicodeString(TRUE, pattern, ptLength), fLocale, … in searchInLocaleChain()
653 MessageFormat** formatters = (MessageFormat**)countToPatterns->get(srcPluralCount); in searchInLocaleChain()
655 … formatters = (MessageFormat**)uprv_malloc(UTMUTFMT_FORMAT_STYLE_COUNT*sizeof(MessageFormat*)); in searchInLocaleChain()
[all …]
Dumsg.cpp43 static const Formattable::Type* getArgTypeList(const MessageFormat& m,
45 static UBool hasArgTypeConflicts(const MessageFormat& m) { in hasArgTypeConflicts()
50 MessageFormatAdapter::getArgTypeList(const MessageFormat& m, in getArgTypeList()
249 MessageFormat* retVal = new MessageFormat(patString,Locale(locale),*parseError,*status); in umsg_open()
267 delete (MessageFormat*) format; in umsg_close()
282 UMessageFormat retVal = (UMessageFormat)((MessageFormat*)fmt)->clone(); in umsg_clone()
297 ((MessageFormat*)fmt)->setLocale(Locale(locale)); in umsg_setLocale()
307 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/chromium_org/third_party/icu/source/test/intltest/
Dtmsgfmt.cpp174 MessageFormat *fmt = new MessageFormat(pattern, status); in testBug2()
292 MessageFormat *form = 0; in PatternTest()
295 form = new MessageFormat(testCases[i], Locale::getUS(), success); in PatternTest()
360 MessageFormat *form = 0; in sample()
363 form = new MessageFormat("There are {0} files on {1}", success); in sample()
390 result = MessageFormat::format( in testStaticFormat()
426 result = MessageFormat::format( in TestTurkishCasing()
458 MessageFormat* form = new MessageFormat( in testSimpleFormat()
492 MessageFormat* form = new MessageFormat("The disk \"{1}\" contains {0}.", err); in testMsgFormatChoice()
538 MessageFormat* mfNum = new MessageFormat(t1, Locale("fr"), err); in testMsgFormatPlural()
[all …]
Dmsfmrgts.cpp91 MessageFormat *messageFormatter = new MessageFormat("", status); in Test4074764()
156MessageFormat *fmt = new MessageFormat("{0,choice,0#no files|1#one file|1< {0,number,integer} file… in Test4058973()
180 MessageFormat *messageFormatter = new MessageFormat("", status); in Test4031438()
285 MessageFormat *fmt = new MessageFormat("There are {0} apples growing on the {1} tree.", status); in Test4052223()
453 MessageFormat *mf = new MessageFormat(originalPattern, status); in Test4114743()
479 MessageFormat *mf = new MessageFormat("", status); in Test4116444()
527 MessageFormat *mf = new MessageFormat("<{0}>", status); in Test4114739()
561 MessageFormat *mf = new MessageFormat(originalPattern, status); in Test4113018()
695 MessageFormat *mf = new MessageFormat("", status); in Test4118592()
736 MessageFormat *mf = new MessageFormat("{0}, {0}, {0}", status); in Test4118594()
[all …]
Dtmsgfmt.h71 void internalFormat(MessageFormat* msgFmt ,
78 MessageFormat* internalCreate(
/external/chromium_org/third_party/icu/source/i18n/
Dtmutfmt.cpp224 MessageFormat* pattern = ((MessageFormat**)countToPattern->get(count))[fStyle]; in format()
268 MessageFormat** patterns = (MessageFormat**)valueTok.pointer; in parseObject()
270 MessageFormat* pattern = patterns[style]; in parseObject()
492 MessageFormat* messageFormat = new MessageFormat(pattern, fLocale, err); in readFromCurrentLocale()
497 MessageFormat** formatters = (MessageFormat**)countToPatterns->get(pluralCount); in readFromCurrentLocale()
499 formatters = (MessageFormat**)uprv_malloc(kTotal*sizeof(MessageFormat*)); in readFromCurrentLocale()
574 MessageFormat** formatters = (MessageFormat**)countToPatterns->get(pluralCount); in checkConsistency()
627 MessageFormat* messageFormat = new MessageFormat(pattern, fLocale, err); in searchInLocaleChain()
632 MessageFormat** formatters = (MessageFormat**)countToPatterns->get(srcPluralCount); in searchInLocaleChain()
634 formatters = (MessageFormat**)uprv_malloc(kTotal*sizeof(MessageFormat*)); in searchInLocaleChain()
[all …]
Dmsgfmt.cpp159 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MessageFormat) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
205 class MessageFormat::Subformat : public UMemory {
264 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat
290 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat
317 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat
345 MessageFormat::MessageFormat(const MessageFormat& that) in MessageFormat() function in MessageFormat
364 MessageFormat::~MessageFormat() in ~MessageFormat()
395 UBool MessageFormat::allocateSubformats(int32_t capacity) { in allocateSubformats()
426 UBool MessageFormat::allocateArgTypes(int32_t capacity) { in allocateArgTypes()
459 const MessageFormat&
[all …]
Dumsg.cpp232 retVal = (UMessageFormat*) new MessageFormat(patString,Locale(locale),*parseError,*status); in umsg_open()
248 delete (MessageFormat*) format; in umsg_close()
263 UMessageFormat retVal = (UMessageFormat)((MessageFormat*)fmt)->clone(); in umsg_clone()
278 ((MessageFormat*)fmt)->setLocale(Locale(locale)); in umsg_setLocale()
288 return ((const MessageFormat*)fmt)->getLocale().getName(); in umsg_getLocale()
315 ((MessageFormat*)fmt)->applyPattern(UnicodeString(pattern,patternLength),*parseError,*status); in umsg_applyPattern()
340 ((const MessageFormat*)fmt)->toPattern(res); in umsg_toPattern()
377 static const Formattable::Type* getArgTypeList(const MessageFormat& m,
381 MessageFormatAdapter::getArgTypeList(const MessageFormat& m, in getArgTypeList()
406 MessageFormatAdapter::getArgTypeList(*(const MessageFormat*)fmt, count); in umsg_vformat()
[all …]
/external/icu4c/test/intltest/
Dtmsgfmt.cpp180 MessageFormat *fmt = new MessageFormat(pattern, status); in testBug2()
295 MessageFormat *form = 0; in PatternTest()
298 form = new MessageFormat(testCases[i], Locale::getUS(), success); in PatternTest()
369 MessageFormat *form = 0; in sample()
372 form = new MessageFormat("There are {0} files on {1}", success); in sample()
399 result = MessageFormat::format( in testStaticFormat()
435 result = MessageFormat::format( in TestTurkishCasing()
467 MessageFormat* form = new MessageFormat( in testSimpleFormat()
501 MessageFormat* form = new MessageFormat("The disk \"{1}\" contains {0}.", err); in testMsgFormatChoice()
547 MessageFormat* mfNum = new MessageFormat(t1, Locale("fr"), err); in testMsgFormatPlural()
[all …]
Dmsfmrgts.cpp88 MessageFormat *messageFormatter = new MessageFormat("", status); in Test4074764()
182 MessageFormat *messageFormatter = new MessageFormat("", status); in Test4031438()
287 MessageFormat *fmt = new MessageFormat("There are {0} apples growing on the {1} tree.", status); in Test4052223()
455 MessageFormat *mf = new MessageFormat(originalPattern, status); in Test4114743()
481 MessageFormat *mf = new MessageFormat("", status); in Test4116444()
529 MessageFormat *mf = new MessageFormat("<{0}>", status); in Test4114739()
563 MessageFormat *mf = new MessageFormat(originalPattern, status); in Test4113018()
697 MessageFormat *mf = new MessageFormat("", status); in Test4118592()
738 MessageFormat *mf = new MessageFormat("{0}, {0}, {0}", status); in Test4118594()
790 MessageFormat *form1 = new MessageFormat(patternText1, status); in Test4105380()
[all …]
Dtmsgfmt.h73 void internalFormat(MessageFormat* msgFmt ,
80 MessageFormat* internalCreate(
/external/chromium_org/third_party/icu/source/i18n/unicode/
Dmsgfmt.h291 class U_I18N_API MessageFormat : public Format {
316 MessageFormat(const UnicodeString& pattern,
327 MessageFormat(const UnicodeString& pattern,
340 MessageFormat(const UnicodeString& pattern,
348 MessageFormat(const MessageFormat&);
354 const MessageFormat& operator=(const MessageFormat&);
360 virtual ~MessageFormat();
807 MessageFormat(); // default constructor not implemented
950 MessageFormat::format(const Formattable& obj, in format()
/external/icu4c/i18n/unicode/
Dmsgfmt.h323 class U_I18N_API MessageFormat : public Format {
350 MessageFormat(const UnicodeString& pattern,
361 MessageFormat(const UnicodeString& pattern,
374 MessageFormat(const UnicodeString& pattern,
382 MessageFormat(const MessageFormat&);
388 const MessageFormat& operator=(const MessageFormat&);
394 virtual ~MessageFormat();
886 MessageFormat(); // default constructor not implemented
1034 void copyObjects(const MessageFormat& that, UErrorCode& ec);
1097 MessageFormat::format(const Formattable& obj, in format()
Dselfmt.h32 class MessageFormat; variable
344 friend class MessageFormat;
/external/proguard/src/proguard/gui/
DGUIResources.java23 import java.text.MessageFormat;
35 private static final MessageFormat formatter = new MessageFormat("");
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/check/
DAssert.java13 import java.text.MessageFormat;
137 …String message = "null argument expected: " + MessageFormat.format(errorFormat, args); //$NON-NLS-… in isNull2()
204 String message = "null argument: " + MessageFormat.format(errorFormat, args); //$NON-NLS-1$ in isNotNull2()
230 String message = MessageFormat.format(errorFormat, args); in fail()
/external/jmonkeyengine/engine/src/core/com/jme3/util/
DJmeFormatter.java37 import java.text.MessageFormat;
51 private MessageFormat format;
57 format = new MessageFormat("{0,time}"); in JmeFormatter()
/external/apache-xml/src/main/java/org/apache/xml/serializer/utils/
DMessages.java224 java.text.MessageFormat.format( in createMsg()
255 fmsg = java.text.MessageFormat.format(msg, args); in createMsg()
265 java.text.MessageFormat.format( in createMsg()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/
DMessages.java13 import java.text.MessageFormat;
72 return MessageFormat.format(message, bindings); in bind()
/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()
100 assertEquals(MessageFormat.format(rb.getString("pattern"), oa), f in testLocalizedFormatMessage()
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/
DCharacterPropertyEditor.java18 import java.text.MessageFormat;
73 MessageFormat.format(ModelMessages.CharacterPropertyEditor_notValid, text)); in setEditorText()
DIntegerPropertyEditor.java18 import java.text.MessageFormat;
77 MessageFormat.format(ModelMessages.IntegerPropertyEditor_notValidInt, text)); in setEditorText()

1234