Home
last modified time | relevance | path

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

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DMessageFormatTest.java31 import java.text.MessageFormat;
46 private MessageFormat format1, format2, format3;
50 private void checkSerialization(MessageFormat format) { in checkSerialization()
58 MessageFormat read = (MessageFormat) in.readObject(); in checkSerialization()
73 new MessageFormat("{1, number}").formatToCharacterIterator(null); in test_formatToCharacterIteratorLjava_lang_Object()
79 new MessageFormat("{0, time}").formatToCharacterIterator(new Object[]{""}); in test_formatToCharacterIteratorLjava_lang_Object()
100 MessageFormat mf = new MessageFormat(pattern, l[i]); in test_getLocale()
107 MessageFormat mf = new MessageFormat(pattern); in test_getLocale()
115 MessageFormat f1 = (MessageFormat) format1.clone(); in test_setFormatILjava_text_Format()
154 MessageFormat mf = new MessageFormat("{0,number,#.##}, {0,number,#.#}"); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition()
[all …]
DSupport_MessageFormat.java23 import java.text.MessageFormat;
25 import java.text.MessageFormat.Field;
55 MessageFormat format = new MessageFormat(pattern, Locale.US); in t_format_with_FieldPosition()
84 MessageFormat format = new MessageFormat(pattern, Locale.US); in t_formatToCharacterIterator()
DChoiceFormatTest.java22 import java.text.MessageFormat;
380 MessageFormat mf = new MessageFormat("CHOICE {1,choice}"); in test_toPattern()
/libcore/ojluni/src/test/java/text/Format/MessageFormat/
DMessageRegression.java45 package test.java.text.Format.MessageFormat;
80 MessageFormat messageFormatter = new MessageFormat(""); in Test4074764()
120MessageFormat fmt = new MessageFormat("{0,choice,0#no files|1#one file|1< {0,number,integer} files… in Test4058973()
139 MessageFormat messageFormatter = new MessageFormat(""); in Test4031438()
184 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()
303 MessageFormat mf = new MessageFormat(originalPattern); in Test4114743()
[all …]
DBug7003643.java31 package test.java.text.Format.MessageFormat;
55 MessageFormat mf = null; in main()
57 mf = new MessageFormat(pattern); in main()
65 String res1 = MessageFormat.format(pattern, 123); in main()
67 String res2 = MessageFormat.format(toPattern, 123); in main()
Dbug4492719.java32 package test.java.text.Format.MessageFormat;
44 MessageFormat mf; in main()
63 mf = new MessageFormat("{0,time," + formats[j] + "} - time"); in main()
64 text = MessageFormat.format("{0,time," + formats[j] + "} - time", in main()
DBug6481179.java30 package test.java.text.Format.MessageFormat;
32 import java.text.MessageFormat;
41 MessageFormat.format("Testdata {1,invalid_format_type}", in main()
DMessageFormatsByArgumentIndex.java30 package test.java.text.Format.MessageFormat;
34 import java.text.MessageFormat;
44 MessageFormat format = new MessageFormat("{3, choice," + choicePattern + "}, {2}, {0}"); in main()
DMessageTest.java42 package test.java.text.Format.MessageFormat;
80 MessageFormat form = new MessageFormat(testCases[i]); in TestMSGPatternTest()
/libcore/luni/src/test/java/libcore/java/text/
DOldMessageFormatFieldTest.java25 import java.text.MessageFormat;
52 MessageFormat.Field mfield, mfield2; in test_readResolve()
55 mfield = MessageFormat.Field.ARGUMENT; in test_readResolve()
66 mfield2 = (MessageFormat.Field) in.readObject(); in test_readResolve()
93 static class MyMessageFormat extends MessageFormat.Field {
/libcore/support/src/test/java/tests/support/
DSupport_MessageFormat.java21 import java.text.MessageFormat;
23 import java.text.MessageFormat.Field;
48 MessageFormat format = new MessageFormat(pattern, Locale.US); in t_format_with_FieldPosition()
75 MessageFormat format = new MessageFormat(pattern, Locale.US); in t_formatToCharacterIterator()
/libcore/ojluni/src/main/java/java/text/
DMessageFormat.java351 public class MessageFormat extends Format { class
370 public MessageFormat(String pattern) { in MessageFormat() method in MessageFormat
390 public MessageFormat(String pattern, Locale locale) { in MessageFormat() method in MessageFormat
860 MessageFormat temp = new MessageFormat(pattern); in format()
1106 MessageFormat other = (MessageFormat) super.clone(); in clone()
1129 MessageFormat other = (MessageFormat) obj; in equals()
1178 if (this.getClass() != MessageFormat.Field.class) { in readResolve()
1289 subFormatter = new MessageFormat(arg, locale); in subformat()
DSimpleDateFormat.java655 return MessageFormat.format("{0} {1}", dateTimeArgs); in getDateTimeFormat()
/libcore/ojluni/src/test/java/text/Format/NumberFormat/
DBigDecimalParse.java485 MessageFormat mf = new MessageFormat(patterns[i]); in test_Parse_in_MessageFormat_NotParseIntegerOnly()
571 MessageFormat mf = new MessageFormat(patterns[i]); in test_Parse_in_MessageFormat_ParseIntegerOnly()
DBigDecimalFormat.java972 MessageFormat mf = new MessageFormat( in test_Format_in_MessageFormat()
/libcore/ojluni/src/main/java/java/util/logging/
DFormatter.java138 return java.text.MessageFormat.format(format, parameters); in formatMessage()
/libcore/ojluni/src/main/java/javax/security/auth/
DSubject.java31 import java.text.MessageFormat;
1435 MessageFormat form = new MessageFormat(ResourcesMgr.getString
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest.java148 static final java.text.MessageFormat MESSAGE = new java.text.MessageFormat(
DSerializationStressTest4.java30 import java.text.MessageFormat;
1790 objToSave = MessageFormat.Field.ARGUMENT; in test_writeObject_MessageFormat_Field()
DSerializationStressTest3.java1350 ((java.text.MessageFormat) objLoaded).toPattern())); in test_18_116_writeObject()
/libcore/ojluni/src/main/java/sun/util/logging/
DPlatformLogger.java508 return java.text.MessageFormat.format(format, parameters); in formatMessage()
/libcore/ojluni/src/main/java/java/util/
DLocale.java50 import java.text.MessageFormat;
2759 return MessageFormat.format(pattern, s1, s2); in formatList()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DLocale.annotated.java45 import java.text.MessageFormat;
/libcore/ojluni/annotations/hiddenapi/java/util/
DLocale.java292 java.text.MessageFormat format, java.lang.String[] list) { in composeList()
/libcore/
DEXPECTED_UPSTREAM796 ojluni/src/main/java/java/text/MessageFormat.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/…
2146 …luni/src/test/java/text/Format/MessageFormat/Bug6481179.java,jdk17u/jdk-17.0.6-ga,test/jdk/java/te…
2147 …luni/src/test/java/text/Format/MessageFormat/Bug7003643.java,jdk17u/jdk-17.0.6-ga,test/jdk/java/te…
2148 …test/java/text/Format/MessageFormat/MessageFormatsByArgumentIndex.java,jdk17u/jdk-17.0.6-ga,test/j…
2149 …i/src/test/java/text/Format/MessageFormat/MessageRegression.java,jdk17u/jdk-17.0.6-ga,test/jdk/jav…
2150 …luni/src/test/java/text/Format/MessageFormat/MessageTest.java,jdk17u/jdk-17.0.6-ga,test/jdk/java/t…
2151 …luni/src/test/java/text/Format/MessageFormat/bug4492719.java,jdk17u/jdk-17.0.6-ga,test/jdk/java/te…

12