/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | BigNumberFormatTest.java | 32 DecimalFormat fmt1 = new DecimalFormat("0.###E0", US); in TestExponent() local 35 expect(fmt1, n, "1.234E3"); in TestExponent() 37 expect(fmt1, "1.234E3", n); in TestExponent() 38 expect(fmt1, "1.234E+3", n); // Either format should parse "E+3" in TestExponent()
|
D | NumberRegression.java | 980 DecimalFormat fmt1 = new DecimalFormat(pattern, symbols); in Test4122840() local 982 String result1 = fmt1.format(1.111); in Test4122840() 1006 fmt2.setMaximumFractionDigits(fmt1.getMaximumFractionDigits()); in Test4122840() 1007 fmt2.setMinimumFractionDigits(fmt1.getMinimumFractionDigits()); in Test4122840() 1008 fmt2.setRoundingIncrement(fmt1.getRoundingIncrement()); in Test4122840()
|
D | RbnfTest.java | 121 RuleBasedNumberFormat fmt1 = (RuleBasedNumberFormat)fmt0.clone(); in TestCoverage() local 126 if (!fmt0.equals(fmt1)) { in TestCoverage()
|
D | NumberFormatTest.java | 1404 DecimalFormat fmt1 = new DecimalFormat("0.###E0", US); in TestExponent() local 1407 expect2(fmt1, n, "1.234E3"); in TestExponent() 1409 expect(fmt1, "1.234E+3", n); // Either format should parse "E+3" in TestExponent() 3755 DecimalFormat fmt1 = new DecimalFormat("#0"); in TestFormatToCharacterIteratorThread() local 3756 DecimalFormat fmt2 = (DecimalFormat)fmt1.clone(); in TestFormatToCharacterIteratorThread() 3761 Thread t1 = new Thread(new FormatCharItrTestThread(fmt1, 1, res1)); in TestFormatToCharacterIteratorThread()
|
D | DateFormatTest.java | 3918 SimpleDateFormat fmt1 = new SimpleDateFormat("GGG yyyy-MM-dd'T'HH:mm:ss'Z"); in TestISOEra() local 3930 dt1 = fmt1.parse(in); in TestISOEra() 3939 out = fmt1.format(dt1); in TestISOEra() 4669 … DateFormat fmt1 = DateFormat.getDateTimeInstance(fmtCal, dateStylesList[i], DateFormat.DEFAULT); in Test10632() local 4673 String s1 = fmt1.format(testDates[j]); in Test10632()
|
/external/icu/icu4c/source/test/intltest/ |
D | tchcfmt.cpp | 475 ChoiceFormat fmt1(limits, closures, fmts, 6); in TestClosures() local 488 fmt1.toPattern(str); in TestClosures() 497 if (fmt1 != fmt2) { in TestClosures() 543 ChoiceFormat* FMT[] = { &fmt1, &fmt2 }; in TestClosures()
|
D | tzregts.cpp | 933 DateFormat* fmt1 = new SimpleDateFormat(UnicodeString("z"), status); in Test4176686() local 938 fmt1->setTimeZone(*z1); // Format uses standard zone in Test4176686() 968 "DateFormat.format(std)/std zone", fmt1->format(std, i), "GMT+1:30", in Test4176686() 969 "DateFormat.format(dst)/std zone", fmt1->format(dst, j), "GMT+1:30", in Test4176686() 981 delete fmt1; in Test4176686()
|
D | tmsgfmt.cpp | 1410 MessageFormat* fmt1 = new MessageFormat( formatStr, status ); in _testCopyConstructor2() local 1415 if (fmt1 == NULL) { in _testCopyConstructor2() 1420 fmt2 = new MessageFormat( *fmt1 ); in _testCopyConstructor2() 1421 result = fmt1->format( &fargs, 1, resultStr, fp, status ); in _testCopyConstructor2() 1428 fmt3 = (MessageFormat*) fmt1->clone(); in _testCopyConstructor2() 1440 result = fmt1->format( &fargs, 1, resultStr, fp, status ); in _testCopyConstructor2() 1446 delete fmt1; in _testCopyConstructor2()
|
D | dtfmttst.cpp | 3575 SimpleDateFormat *fmt1 = new SimpleDateFormat(UnicodeString("y-M-d"), Locale("ar"), status); in Test6338() local 3580 str1 = fmt1->format(dt1, str1); in Test6338() 3583 UDate dt11 = fmt1->parse(str1, status); in Test6338() 3587 str11 = fmt1->format(dt11, str11); in Test6338() 3594 delete fmt1; in Test6338() 3887 …SimpleDateFormat *fmt1 = new SimpleDateFormat(UnicodeString("GGG yyyy-MM-dd'T'HH:mm:ss'Z"), status… in TestISOEra() local 3890 if (fmt1 != NULL) { in TestISOEra() 3891 delete fmt1; in TestISOEra() 3900 UDate dt1 = fmt1->parse(in, status); in TestISOEra() 3905 out = fmt1->format(dt1, out); in TestISOEra() [all …]
|
D | numrgts.cpp | 1691 DecimalFormat *fmt1 = new DecimalFormat(pattern, *symbols, status); in Test4122840() local 1696 result1 = fmt1->format(1.111, result1, pos); in Test4122840() 1731 const UChar *currency = fmt1->getCurrency(); in Test4122840() 1757 delete fmt1; in Test4122840()
|
D | numfmtst.cpp | 1711 DecimalFormat fmt1(UnicodeString("0.###E0"), US, status); in TestExponent() local 1716 expect2(fmt1, n, "1.234E3"); in TestExponent() 1718 expect(fmt1, "1.234E+3", n); // Either format should parse "E+3" in TestExponent()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | BigNumberFormatTest.java | 36 DecimalFormat fmt1 = new DecimalFormat("0.###E0", US); in TestExponent() local 39 expect(fmt1, n, "1.234E3"); in TestExponent() 41 expect(fmt1, "1.234E3", n); in TestExponent() 42 expect(fmt1, "1.234E+3", n); // Either format should parse "E+3" in TestExponent()
|
D | NumberRegression.java | 984 DecimalFormat fmt1 = new DecimalFormat(pattern, symbols); in Test4122840() local 986 String result1 = fmt1.format(1.111); in Test4122840() 1010 fmt2.setMaximumFractionDigits(fmt1.getMaximumFractionDigits()); in Test4122840() 1011 fmt2.setMinimumFractionDigits(fmt1.getMinimumFractionDigits()); in Test4122840() 1012 fmt2.setRoundingIncrement(fmt1.getRoundingIncrement()); in Test4122840()
|
D | RbnfTest.java | 125 RuleBasedNumberFormat fmt1 = (RuleBasedNumberFormat)fmt0.clone(); in TestCoverage() local 130 if (!fmt0.equals(fmt1)) { in TestCoverage()
|
D | NumberFormatTest.java | 1408 DecimalFormat fmt1 = new DecimalFormat("0.###E0", US); in TestExponent() local 1411 expect2(fmt1, n, "1.234E3"); in TestExponent() 1413 expect(fmt1, "1.234E+3", n); // Either format should parse "E+3" in TestExponent() 3759 DecimalFormat fmt1 = new DecimalFormat("#0"); in TestFormatToCharacterIteratorThread() local 3760 DecimalFormat fmt2 = (DecimalFormat)fmt1.clone(); in TestFormatToCharacterIteratorThread() 3765 Thread t1 = new Thread(new FormatCharItrTestThread(fmt1, 1, res1)); in TestFormatToCharacterIteratorThread()
|
D | DateFormatTest.java | 3922 SimpleDateFormat fmt1 = new SimpleDateFormat("GGG yyyy-MM-dd'T'HH:mm:ss'Z"); in TestISOEra() local 3934 dt1 = fmt1.parse(in); in TestISOEra() 3943 out = fmt1.format(dt1); in TestISOEra() 4673 … DateFormat fmt1 = DateFormat.getDateTimeInstance(fmtCal, dateStylesList[i], DateFormat.DEFAULT); in Test10632() local 4677 String s1 = fmt1.format(testDates[j]); in Test10632()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneRegression.java | 847 DateFormat fmt1 = new SimpleDateFormat("z"); in Test4176686() local 848 fmt1.setTimeZone(z1); // Format uses standard zone in Test4176686() 876 "DateFormat.format(std)/std zone", fmt1.format(std), "GMT+1:30", in Test4176686() 877 "DateFormat.format(dst)/std zone", fmt1.format(dst), "GMT+1:30", in Test4176686()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneRegression.java | 843 DateFormat fmt1 = new SimpleDateFormat("z"); in Test4176686() local 844 fmt1.setTimeZone(z1); // Format uses standard zone in Test4176686() 872 "DateFormat.format(std)/std zone", fmt1.format(std), "GMT+1:30", in Test4176686() 873 "DateFormat.format(dst)/std zone", fmt1.format(dst), "GMT+1:30", in Test4176686()
|