Home
last modified time | relevance | path

Searched refs:applyPattern (Results 1 – 17 of 17) sorted by relevance

/libcore/luni/src/test/java/libcore/java/text/
DOldDecimalFormatTestICU.java43 format.applyPattern("@@@"); in test_sigDigitPatterns()
47 format.applyPattern("@@##"); in test_sigDigitPatterns()
51 format.applyPattern("@@###E0"); in test_sigDigitPatterns()
53 format.applyPattern("0.0###E0"); in test_sigDigitPatterns()
57 format.applyPattern("@00"); in test_sigDigitPatterns()
67 format.applyPattern("*x##,##,#,##0.0#"); in test_paddingPattern()
71 format.applyPattern("$*x#,##0.00"); in test_paddingPattern()
75 format.applyPattern("*\u00e7#0 o''clock"); in test_paddingPattern()
82 format.applyPattern("#0.##*xE0"); in test_paddingPattern()
90 format.applyPattern("##0.## *"); in test_paddingPattern()
[all …]
DDecimalFormatTest.java133 milledf.applyPattern("#,##0\u2030;-#,##0\u2030"); in testFieldPosition()
135 scientificDf.applyPattern("0.###E0"); in testFieldPosition()
330 df.applyPattern(null); in testBug15081434()
336 df.applyPattern(null); in testBug15081434()
/libcore/ojluni/src/test/java/text/Format/NumberFormat/
DBigDecimalFormat.java110 ((DecimalFormat)nf).applyPattern("#,##0.###"); in test_Format_in_NumberFormat_BigDecimal()
273 ((DecimalFormat)nf).applyPattern("#,##0.0"); in test_Format_in_NumberFormat_BigDecimal()
306 ((DecimalFormat)nf).applyPattern("0.###E0"); in test_Format_in_NumberFormat_BigDecimal()
332 ((DecimalFormat)nf).applyPattern("0.###E0"); in test_Format_in_NumberFormat_BigDecimal()
424 ((DecimalFormat)nf).applyPattern("#,##0.###"); in test_Format_in_NumberFormat_BigDecimal()
435 ((DecimalFormat)nf).applyPattern("#,##0.###"); in test_Format_in_NumberFormat_BigDecimal()
450 ((DecimalFormat)nf).applyPattern("00000.###E0"); in test_Format_in_NumberFormat_BigDecimal()
463 ((DecimalFormat)nf).applyPattern("0.###E0"); in test_Format_in_NumberFormat_BigDecimal()
476 ((DecimalFormat)nf).applyPattern("0.###E0"); in test_Format_in_NumberFormat_BigDecimal()
489 ((DecimalFormat)nf).applyPattern("0.###E0"); in test_Format_in_NumberFormat_BigDecimal()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DMessageFormatTest.java392 format.applyPattern("xx {0}"); in test_applyPatternLjava_lang_String()
401 format.applyPattern("nothing"); in test_applyPatternLjava_lang_String()
404 format.applyPattern("{0}"); in test_applyPatternLjava_lang_String()
408 format.applyPattern("{0, \t\u001ftime }"); in test_applyPatternLjava_lang_String()
412 format.applyPattern("{0,Time, Short\n}"); in test_applyPatternLjava_lang_String()
417 format.applyPattern("{0,TIME,\nmedium }"); in test_applyPatternLjava_lang_String()
422 format.applyPattern("{0,time,LONG}"); in test_applyPatternLjava_lang_String()
429 format.applyPattern("{0,time, Full}"); in test_applyPatternLjava_lang_String()
437 format.applyPattern("{0, date}"); in test_applyPatternLjava_lang_String()
441 format.applyPattern("{0, date, short}"); in test_applyPatternLjava_lang_String()
[all …]
DChoiceFormatTest.java144 f.applyPattern("0#0|1#1"); in test_applyPatternLjava_lang_String()
156 f.applyPattern("-1#is negative|0#is zero or fraction|1#is one|1<is more than 1"); in test_applyPatternLjava_lang_String()
164 f.applyPattern("-1#is negative|0#is zero or fraction|-1#is one|1<is more than 1"); in test_applyPatternLjava_lang_String()
172 f.applyPattern("-1is negative|0#is zero or fraction|1#is one|1<is more than 1"); in test_applyPatternLjava_lang_String()
179 f.applyPattern("-1<is negative|0#is zero or fraction|1#is one|1<is more than 1"); in test_applyPatternLjava_lang_String()
187 f.applyPattern("-1#is negative|0#is zero or fraction|1#is one|1<is more than 1"); in test_applyPatternLjava_lang_String()
189 f.applyPattern(str); in test_applyPatternLjava_lang_String()
394 cf.applyPattern(str); in test_toPattern()
DSupport_SimpleDateFormat.java58 format.applyPattern("G GGGG y yy yyyy M MM MMM MMMM d dd ddd " + in t_format_with_FieldPosition()
98 format.applyPattern("h:m z"); in t_format_with_FieldPosition()
125 format.applyPattern("h:m Z z"); in t_format_with_FieldPosition()
141 format.applyPattern("yyyyMMddHHmmss"); in t_formatToCharacterIterator()
144 format.applyPattern("w W dd MMMM yyyy EEEE"); in t_formatToCharacterIterator()
147 format.applyPattern("h:m z"); in t_formatToCharacterIterator()
150 format.applyPattern("h:m Z"); in t_formatToCharacterIterator()
154 …format.applyPattern("G GGGG y yy yyyy M MM MMM MMMM d dd ddd k kk kkk H HH HHH h hh hhh m mmm s ss… in t_formatToCharacterIterator()
DSimpleDateFormatTest.java159 f2.applyPattern("GyMdkHmsSEDFwWahKz"); in test_applyPatternLjava_lang_String()
164 f2.applyPattern("j"); in test_applyPatternLjava_lang_String()
176 f2.applyPattern("a '"); in test_applyPatternLjava_lang_String()
182 f2.applyPattern(null); in test_applyPatternLjava_lang_String()
193 clone.applyPattern("y"); in test_clone()
382 format.applyPattern("'Mkz''':.@5"); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
398 format.applyPattern(pattern); in assertFormat()
497 format.applyPattern("z, zzzz"); in verifyFormatTimezone()
500 format.applyPattern("Z, ZZZZ"); in verifyFormatTimezone()
841 f1.applyPattern("y"); in test_set2DigitYearStartLjava_util_Date()
[all …]
DDecimalFormatTest.java794 format1.applyPattern("'$'1000.0000"); in testConstructor_noArg()
796 format2.applyPattern("'$'1000.0000"); in testConstructor_noArg()
814 format1.applyPattern("'$'0000.0000"); in testConstructor_string()
854 format2.applyPattern("'$'1000.0000"); in testConstructor_stringAndSymbols()
907 format.applyPattern("00.0#"); in test_applyPattern()
913 format.applyPattern(null); in test_applyPattern()
919 format.applyPattern("%#,##,###,####'"); in test_applyPattern()
925 format.applyPattern("#.##0.00"); in test_applyPattern()
955 decFormat.applyPattern(patterns[i]); in test_applyPattern_icu2GroupingSizes()
993 format.applyPattern("#.#"); in test_toPattern()
[all …]
/libcore/ojluni/src/test/java/text/Format/DateFormat/
DSimpleDateFormatPatternTest.java192 new SimpleDateFormat().applyPattern(pattern); in testIllegalArgumentException4()
202 new SimpleDateFormat().applyPattern(pattern); in testIllegalArgumentException_enUS()
236 new SimpleDateFormat().applyPattern(null); in testNullPointerException4()
248 new SimpleDateFormat().applyPattern(pattern); in testValidPattern()
258 new SimpleDateFormat().applyPattern(pattern); in testValidPattern_enUS()
/libcore/ojluni/src/test/java/text/Format/MessageFormat/
DMessageRegression.java84 messageFormatter.applyPattern(pattern[1]); in Test4074764()
92 messageFormatter.applyPattern(pattern[0]); in Test4074764()
143 messageFormatter.applyPattern(pattern1); in Test4031438()
164 messageFormatter.applyPattern(pattern2); in Test4031438()
306 mf.applyPattern(illegalPattern); in Test4114743()
324 mf.applyPattern(pattern); in Test4116444()
384 mf.applyPattern(illegalPattern); in Test4113018()
440 mf.applyPattern(prefix + pattern); in Test4118592()
462 mf.applyPattern("{0,number,#.##}, {0,number,#.#}"); in Test4118594()
/libcore/ojluni/src/main/java/java/text/
DChoiceFormat.java180 public void applyPattern(String newPattern) { in applyPattern() method in ChoiceFormat
321 applyPattern(newPattern); in ChoiceFormat()
DMessageFormat.java372 applyPattern(pattern); in MessageFormat()
392 applyPattern(pattern); in MessageFormat()
439 public void applyPattern(String pattern) { in applyPattern() method in MessageFormat
DDecimalFormat.java3723 public void applyPattern(String pattern) { in applyPattern() method in DecimalFormat
3726 icuDecimalFormat.applyPattern(pattern); in applyPattern()
DSimpleDateFormat.java2922 public void applyPattern(String pattern) in applyPattern() method
/libcore/benchmarks/src/benchmarks/regression/
DDecimalFormatBenchmark.java38 patternInstance.applyPattern(pattern); in format()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest.java189 ((java.text.DecimalFormat) NUMBERFORM).applyPattern("#0.#");
/libcore/api/
Dcurrent.txt10960 method public void applyPattern(String);
11128 method public void applyPattern(String);
11225 method public void applyPattern(String);
11345 method public void applyPattern(String);