Home
last modified time | relevance | path

Searched refs:toPattern (Results 1 – 15 of 15) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DMessageFormatTest.java59 assertTrue("Not equal: " + format.toPattern(), format.equals(read)); in checkSerialization()
61 fail("Format: " + format.toPattern() in checkSerialization()
64 fail("Format: " + format.toPattern() in checkSerialization()
401 assertEquals("Found formats", "nothing", format.toPattern()); in test_applyPatternLjava_lang_String()
405 assertEquals("Wrong pattern", "{0}", format.toPattern()); in test_applyPatternLjava_lang_String()
410 assertEquals("Wrong time pattern", "{0,time}", format.toPattern()); in test_applyPatternLjava_lang_String()
415 "{0,time,short}", format.toPattern()); in test_applyPatternLjava_lang_String()
420 "{0,time}", format.toPattern()); in test_applyPatternLjava_lang_String()
425 "{0,time,long}", format.toPattern()); in test_applyPatternLjava_lang_String()
433 "{0,time,full}", format.toPattern()); in test_applyPatternLjava_lang_String()
[all …]
DChoiceFormatTest.java189 String ptrn = f.toPattern(); in test_applyPatternLjava_lang_String()
412 assertEquals("", cf.toPattern()); in test_toPattern()
416 cf.toPattern()); in test_toPattern()
419 String ptrn = mf.toPattern(); in test_toPattern()
423 String pattern = f1.toPattern(); in test_toPattern()
433 ptrn = cf.toPattern(); in test_toPattern()
476 fmt.toPattern()); in testToPatternWithInfinities()
DNumberFormatTest.java130 "#,##0", format.toPattern()); in test_getIntegerInstance()
157 "#,##0", format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
177 String variant = (format.toPattern().indexOf(';') > 0) ? "#,##0;-#,##0" : "#,##0"; in test_getIntegerInstanceLjava_util_Locale()
180 variant, format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
DDateFormatTest.java205 assertEquals(f2.toPattern(), date.toPattern() + " " + time.toPattern()); in testDateTime()
252 assertTrue("Wrong default", f2.toPattern().equals( in testDateTimeLocale()
253 date.toPattern() + " " + time.toPattern())); in testDateTimeLocale()
DSimpleDateFormatTest.java60 assertEquals("Wrong pattern", "yyyy", f2.toPattern()); in test_ConstructorLjava_lang_String()
89 assertEquals("Wrong pattern", "y'y'yy", f2.toPattern()); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
111 assertEquals("Wrong pattern", "'yyyy' MM yy", f2.toPattern()); in test_ConstructorLjava_lang_StringLjava_util_Locale()
132 assertEquals(pattern, f2.toPattern()); in test_applyLocalizedPatternLjava_lang_String()
160 assertEquals("Wrong pattern", "GyMdkHmsSEDFwWahKz", f2.toPattern()); in test_applyPatternLjava_lang_String()
875 assertEquals("Wrong pattern: " + pattern, pattern, f.toPattern()); in test_toPattern()
879 assertTrue("Wrong pattern: " + pattern, f.toPattern().equals(pattern)); in test_toPattern()
883 pattern = f.toPattern(); in test_toPattern()
884 assertTrue("Wrong pattern: " + pattern, f.toPattern().equals(pattern)); in test_toPattern()
889 assertEquals(f2.toPattern(), f2.toLocalizedPattern()); in test_toLocalizedPattern()
DDecimalFormatTest.java872 assertEquals("Wrong pattern 1", "#0.#", format.toPattern()); in test_applyPattern()
874 assertEquals("Wrong pattern 2", "#0.", format.toPattern()); in test_applyPattern()
876 assertEquals("Wrong pattern 3", "#", format.toPattern()); in test_applyPattern()
878 assertEquals("Wrong pattern 4", "#.0", format.toPattern()); in test_applyPattern()
931 String result = decFormat.toPattern(); in test_applyPattern_icu2GroupingSizes()
969 assertEquals("Wrong pattern 1", "#0.#", format.toPattern()); in test_toPattern()
971 assertEquals("Wrong pattern 2", "#0.", format.toPattern()); in test_toPattern()
973 assertEquals("Wrong pattern 3", "#", format.toPattern()); in test_toPattern()
975 assertEquals("Wrong pattern 4", "#.0", format.toPattern()); in test_toPattern()
2564 Assert.assertEquals(format.toPattern() + ": " + value, expected, in format()
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DOldNumberFormatTest.java33 assertEquals("#,##0", format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
43 assertEquals("#,##0", format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
52 String variant = (format.toPattern().indexOf(';') > 0) ? "#,##0;-#,##0" : "#,##0"; in test_getIntegerInstanceLjava_util_Locale()
53 assertEquals(variant, format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
343 "#,##0.###", ((DecimalFormat) format).toPattern()); in test_getInstance()
358 assertEquals("#,##0.###", ((DecimalFormat) format).toPattern()); in test_getInstanceLjava_util_Locale()
381 "#,##0.###", ((DecimalFormat) format).toPattern()); in test_getNumberInstance()
395 assertEquals("#,##0.###", ((DecimalFormat) format).toPattern()); in test_getNumberInstanceLjava_util_Locale()
418 "#,##0%", ((DecimalFormat) format).toPattern()); in test_getPercentInstance()
433 assertEquals("#,##0\u00a0%", ((DecimalFormat) format).toPattern()); in test_getPercentInstanceLjava_util_Locale()
DNumberFormatTest.java73 String patternNI = ((DecimalFormat) numberFormat).toPattern(); in test_getIntegerInstance_ar()
76 String patternII = ((DecimalFormat) integerFormat).toPattern(); in test_getIntegerInstance_ar()
DOldDateFormatTest.java357 String formatPattern = ((SimpleDateFormat) format).toPattern(); in test_parseLString()
/libcore/ojluni/src/main/java/java/text/
DMessageFormat.java522 public String toPattern() { in toPattern() method in MessageFormat
544 result.append(",number,").append(((DecimalFormat)fmt).toPattern()); in toPattern()
546 result.append(",choice,").append(((ChoiceFormat)fmt).toPattern()); in toPattern()
569 result.append(",date,").append(((SimpleDateFormat)fmt).toPattern()); in toPattern()
DChoiceFormat.java259 public String toPattern() { in toPattern() method in ChoiceFormat
DDecimalFormat.java1101 public String toPattern() { in toPattern() method in DecimalFormat
1102 return icuDecimalFormat.toPattern(); in toPattern()
DSimpleDateFormat.java2307 public String toPattern() { in toPattern() method in SimpleDateFormat
2460 String numberPattern = ((DecimalFormat)numberFormat).toPattern(); in checkNegativeNumberExpression()
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp386 pattern = fmt->toPattern(pattern.remove()); in setNumberPatterns()
390 pattern = fmt->toPattern(pattern.remove()); in setNumberPatterns()
394 pattern = fmt->toPattern(pattern.remove()); in setNumberPatterns()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest3.java1349 assertTrue(MSG_TEST_FAILED + objToSave, MESSAGE.toPattern().equals( in test_18_116_writeObject()
1350 ((java.text.MessageFormat) objLoaded).toPattern())); in test_18_116_writeObject()