• Home
  • Raw
  • Download

Lines Matching refs:DateFormat

362     DateFormat* fmtA = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::FULL);  in TestEquals()
363 DateFormat* fmtB = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::FULL); in TestEquals()
530 DateFormat* dateFormats[COUNT]; in TestFieldPosition()
531 …dateFormats[0] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::… in TestFieldPosition()
532 …dateFormats[1] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::… in TestFieldPosition()
599 DateFormat* df = dateFormats[j]; in TestFieldPosition()
717 ((DateFormat*)format)->format(date, f); in tryPat994()
755 ((DateFormat*)formatter)->format(date1, now); in TestRunTogetherPattern985()
760 else ((DateFormat*)formatter)->format(date2, then); in TestRunTogetherPattern985()
830 DateFormat* fmt = DateFormat::createDateInstance(DateFormat::FULL, Locale("cs", "", "")); in TestCzechMonths459()
913 SimpleDateFormat* sdf = (SimpleDateFormat*)DateFormat::createDateInstance(); in TestDayOfYearPattern195()
933 UnicodeString formatResult; (*(DateFormat*)&sdf).format(d, formatResult); in tryPattern()
939 UnicodeString format2; (*(DateFormat*)&sdf).format(d2, format2); in tryPattern()
965 UnicodeString dateString; ((DateFormat*)formatter)->format(currentTime_1, dateString); in TestQuotePattern161()
982 DateFormat::EStyle looks[] = { in TestBadInput135()
983 DateFormat::SHORT, DateFormat::MEDIUM, DateFormat::LONG, DateFormat::FULL in TestBadInput135()
990 DateFormat *full = DateFormat::createDateTimeInstance(DateFormat::LONG, DateFormat::LONG); in TestBadInput135()
999 DateFormat::EStyle dateLook = looks[j]; in TestBadInput135()
1001 DateFormat::EStyle timeLook = looks[k]; in TestBadInput135()
1002 DateFormat *df = DateFormat::createDateTimeInstance(dateLook, timeLook); in TestBadInput135()
1147 ((DateFormat*)dateParse)->format(date, result); in TestBadInput135a()
1192 DateFormatTest::parse2DigitYear(DateFormat& fmt, const char* str, UDate expected) in parse2DigitYear()
1218 DateFormat *formatter; in TestDateFormatZone061()
1328 DateFormat *dfFrench = DateFormat::createDateTimeInstance(DateFormat::FULL, in TestLocaleDateFormat()
1329 DateFormat::FULL, Locale::getFrench()); in TestLocaleDateFormat()
1330 DateFormat *dfUS = DateFormat::createDateTimeInstance(DateFormat::FULL, in TestLocaleDateFormat()
1331 DateFormat::FULL, Locale::getUS()); in TestLocaleDateFormat()
1367 const LocalPointer<DateFormat> dfArab(DateFormat::createTimeInstance( in TestFormattingLocaleTimeSeparator()
1368 DateFormat::SHORT, Locale("ar", "EG"))); in TestFormattingLocaleTimeSeparator()
1370 const LocalPointer<DateFormat> dfLatn(DateFormat::createTimeInstance( in TestFormattingLocaleTimeSeparator()
1371 DateFormat::SHORT, Locale("ar", "EG", NULL, "numbers=latn"))); in TestFormattingLocaleTimeSeparator()
1401 DateFormat *date=0, *time=0, *full=0; in TestDateFormatCalendar()
1409 date = DateFormat::createDateInstance(DateFormat::kShort, Locale::getUS()); in TestDateFormatCalendar()
1416 time = DateFormat::createTimeInstance(DateFormat::kShort, Locale::getUS()); in TestDateFormatCalendar()
1423 full = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, in TestDateFormatCalendar()
2398 DateFormat *fullrelative = DateFormat::createDateInstance(DateFormat::kFullRelative, loc); in TestRelative()
2405 DateFormat *full = DateFormat::createDateInstance(DateFormat::kFull , loc); in TestRelative()
2412 DateFormat *en_full = DateFormat::createDateInstance(DateFormat::kFull, en); in TestRelative()
2419DateFormat *en_fulltime = DateFormat::createDateTimeInstance(DateFormat::kFull,DateFormat:… in TestRelative()
2504 DateFormat *full = DateFormat::createDateInstance(DateFormat::kFullRelative, loc); in TestRelativeClone()
2534 DateFormat *full = DateFormat::createDateInstance(DateFormat::kFull, loc); in TestHostClone()
2563 LocalPointer<DateFormat> fmt( in TestHebrewClone()
2564 DateFormat::createDateInstance(DateFormat::kLong, loc)); in TestHebrewClone()
2607 LocalPointer<DateFormat> fmt( in TestDateFormatSymbolsClone()
2608 DateFormat::createDateInstance(DateFormat::kDefault, loc)); in TestDateFormatSymbolsClone()
3487 LocalPointer<DateFormat> datefmt( in TestTimeZoneInLocale()
3488 DateFormat::createDateInstance(DateFormat::kDefault, locale)); in TestTimeZoneInLocale()
3497 LocalPointer<DateFormat> timefmt( in TestTimeZoneInLocale()
3498 DateFormat::createTimeInstance(DateFormat::kDefault, locale)); in TestTimeZoneInLocale()
3508 LocalPointer<DateFormat> datetimefmt( in TestTimeZoneInLocale()
3509 DateFormat::createDateTimeInstance( in TestTimeZoneInLocale()
3510 DateFormat::kDefault, DateFormat::kDefault, locale)); in TestTimeZoneInLocale()
3548 DateFormat *formatters[] = { in TestRoundtripWithCalendar()
3549DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale("en_US")), //calen… in TestRoundtripWithCalendar()
3550DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale("th_TH")), //calen… in TestRoundtripWithCalendar()
3552DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale("ar_EG@calendar=is… in TestRoundtripWithCalendar()
3770 DateFormat* fmtf = DateFormat::createDateTimeInstance(DateFormat::FULL, DateFormat::FULL, loc); in Test6726()
3771 DateFormat* fmtl = DateFormat::createDateTimeInstance(DateFormat::LONG, DateFormat::FULL, loc); in Test6726()
3772DateFormat* fmtm = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::FULL, loc); in Test6726()
3773 DateFormat* fmts = DateFormat::createDateTimeInstance(DateFormat::SHORT, DateFormat::FULL, loc); in Test6726()
3865 DateFormat *fmt = DateFormat::createTimeInstance(DateFormat::kFull, Locale("zh")); in Test6880()
4135 …{ "root@calendar=chinese", DateFormat::kLong, { UnicodeString("2012(ren-chen) M04 2"), Unicod… in TestMonthPatterns()
4136 …{ "root@calendar=chinese", DateFormat::kShort, { UnicodeString("2012-04-02"), UnicodeString(… in TestMonthPatterns()
4142 …{ "en@calendar=chinese", DateFormat::kLong, { UnicodeString("Fourth Month 2, 2012(ren-chen)"… in TestMonthPatterns()
4143 …{ "en@calendar=chinese", DateFormat::kShort, { UnicodeString("4/2/2012"), UnicodeString(… in TestMonthPatterns()
4144 …{ "zh@calendar=chinese", DateFormat::kLong, { CharsToUnicodeString("2012\\u58EC\\u8FB0\\u5E7… in TestMonthPatterns()
4147 { "zh@calendar=chinese", DateFormat::kShort, { CharsToUnicodeString("2012/4/2"), in TestMonthPatterns()
4156 …{ "zh_Hant@calendar=chinese", DateFormat::kLong, { CharsToUnicodeString("2012\\u58EC\\u8FB0\\u5E7… in TestMonthPatterns()
4159 { "zh_Hant@calendar=chinese", DateFormat::kShort, { CharsToUnicodeString("2012/4/2"), in TestMonthPatterns()
4162 …{ "fr@calendar=chinese", DateFormat::kLong, { CharsToUnicodeString("2 s\\u00ECyu\\u00E8 ren-… in TestMonthPatterns()
4165 …{ "fr@calendar=chinese", DateFormat::kShort, { UnicodeString("2/4/29"), UnicodeString(… in TestMonthPatterns()
4166 …{ "en@calendar=dangi", DateFormat::kLong, { UnicodeString("Third Monthbis 2, 2012(ren-chen… in TestMonthPatterns()
4167 …{ "en@calendar=dangi", DateFormat::kShort, { UnicodeString("3bis/2/2012"), UnicodeString(… in TestMonthPatterns()
4169 …{ "ko@calendar=dangi", DateFormat::kLong, { CharsToUnicodeString("\\uC784\\uC9C4\\uB144 \\… in TestMonthPatterns()
4172 … { "ko@calendar=dangi", DateFormat::kShort, { CharsToUnicodeString("29. \\uC7243. 2."), in TestMonthPatterns()
4189 DateFormat * dmft = (itemPtr->style >= 0)? in TestMonthPatterns()
4190 DateFormat::createDateInstance((DateFormat::EStyle)itemPtr->style, locale): in TestMonthPatterns()
4320 DateFormat::EStyle style;
4364 …{ "he@calendar=hebrew", DateFormat::kLong, UnicodeString(""), cafti_he_hebrew_lo… in TestNonGregoFmtParse()
4365 …{ "zh@calendar=chinese", DateFormat::kNone, CharsToUnicodeString("rU\\u5E74MMMd"), … in TestNonGregoFmtParse()
4366 …{ "zh@calendar=chinese", DateFormat::kNone, CharsToUnicodeString("r\\u5E74MMMd"), … in TestNonGregoFmtParse()
4367 …{ "ja@calendar=japanese", DateFormat::kNone, CharsToUnicodeString("r(Gy)\\u5E74M\\u6708d\\u65E5"),… in TestNonGregoFmtParse()
4368 …{ "ja@calendar=japanese", DateFormat::kNone, CharsToUnicodeString("r\\u5E74M\\u6708d\\u65E5"), … in TestNonGregoFmtParse()
4369 …{ "en@calendar=islamic", DateFormat::kNone, UnicodeString("d MMM y G, r"), cafti_en_islamic_c… in TestNonGregoFmtParse()
4370 { NULL, DateFormat::kNone, UnicodeString(""), NULL } // terminator in TestNonGregoFmtParse()
4375 LocalPointer<DateFormat> dfmt; in TestNonGregoFmtParse()
4377 if (itemPtr->style != DateFormat::kNone) { in TestNonGregoFmtParse()
4378 dfmt.adoptInstead(DateFormat::createDateInstance(itemPtr->style, locale)); in TestNonGregoFmtParse()
4431 DateFormat::EStyle style;
4441 …{ "haw@calendar=gregorian", DateFormat::kShort, UnicodeString("d/M/yy"), UnicodeStri… in TestFormatsWithNumberSystems()
4442 …{ "he@calendar=hebrew", DateFormat::kLong, CharsToUnicodeString("d \\u05D1MMMM y"), CharsToUni… in TestFormatsWithNumberSystems()
4443 …{ "zh@calendar=chinese", DateFormat::kLong, CharsToUnicodeString("rU\\u5E74MMMd"), CharsToUni… in TestFormatsWithNumberSystems()
4444 …{ "zh_Hant@calendar=chinese", DateFormat::kLong, CharsToUnicodeString("rU\\u5E74MMMd"), CharsToUni… in TestFormatsWithNumberSystems()
4445 …{ "ja@calendar=chinese", DateFormat::kLong, CharsToUnicodeString("U\\u5E74MMMd\\u65E5"), CharsToUn… in TestFormatsWithNumberSystems()
4446 { NULL, DateFormat::kNone, UnicodeString(""), UnicodeString("") }, in TestFormatsWithNumberSystems()
4464 …LocalPointer<SimpleDateFormat> sdfmt(static_cast<SimpleDateFormat *>(DateFormat::createDateInstanc… in TestFormatsWithNumberSystems()
4499 for (DateFormat::EStyle dateStyle = DateFormat::FULL; dateStyle <= DateFormat::SHORT; in TestDotAndAtLeniency()
4500 dateStyle = static_cast<DateFormat::EStyle>(dateStyle + 1)) { in TestDotAndAtLeniency()
4501 LocalPointer<DateFormat> dateFormat(DateFormat::createDateInstance(dateStyle, locale)); in TestDotAndAtLeniency()
4503 for (DateFormat::EStyle timeStyle = DateFormat::FULL; timeStyle <= DateFormat::SHORT; in TestDotAndAtLeniency()
4504 timeStyle = static_cast<DateFormat::EStyle>(timeStyle + 1)) { in TestDotAndAtLeniency()
4505 … LocalPointer<DateFormat> format(DateFormat::createDateTimeInstance(dateStyle, timeStyle, locale)); in TestDotAndAtLeniency()
4506 … LocalPointer<DateFormat> timeFormat(DateFormat::createTimeInstance(timeStyle, locale)); in TestDotAndAtLeniency()
4542 UBool DateFormatTest::showParse(DateFormat &format, const UnicodeString &formattedString) { in showParse()
4686 DateFormat* sdmft = DateFormat::createDateInstance(); in TestParseMultiPatternMatch()
4730 LocalPointer<DateFormat> dateFormat(DateFormat::createDateInstance()); in TestParseLeniencyAPIs()
4731 DateFormat *fmt = dateFormat.getAlias(); in TestParseLeniencyAPIs()
4863 LocalPointer<DateFormat> fmt(DateFormat::createInstanceForSkeleton( in TestCreateInstanceForSkeleton()
4872 fmt.adoptInstead(DateFormat::createInstanceForSkeleton( in TestCreateInstanceForSkeleton()
4886 LocalPointer<DateFormat> fmt(DateFormat::createInstanceForSkeleton( in TestCreateInstanceForSkeletonDefault()
4900 LocalPointer<DateFormat> fmt( in TestCreateInstanceForSkeletonWithCalendar()
4901 DateFormat::createInstanceForSkeleton( in TestCreateInstanceForSkeletonWithCalendar()
4968 LocalPointer<DateFormat> fmt( in TestChangeCalendar()
4969 DateFormat::createInstanceForSkeleton("yMMMd", en, status)); in TestChangeCalendar()
5028 LocalPointer<DateFormat> fmt( in TestPatternFromSkeleton()
5029 DateFormat::createInstanceForSkeleton( in TestPatternFromSkeleton()
5640 LocalPointer<DateFormat> dfmt(DateFormat::createDateTimeInstance( in TestParseRegression13744()
5641 DateFormat::SHORT, DateFormat::SHORT, Locale("en", "US"))); in TestParseRegression13744()