Home
last modified time | relevance | path

Searched refs:fmt2 (Results 1 – 16 of 16) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Dincaltst.cpp417 …SimpleDateFormat *fmt2 = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"), Locale("en_US@calen… in TestBuddhistFormat() local
423 fmt2->format(aDate, str); in TestBuddhistFormat()
442 delete fmt2; in TestBuddhistFormat()
502 …SimpleDateFormat *fmt2 = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"), Locale("en_US@calen… in TestJapaneseFormat() local
508 fmt2->format(aDate, str); in TestJapaneseFormat()
539 fmt2->format(aDate, str); in TestJapaneseFormat()
563 delete fmt2; in TestJapaneseFormat()
619 …SimpleDateFormat *fmt2 = new SimpleDateFormat(UnicodeString("HH:mm:ss.S MMMM d, yyyy G"), Locale("… in TestJapanese3860() local
645 fmt2->format(aDate, str); in TestJapanese3860()
685 fmt2->format(aDate, str); in TestJapanese3860()
[all …]
Dtchcfmt.cpp480 ChoiceFormat fmt2(PAT, status); in TestClosures() local
497 if (fmt1 != fmt2) { in TestClosures()
504 const double *limits2 = fmt2.getLimits(count2); in TestClosures()
505 const UBool *closures2 = fmt2.getClosures(count2); in TestClosures()
543 ChoiceFormat* FMT[] = { &fmt1, &fmt2 }; in TestClosures()
Dreldatefmttest.cpp583 RelativeDateTimeFormatter fmt2(fmt); in TestEnglishCaps() local
584 fmt3 = fmt2; in TestEnglishCaps()
687 RelativeDateTimeFormatter fmt2(fmt); in TestCustomNumberFormat() local
688 RunTest(fmt2, kEnglishDecimal, UPRV_LENGTHOF(kEnglishDecimal), "en decimal digits"); in TestCustomNumberFormat()
711 RelativeDateTimeFormatter fmt2(fmt); in TestGetters() local
712 fmt3 = fmt2; in TestGetters()
Dtzregts.cpp939 DateFormat* fmt2 = new SimpleDateFormat(UnicodeString("z"), status); in Test4176686() local
941 fmt2->setTimeZone(*z2); // Format uses DST zone in Test4176686()
970 "DateFormat.format(std)/dst zone", fmt2->format(std, k), "GMT+1:30", in Test4176686()
971 "DateFormat.format(dst)/dst zone", fmt2->format(dst, l), "GMT+2:15", in Test4176686()
982 delete fmt2; in Test4176686()
Dtmsgfmt.cpp1411 MessageFormat* fmt2 = NULL; in _testCopyConstructor2() local
1420 fmt2 = new MessageFormat( *fmt1 ); in _testCopyConstructor2()
1423 if (fmt2 == NULL) { in _testCopyConstructor2()
1429 fmt4 = (MessageFormat*) fmt2->clone(); in _testCopyConstructor2()
1441 result = fmt2->format( &fargs, 1, resultStr, fp, status ); in _testCopyConstructor2()
1447 delete fmt2; in _testCopyConstructor2()
Dnumrgts.cpp1714 DecimalFormat *fmt2 = new DecimalFormat(buf, *symbols, status); in Test4122840() local
1723 fmt2->setRoundingIncrement(rounding); in Test4122840()
1724 fmt2->setMinimumFractionDigits(frac); in Test4122840()
1725 fmt2->setMaximumFractionDigits(frac); in Test4122840()
1733 fmt2->format(1.111, result2, pos); in Test4122840()
1740 delete fmt2; in Test4122840()
Dnumfmtst.cpp1266 DecimalFormat fmt2(UnicodeString("0.###E+0"), US, status); in TestExponent() local
1270 expect2(fmt2, n, "1.234E+3"); in TestExponent()
2062 DecimalFormat fmt2(pat, sym, ec); in TestAdoptDecimalFormatSymbols() local
2074 fmt2.setDecimalFormatSymbols(sym2); in TestAdoptDecimalFormatSymbols()
2077 fmt2.format(2350.75, str); in TestAdoptDecimalFormatSymbols()
2095 DecimalFormat fmt2("", sym, ec); in TestPerMill() local
2096 fmt2.applyLocalizedPattern("###.###m", ec); in TestPerMill()
2100 "485.7m", fmt2.format(0.4857, str)); in TestPerMill()
Ddtfmttst.cpp3570 SimpleDateFormat *fmt2 = new SimpleDateFormat(UnicodeString("y M d"), Locale("ar"), status); in Test6338() local
3575 str2 = fmt2->format(dt2, str2); in Test6338()
3578 UDate dt22 = fmt2->parse(str2, status); in Test6338()
3582 str22 = fmt2->format(dt22, str22); in Test6338()
3589 delete fmt2; in Test6338()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DJapaneseTest.java175 …SimpleDateFormat fmt2 = new SimpleDateFormat("HH:mm:ss.S MMMM d, yyyy G", new ULocale("en_US@calen… in Test3860() local
187 String str = fmt2.format(aDate); in Test3860()
205 DateFormat fmt2= DateFormat.getDateInstance(); //DateFormat.LONG, Locale.US); in Test5345parse() local
219 str = fmt2.format(aDate); in Test5345parse()
DChineseTest.java648 DateFormat fmt2 = DateFormat.getDateInstance(ccal2, DateFormat.DEFAULT, ULocale.CHINA); in TestCoverage() local
650 String str2 = fmt2.format(time2); in TestCoverage()
/external/icu/icu4c/source/test/cintltst/
Dcdattst.c1656 UDateFormat* fmt2; in TestOverrideNumberFormat() local
1659fmt2 =udat_open(UDAT_PATTERN, UDAT_PATTERN,"en_US", zoneGMT, -1, pattern, u_strlen(pattern), &stat… in TestOverrideNumberFormat()
1669 udat_adoptNumberFormat(fmt2, overrideFmt2); in TestOverrideNumberFormat()
1678 udat_adoptNumberFormatForFields(fmt2, fields, singleOverrideFmt, &status); in TestOverrideNumberFormat()
1681 udat_adoptNumberFormat(fmt2, overrideFmt2); in TestOverrideNumberFormat()
1683 udat_adoptNumberFormatForFields(fmt2, fields, overrideFmt2, &status); in TestOverrideNumberFormat()
1685 udat_close(fmt2); in TestOverrideNumberFormat()
1690 udat_adoptNumberFormatForFields(fmt2, fields, overrideFmt2, &status); in TestOverrideNumberFormat()
1694 udat_format(fmt2, july022008, ubuf, kUbufMax, NULL, &status); in TestOverrideNumberFormat()
1701 udat_close(fmt2); in TestOverrideNumberFormat()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DBigNumberFormatTest.java33 DecimalFormat fmt2 = new DecimalFormat("0.###E+0", US); in TestExponent() local
36 expect(fmt2, n, "1.234E+3"); in TestExponent()
39 expect(fmt2, "1.234E+3", n); in TestExponent()
DNumberFormatTest.java1003 DecimalFormat fmt2 = new DecimalFormat("0.###E+0", US); in TestExponent() local
1006 expect2(fmt2, n, "1.234E+3"); in TestExponent()
1634 DecimalFormat fmt2 = new DecimalFormat("", sym); in TestPerMill() local
1635 fmt2.applyLocalizedPattern("###.###m"); in TestPerMill()
1637 "485.7m", fmt2.format(0.4857)); in TestPerMill()
3174 DecimalFormat fmt2 = (DecimalFormat)fmt1.clone(); in TestFormatToCharacterIteratorThread() local
3180 Thread t2 = new Thread(new FormatCharItrTestThread(fmt2, 100, res2)); in TestFormatToCharacterIteratorThread()
3678 DecimalFormat fmt2 = null;
3680 fmt2 = (DecimalFormat) NumberFormat.getInstance(new ULocale("en_US@currency=JPY"),
3682 fmt2.setCurrencyUsage(Currency.CurrencyUsage.CASH);
[all …]
DNumberRegression.java999 DecimalFormat fmt2 = new DecimalFormat(buf.toString(), symbols); in Test4122840() local
1006 fmt2.setMaximumFractionDigits(fmt1.getMaximumFractionDigits()); in Test4122840()
1007 fmt2.setMinimumFractionDigits(fmt1.getMinimumFractionDigits()); in Test4122840()
1008 fmt2.setRoundingIncrement(fmt1.getRoundingIncrement()); in Test4122840()
1010 String result2 = fmt2.format(1.111); in Test4122840()
DRbnfTest.java121 RuleBasedNumberFormat fmt2 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage() local
128 if (!fmt0.equals(fmt2)) { in TestCoverage()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRegression.java845 DateFormat fmt2 = new SimpleDateFormat("z"); in Test4176686() local
846 fmt2.setTimeZone(z2); // Format uses DST zone in Test4176686()
874 "DateFormat.format(std)/dst zone", fmt2.format(std), "GMT+1:30", in Test4176686()
875 "DateFormat.format(dst)/dst zone", fmt2.format(dst), "GMT+2:15", in Test4176686()