Lines Matching refs:DateFormat
344 DateFormat* fmtA = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::FULL); in TestEquals()
345 DateFormat* fmtB = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::FULL); in TestEquals()
390 logln(*s + " P> " + ((DateFormat*)fullFmt)->format(d, str)); in TestTwoDigitYearDSTParse()
516 DateFormat* dateFormats[COUNT]; in TestFieldPosition()
517 …dateFormats[0] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::… in TestFieldPosition()
518 …dateFormats[1] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::… in TestFieldPosition()
583 DateFormat* df = dateFormats[j]; in TestFieldPosition()
701 ((DateFormat*)format)->format(date, f); in tryPat994()
739 ((DateFormat*)formatter)->format(date1, now); in TestRunTogetherPattern985()
744 else ((DateFormat*)formatter)->format(date2, then); in TestRunTogetherPattern985()
814 DateFormat* fmt = DateFormat::createDateInstance(DateFormat::FULL, Locale("cs", "", "")); in TestCzechMonths459()
897 SimpleDateFormat* sdf = (SimpleDateFormat*)DateFormat::createDateInstance(); in TestDayOfYearPattern195()
917 UnicodeString formatResult; (*(DateFormat*)&sdf).format(d, formatResult); in tryPattern()
923 UnicodeString format2; (*(DateFormat*)&sdf).format(d2, format2); in tryPattern()
949 UnicodeString dateString; ((DateFormat*)formatter)->format(currentTime_1, dateString); in TestQuotePattern161()
966 DateFormat::EStyle looks[] = { in TestBadInput135()
967 DateFormat::SHORT, DateFormat::MEDIUM, DateFormat::LONG, DateFormat::FULL in TestBadInput135()
974 DateFormat *full = DateFormat::createDateTimeInstance(DateFormat::LONG, DateFormat::LONG); in TestBadInput135()
983 DateFormat::EStyle dateLook = looks[j]; in TestBadInput135()
985 DateFormat::EStyle timeLook = looks[k]; in TestBadInput135()
986 DateFormat *df = DateFormat::createDateTimeInstance(dateLook, timeLook); in TestBadInput135()
1131 ((DateFormat*)dateParse)->format(date, result); in TestBadInput135a()
1176 DateFormatTest::parse2DigitYear(DateFormat& fmt, const char* str, UDate expected) in parse2DigitYear()
1202 DateFormat *formatter; in TestDateFormatZone061()
1279 DateFormat *fmt = new SimpleDateFormat(DATA[i+2], Locale::getEnglish(), status); in TestDateFormatZone146()
1313 DateFormat *dfFrench = DateFormat::createDateTimeInstance(DateFormat::FULL, in TestLocaleDateFormat()
1314 DateFormat::FULL, Locale::getFrench()); in TestLocaleDateFormat()
1315 DateFormat *dfUS = DateFormat::createDateTimeInstance(DateFormat::FULL, in TestLocaleDateFormat()
1316 DateFormat::FULL, Locale::getUS()); in TestLocaleDateFormat()
1352 const LocalPointer<DateFormat> dfArab(DateFormat::createTimeInstance( in TestFormattingLocaleTimeSeparator()
1353 DateFormat::SHORT, Locale("ar"))); in TestFormattingLocaleTimeSeparator()
1355 const LocalPointer<DateFormat> dfLatn(DateFormat::createTimeInstance( in TestFormattingLocaleTimeSeparator()
1356 DateFormat::SHORT, Locale("ar", NULL, NULL, "numbers=latn"))); in TestFormattingLocaleTimeSeparator()
1386 DateFormat *date=0, *time=0, *full=0; in TestDateFormatCalendar()
1394 date = DateFormat::createDateInstance(DateFormat::kShort, Locale::getUS()); in TestDateFormatCalendar()
1401 time = DateFormat::createTimeInstance(DateFormat::kShort, Locale::getUS()); in TestDateFormatCalendar()
1408 full = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, in TestDateFormatCalendar()
2383 DateFormat *fullrelative = DateFormat::createDateInstance(DateFormat::kFullRelative, loc); in TestRelative()
2390 DateFormat *full = DateFormat::createDateInstance(DateFormat::kFull , loc); in TestRelative()
2397 DateFormat *en_full = DateFormat::createDateInstance(DateFormat::kFull, en); in TestRelative()
2404 …DateFormat *en_fulltime = DateFormat::createDateTimeInstance(DateFormat::kFull,DateFormat:… in TestRelative()
2489 DateFormat *full = DateFormat::createDateInstance(DateFormat::kFullRelative, loc); in TestRelativeClone()
2519 DateFormat *full = DateFormat::createDateInstance(DateFormat::kFull, loc); in TestHostClone()
2548 LocalPointer<DateFormat> fmt( in TestHebrewClone()
2549 DateFormat::createDateInstance(DateFormat::kLong, loc)); in TestHebrewClone()
2592 LocalPointer<DateFormat> fmt( in TestDateFormatSymbolsClone()
2593 DateFormat::createDateInstance(DateFormat::kDefault, loc)); in TestDateFormatSymbolsClone()
3454 DateFormat *formatters[] = { in TestRoundtripWithCalendar()
3455 …DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale("en_US")), //calen… in TestRoundtripWithCalendar()
3456 …DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale("th_TH")), //calen… in TestRoundtripWithCalendar()
3458 …DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale("ar_EG@calendar=is… in TestRoundtripWithCalendar()
3680 DateFormat* fmtf = DateFormat::createDateTimeInstance(DateFormat::FULL, DateFormat::FULL, loc); in Test6726()
3681 DateFormat* fmtl = DateFormat::createDateTimeInstance(DateFormat::LONG, DateFormat::FULL, loc); in Test6726()
3682 … DateFormat* fmtm = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::FULL, loc); in Test6726()
3683 DateFormat* fmts = DateFormat::createDateTimeInstance(DateFormat::SHORT, DateFormat::FULL, loc); in Test6726()
3775 DateFormat *fmt = DateFormat::createTimeInstance(DateFormat::kFull, Locale("zh")); in Test6880()
4053 …{ "root@calendar=chinese", DateFormat::kLong, { UnicodeString("2012(ren-chen) M04 2"), Unicod… in TestMonthPatterns()
4054 …{ "root@calendar=chinese", DateFormat::kShort, { UnicodeString("2012-04-02"), UnicodeString(… in TestMonthPatterns()
4060 …{ "en@calendar=chinese", DateFormat::kLong, { UnicodeString("4 2, 2012(ren-chen)"), UnicodeS… in TestMonthPatterns()
4061 …{ "en@calendar=chinese", DateFormat::kShort, { UnicodeString("4/2/2012"), UnicodeString(… in TestMonthPatterns()
4062 …{ "zh@calendar=chinese", DateFormat::kLong, { CharsToUnicodeString("2012\\u58EC\\u8FB0\\u5E7… in TestMonthPatterns()
4065 { "zh@calendar=chinese", DateFormat::kShort, { CharsToUnicodeString("2012-4-2"), in TestMonthPatterns()
4074 …{ "zh_Hant@calendar=chinese", DateFormat::kLong, { CharsToUnicodeString("2012\\u58EC\\u8FB0\\u5E7… in TestMonthPatterns()
4077 { "zh_Hant@calendar=chinese", DateFormat::kShort, { CharsToUnicodeString("2012/4/2"), in TestMonthPatterns()
4080 …{ "fr@calendar=chinese", DateFormat::kLong, { CharsToUnicodeString("2 s\\u00ECyu\\u00E8 ren-… in TestMonthPatterns()
4083 …{ "fr@calendar=chinese", DateFormat::kShort, { UnicodeString("2/4/29"), UnicodeString(… in TestMonthPatterns()
4084 …{ "en@calendar=dangi", DateFormat::kLong, { UnicodeString("3bis 2, 2012(29)"), UnicodeStr… in TestMonthPatterns()
4085 …{ "en@calendar=dangi", DateFormat::kShort, { UnicodeString("3bis/2/2012"), UnicodeString(… in TestMonthPatterns()
4087 …{ "ko@calendar=dangi", DateFormat::kLong, { CharsToUnicodeString("\\uC784\\uC9C4\\uB144 \\… in TestMonthPatterns()
4090 … { "ko@calendar=dangi", DateFormat::kShort, { CharsToUnicodeString("29. \\uC7243. 2."), in TestMonthPatterns()
4107 DateFormat * dmft = (itemPtr->style >= 0)? in TestMonthPatterns()
4108 DateFormat::createDateInstance((DateFormat::EStyle)itemPtr->style, locale): in TestMonthPatterns()
4238 DateFormat::EStyle style;
4282 …{ "he@calendar=hebrew", DateFormat::kLong, UnicodeString(""), cafti_he_hebrew_lo… in TestNonGregoFmtParse()
4283 …{ "zh@calendar=chinese", DateFormat::kNone, CharsToUnicodeString("rU\\u5E74MMMd"), … in TestNonGregoFmtParse()
4284 …{ "zh@calendar=chinese", DateFormat::kNone, CharsToUnicodeString("r\\u5E74MMMd"), … in TestNonGregoFmtParse()
4285 …{ "ja@calendar=japanese", DateFormat::kNone, CharsToUnicodeString("r(Gy)\\u5E74M\\u6708d\\u65E5"),… in TestNonGregoFmtParse()
4286 …{ "ja@calendar=japanese", DateFormat::kNone, CharsToUnicodeString("r\\u5E74M\\u6708d\\u65E5"), … in TestNonGregoFmtParse()
4287 …{ "en@calendar=islamic", DateFormat::kNone, UnicodeString("d MMM y G, r"), cafti_en_islamic_c… in TestNonGregoFmtParse()
4288 { NULL, DateFormat::kNone, UnicodeString(""), NULL } // terminator in TestNonGregoFmtParse()
4293 DateFormat * dfmt = NULL; in TestNonGregoFmtParse()
4295 if (itemPtr->style != DateFormat::kNone) { in TestNonGregoFmtParse()
4296 dfmt = DateFormat::createDateInstance(itemPtr->style, locale); in TestNonGregoFmtParse()
4358 for (DateFormat::EStyle dateStyle = DateFormat::FULL; dateStyle <= DateFormat::SHORT; in TestDotAndAtLeniency()
4359 dateStyle = static_cast<DateFormat::EStyle>(dateStyle + 1)) { in TestDotAndAtLeniency()
4360 LocalPointer<DateFormat> dateFormat(DateFormat::createDateInstance(dateStyle, locale)); in TestDotAndAtLeniency()
4362 for (DateFormat::EStyle timeStyle = DateFormat::FULL; timeStyle <= DateFormat::SHORT; in TestDotAndAtLeniency()
4363 timeStyle = static_cast<DateFormat::EStyle>(timeStyle + 1)) { in TestDotAndAtLeniency()
4364 … LocalPointer<DateFormat> format(DateFormat::createDateTimeInstance(dateStyle, timeStyle, locale)); in TestDotAndAtLeniency()
4365 … LocalPointer<DateFormat> timeFormat(DateFormat::createTimeInstance(timeStyle, locale)); in TestDotAndAtLeniency()
4401 UBool DateFormatTest::showParse(DateFormat &format, const UnicodeString &formattedString) { in showParse()
4545 DateFormat* sdmft = DateFormat::createDateInstance(); in TestParseMultiPatternMatch()
4589 LocalPointer<DateFormat> dateFormat(DateFormat::createDateInstance()); in TestParseLeniencyAPIs()
4590 DateFormat *fmt = dateFormat.getAlias(); in TestParseLeniencyAPIs()
4718 LocalPointer<DateFormat> fmt(DateFormat::createInstanceForSkeleton( in TestCreateInstanceForSkeleton()
4727 fmt.adoptInstead(DateFormat::createInstanceForSkeleton( in TestCreateInstanceForSkeleton()
4741 LocalPointer<DateFormat> fmt(DateFormat::createInstanceForSkeleton( in TestCreateInstanceForSkeletonDefault()
4755 LocalPointer<DateFormat> fmt( in TestCreateInstanceForSkeletonWithCalendar()
4756 DateFormat::createInstanceForSkeleton( in TestCreateInstanceForSkeletonWithCalendar()
4823 LocalPointer<DateFormat> fmt( in TestChangeCalendar()
4824 DateFormat::createInstanceForSkeleton("yMMMd", en, status)); in TestChangeCalendar()