Lines Matching refs:UnicodeString
191 UnicodeString actualPattern(EXPECTED[i].actualPattern, -1, US_INV); in TestPatterns()
192 UnicodeString expectedPattern(EXPECTED[i].expectedPattern, -1, US_INV); in TestPatterns()
212 UnicodeString pattern = generator->getBestPattern(actualPattern, errorCode); in TestPatterns()
222 UnicodeString expectedLocalPattern(EXPECTED[i].expectedLocalPattern, -1, US_INV); in TestPatterns()
223 UnicodeString actualLocalPattern1; in TestPatterns()
224 UnicodeString actualLocalPattern2; in TestPatterns()
254 SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)"zzzz", status); in TestWallyWedel()
283 const UnicodeString* id = ids->snext(status); in TestWallyWedel()
298 UnicodeString dstOffset = (UnicodeString)"" + sign + (hours < 10 ? "0" : "") + in TestWallyWedel()
310 UnicodeString fmtOffset; in TestWallyWedel()
314 UnicodeString *fmtDstOffset = 0; in TestWallyWedel()
318 fmtDstOffset = new UnicodeString(); in TestWallyWedel()
327 logln(UnicodeString() + i + " " + *id + " " + dstOffset + in TestWallyWedel()
333 errln(UnicodeString() + i + " " + *id + " " + dstOffset + in TestWallyWedel()
363 if (!(*fmtA == *fmtB)) errln((UnicodeString)"FAIL"); in TestEquals()
380 …SimpleDateFormat* fullFmt = new SimpleDateFormat((UnicodeString)"EEE MMM dd HH:mm:ss.SSS zzz yyyy … in TestTwoDigitYearDSTParse()
381 …SimpleDateFormat *fmt = new SimpleDateFormat((UnicodeString)"dd-MMM-yy h:mm:ss 'o''clock' a z", Lo… in TestTwoDigitYearDSTParse()
383 UnicodeString* s = new UnicodeString("03-Apr-04 2:20:47 o'clock AM PST", ""); in TestTwoDigitYearDSTParse()
392 UnicodeString str; in TestTwoDigitYearDSTParse()
406 errln((UnicodeString)"FAIL: Should parse to hour " + hour + " but got " + hr); in TestTwoDigitYearDSTParse()
409 errln((UnicodeString)"FAIL: " + (int32_t)status); in TestTwoDigitYearDSTParse()
422 UnicodeString&
423 DateFormatTest::escape(UnicodeString& s) in escape()
425 UnicodeString buf; in escape()
506 UnicodeString buf; in TestFieldPosition()
543 …errln(UnicodeString("Could not create SimpleDateFormat object for locale en_US. Error: " )+ Unicod… in TestFieldPosition()
605 logln((UnicodeString)" Result = " + df->format(aug13, buf.remove())); in TestFieldPosition()
612 UnicodeString field; in TestFieldPosition()
614 assertEquals((UnicodeString)"field #" + i + " " + DATEFORMAT_FIELD_NAMES[i], in TestFieldPosition()
629 UnicodeString field; in TestFieldPosition()
631 assertEquals((UnicodeString)"field #" + i + " " + DATEFORMAT_FIELD_NAMES[i], in TestFieldPosition()
692 …if (U_FAILURE(status)) errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)s… in TestPartialParse994()
703 logln(UnicodeString("Pattern \"") + pat + "\" String \"" + str + "\""); in tryPat994()
709 logln((UnicodeString)"ParseException: " + (int32_t)status); in tryPat994()
710 if (expected != null) errln((UnicodeString)"FAIL: Expected " + dateToString(expected)); in tryPat994()
714 UnicodeString f; in tryPat994()
716 logln(UnicodeString(" parse(") + str + ") -> " + dateToString(date)); in tryPat994()
717 logln((UnicodeString)" format -> " + f); in tryPat994()
719 !(date == expected)) errln((UnicodeString)"FAIL: Expected null");//" + expected); in tryPat994()
720 if (!(f == str)) errln(UnicodeString("FAIL: Expected ") + str); in tryPat994()
743 UnicodeString format("yyyyMMddHHmmssSSS"); in TestRunTogetherPattern985()
744 UnicodeString now, then; in TestRunTogetherPattern985()
757 if (date2 == 0) then = UnicodeString("Parse stopped at ") + pos.getIndex(); in TestRunTogetherPattern985()
760 if (!(date2 == date1)) errln((UnicodeString)"FAIL"); in TestRunTogetherPattern985()
762 …if (U_FAILURE(status)) errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)s… in TestRunTogetherPattern985()
776 UnicodeString myDate; in TestRunTogetherPattern917()
777 fmt = new SimpleDateFormat((UnicodeString)"yyyy/MM/dd", status); in TestRunTogetherPattern917()
786 fmt = new SimpleDateFormat((UnicodeString)"yyyyMMdd", status); in TestRunTogetherPattern917()
790 …if (U_FAILURE(status)) errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)s… in TestRunTogetherPattern917()
796 DateFormatTest::testIt917(SimpleDateFormat* fmt, UnicodeString& str, UDate expected) in testIt917()
799 UnicodeString pattern; in testIt917()
800 logln((UnicodeString)"pattern=" + fmt->toPattern(pattern) + " string=" + str); in testIt917()
810 logln((UnicodeString)"Parsed object: " + dateToString(o.getDate())); in testIt917()
811 … if (!(o.getDate() == expected)) errln((UnicodeString)"FAIL: Expected " + dateToString(expected)); in testIt917()
812 UnicodeString formatted; ((Format*)fmt)->format(o, formatted, status); in testIt917()
813 logln((UnicodeString)"Formatted string: " + formatted); in testIt917()
814 if (!(formatted == str)) errln((UnicodeString)"FAIL: Expected " + str); in testIt917()
815 …if (U_FAILURE(status)) errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)s… in testIt917()
834 UnicodeString pattern; in TestCzechMonths459()
835 logln((UnicodeString)"Pattern " + ((SimpleDateFormat*) fmt)->toPattern(pattern)); in TestCzechMonths459()
838 UnicodeString juneStr; fmt->format(june, juneStr); in TestCzechMonths459()
839 UnicodeString julyStr; fmt->format(july, julyStr); in TestCzechMonths459()
841 logln((UnicodeString)"format(June 15 1997) = " + juneStr); in TestCzechMonths459()
843 UnicodeString s; fmt->format(d, s); in TestCzechMonths459()
845 logln((UnicodeString)" -> parse -> " + s + " (month = " + month + ")"); in TestCzechMonths459()
846 if (month != UCAL_JUNE) errln((UnicodeString)"FAIL: Month should be June"); in TestCzechMonths459()
847 logln((UnicodeString)"format(July 15 1997) = " + julyStr); in TestCzechMonths459()
851 logln((UnicodeString)" -> parse -> " + s + " (month = " + month + ")"); in TestCzechMonths459()
852 if (month != UCAL_JULY) errln((UnicodeString)"FAIL: Month should be July"); in TestCzechMonths459()
856 errln((UnicodeString)"Exception: " + (int32_t)status); in TestCzechMonths459()
870 UnicodeString dateString("1995-040.05:01:29"); in TestLetterDPattern212()
871 UnicodeString bigD("yyyy-DDD.hh:mm:ss"); in TestLetterDPattern212()
872 UnicodeString littleD("yyyy-ddd.hh:mm:ss"); in TestLetterDPattern212()
876 logln((UnicodeString)"dateString= " + dateString); in TestLetterDPattern212()
885 logln((UnicodeString)"Using " + bigD + " -> " + myDate); in TestLetterDPattern212()
886 if (myDate != expBigD) errln((UnicodeString)"FAIL: bigD - Expected " + dateToString(expBigD)); in TestLetterDPattern212()
892 logln((UnicodeString)"Using " + littleD + " -> " + dateToString(myDate)); in TestLetterDPattern212()
893 …if (myDate != expLittleD) errln((UnicodeString)"FAIL: littleD - Expected " + dateToString(expLittl… in TestLetterDPattern212()
895 …if (U_FAILURE(status)) errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)s… in TestLetterDPattern212()
910 logln((UnicodeString)"Test Date: " + dateToString(today)); in TestDayOfYearPattern195()
919 …if (U_FAILURE(status)) errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)s… in TestDayOfYearPattern195()
929 UnicodeString thePat; in tryPattern()
930 logln((UnicodeString)"pattern: " + sdf.toPattern(thePat)); in tryPattern()
931 UnicodeString formatResult; (*(DateFormat*)&sdf).format(d, formatResult); in tryPattern()
932 logln((UnicodeString)" format -> " + formatResult); in tryPattern()
935 logln((UnicodeString)" parse(" + formatResult + ") -> " + dateToString(d2)); in tryPattern()
936 if (d2 != expected) errln((UnicodeString)"FAIL: Expected " + dateToString(expected)); in tryPattern()
937 UnicodeString format2; (*(DateFormat*)&sdf).format(d2, format2); in tryPattern()
938 logln((UnicodeString)" format -> " + format2); in tryPattern()
939 if (!(formatResult == format2)) errln((UnicodeString)"FAIL: Round trip drift"); in tryPattern()
943 errln((UnicodeString)"Error: " + (int32_t)status); in tryPattern()
956 …SimpleDateFormat* formatter = new SimpleDateFormat((UnicodeString)"MM/dd/yyyy 'at' hh:mm:ss a zzz"… in TestQuotePattern161()
963 UnicodeString dateString; ((DateFormat*)formatter)->format(currentTime_1, dateString); in TestQuotePattern161()
964 UnicodeString exp("08/13/1997 at 10:42:28 AM "); in TestQuotePattern161()
965 logln((UnicodeString)"format(" + dateToString(currentTime_1) + ") = " + dateString); in TestQuotePattern161()
966 …if (0 != dateString.compareBetween(0, exp.length(), exp, 0, exp.length())) errln((UnicodeString)"F… in TestQuotePattern161()
968 …if (U_FAILURE(status)) errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)s… in TestQuotePattern161()
993 UnicodeString expected("March 1, 2000 at 1:23:45 AM "); in TestBadInput135()
1005 … UnicodeString prefix = UnicodeString(text) + ", " + dateLook + "/" + timeLook + ": "; in TestBadInput135()
1014 UnicodeString format; in TestBadInput135()
1015 UnicodeString pattern; in TestBadInput135()
1023 …errln((UnicodeString)"FAIL: Parse \"" + text + "\", pattern \"" + pattern + "\", expected " + expe… in TestBadInput135()
1039 errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)status); in TestBadInput135()
1111 UnicodeString thePat; in TestBadInput135a()
1112 logln(UnicodeString("Trying to parse \"") + s + "\" with " + dateParse->toPattern(thePat)); in TestBadInput135a()
1116 errln((UnicodeString)"FAIL: Expected exception during parse"); in TestBadInput135a()
1120 logln((UnicodeString)"Exception during parse: " + (int32_t)status); in TestBadInput135a()
1125 UnicodeString s( inputStrings[i]); in TestBadInput135a()
1134 UnicodeString s1, s2; in TestBadInput135a()
1138 errln((UnicodeString)"ERROR: null result fmt=\"" + in TestBadInput135a()
1144 UnicodeString result; in TestBadInput135a()
1146 …logln((UnicodeString)"Parsed \"" + s + "\" using \"" + dateParse->toPattern(thePat) + "\" to: " + … in TestBadInput135a()
1148 errln((UnicodeString)"FAIL: Expected parse failure, got " + result); in TestBadInput135a()
1150 …errln(UnicodeString("FAIL: Parse \"") + s + UnicodeString("\", expected ") + expected + UnicodeStr… in TestBadInput135a()
1154 errln(UnicodeString("FAIL: Expected ") + expected + " from \"" + in TestBadInput135a()
1160 errln((UnicodeString)"An exception was thrown during parse: " + (int32_t)status); in TestBadInput135a()
1166 errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)status); in TestBadInput135a()
1195 UnicodeString thePat; in parse2DigitYear()
1196 …logln(UnicodeString("Parsing \"") + str + "\" with " + ((SimpleDateFormat*)&fmt)->toPattern(thePat… in parse2DigitYear()
1198 if (d != expected) errln((UnicodeString)"FAIL: Expected " + expected); in parse2DigitYear()
1202 errln((UnicodeString)"FAIL: Got exception"); in parse2DigitYear()
1218 logln((UnicodeString)"Date 1997/3/25 00:00 GMT: " + date); in TestDateFormatZone061()
1219 formatter = new SimpleDateFormat((UnicodeString)"dd-MMM-yyyyy HH:mm", Locale::getUK(), status); in TestDateFormatZone061()
1226 UnicodeString temp; formatter->format(date, temp); in TestDateFormatZone061()
1227 logln((UnicodeString)"Formatted in GMT to: " + temp); in TestDateFormatZone061()
1230 logln((UnicodeString)"Parsed to: " + dateToString(tempDate)); in TestDateFormatZone061()
1231 if (tempDate != date) errln((UnicodeString)"FAIL: Expected " + dateToString(date)); in TestDateFormatZone061()
1235 errln((UnicodeString)"Date Formatter throws: " + (int32_t)status); in TestDateFormatZone061()
1257 UnicodeString testtimezone; in TestDateFormatZone146()
1278 UnicodeString DATA [] = { in TestDateFormatZone146()
1279 UnicodeString("simple format: "), UnicodeString("04/04/97 23:00 GMT"), in TestDateFormatZone146()
1280 UnicodeString("MM/dd/yy HH:mm z"), in TestDateFormatZone146()
1281 … UnicodeString("full format: "), UnicodeString("Friday, April 4, 1997 11:00:00 o'clock PM GMT"), in TestDateFormatZone146()
1282 UnicodeString("EEEE, MMMM d, yyyy h:mm:ss 'o''clock' a z"), in TestDateFormatZone146()
1283 UnicodeString("long format: "), UnicodeString("April 4, 1997 11:00:00 PM GMT"), in TestDateFormatZone146()
1284 UnicodeString("MMMM d, yyyy h:mm:ss a z"), in TestDateFormatZone146()
1285 UnicodeString("default format: "), UnicodeString("04-Apr-97 11:00:00 PM"), in TestDateFormatZone146()
1286 UnicodeString("dd-MMM-yy h:mm:ss a"), in TestDateFormatZone146()
1287 UnicodeString("short format: "), UnicodeString("4/4/97 11:00 PM"), in TestDateFormatZone146()
1288 UnicodeString("M/d/yy h:mm a") in TestDateFormatZone146()
1299 UnicodeString result; in TestDateFormatZone146()
1331 …UnicodeString expectedFRENCH ( "lundi 15 septembre 1997 \\u00E0 00:00:00 heure d\\u2019\\u00E9t\\u… in TestLocaleDateFormat()
1333 UnicodeString expectedUS ( "Monday, September 15, 1997 at 12:00:00 AM Pacific Daylight Time" ); in TestLocaleDateFormat()
1334 logln((UnicodeString)"Date set to : " + dateToString(testDate)); in TestLocaleDateFormat()
1335 UnicodeString out; in TestLocaleDateFormat()
1344 logln((UnicodeString)"Date Formated with French Locale " + out); in TestLocaleDateFormat()
1346 errln((UnicodeString)"FAIL: Expected " + expectedFRENCH); in TestLocaleDateFormat()
1349 logln((UnicodeString)"Date Formated with US Locale " + out); in TestLocaleDateFormat()
1351 errln((UnicodeString)"FAIL: Expected " + expectedUS); in TestLocaleDateFormat()
1362 logln((UnicodeString)"Date set to : " + dateToString(testDate)); in TestFormattingLocaleTimeSeparator()
1380 const UnicodeString expectedArab = UnicodeString( in TestFormattingLocaleTimeSeparator()
1383 const UnicodeString expectedLatn = UnicodeString( in TestFormattingLocaleTimeSeparator()
1386 UnicodeString actualArab; in TestFormattingLocaleTimeSeparator()
1387 UnicodeString actualLatn; in TestFormattingLocaleTimeSeparator()
1402 UnicodeString str; in TestDateFormatCalendar()
1432 errln((UnicodeString)"FAIL: Calendar::createInstance failed with " + in TestDateFormatCalendar()
1439 str = UnicodeString("4/5/2001", ""); in TestDateFormatCalendar()
1443 errln((UnicodeString)"FAIL: DateFormat::parse(4/5/2001) failed at " + in TestDateFormatCalendar()
1449 str = UnicodeString("5:45 PM", ""); in TestDateFormatCalendar()
1453 errln((UnicodeString)"FAIL: DateFormat::parse(17:45) failed at " + in TestDateFormatCalendar()
1461 errln((UnicodeString)"FAIL: cal->getTime() failed with " + u_errorName(ec)); in TestDateFormatCalendar()
1567 SimpleDateFormat f(UnicodeString("Yesterday"), ec); in TestInvalidPattern()
1572 UnicodeString out; in TestInvalidPattern()
1588 UnicodeString str; in TestGreekMay()
1928 const UnicodeString FAIL_STR("parse failure"); in expectParse()
1952 UnicodeString gotstr(FAIL_STR); in expectParse()
1962 UnicodeString expstr(FAIL_STR); in expectParse()
1975 logln((UnicodeString)"Ok: " + input + " x " + in expectParse()
1978 errln((UnicodeString)"FAIL: " + input + " x " + in expectParse()
2015 UnicodeString str, str2; in expect()
2024 UnicodeString currentPat; in expect()
2040 assertEquals((UnicodeString)"\"" + currentPat + "\".format(" + datestr + ")", in expect()
2048 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) { in expect()
2049 assertEquals((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", in expect()
2062 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) { in expect()
2063 assertEquals((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", in expect()
2069 assertEquals((UnicodeString)"\"" + currentPat + "\".format(" + datestr + ")", in expect()
2079 assertEquals((UnicodeString)"\"" + currentPat + "\".format(" + datestr + ")", in expect()
2084 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) { in expect()
2085 assertEquals((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", in expect()
2092 errln((UnicodeString)"FAIL: Invalid control string " + control); in expect()
2119 UnicodeString str, str2; in expectFormat()
2128 UnicodeString currentPat; in expectFormat()
2141 assertEquals((UnicodeString)"\"" + currentPat + "\".format(" + datestr + ")", in expectFormat()
2228 UnicodeString basepat("yy/MM/dd H:mm "); in TestGenericTime()
2241 UnicodeString test; in TestGenericTime()
2244 const UnicodeString times[] = { in TestGenericTime()
2251 logln(UnicodeString("\ntime: ") + d); in TestGenericTime()
2260 errln((UnicodeString)"FAIL: format " + k + in TestGenericTime()
2265 logln((UnicodeString)"OK: format " + k + " parsed ok"); in TestGenericTime()
2268 errln((UnicodeString)"FAIL: format " + k + in TestGenericTime()
2334 UnicodeString test; in TestZTimeZoneParsing()
2344 UnicodeString input; in TestZTimeZoneParsing()
2345 UnicodeString expected_result; in TestZTimeZoneParsing()
2353 UnicodeString result; in TestZTimeZoneParsing()
2390 UnicodeString bannerStr(banner, ""); in TestRelative()
2395 UnicodeString test; in TestRelative()
2425 UnicodeString result; in TestRelative()
2426 UnicodeString normalResult; in TestRelative()
2427 UnicodeString expect; in TestRelative()
2428 UnicodeString parseResult; in TestRelative()
2460 UnicodeString parseFormat; // parse rel->format full in TestRelative()
2463 UnicodeString origFormat; in TestRelative()
2508 UnicodeString result1; in TestRelativeClone()
2514 UnicodeString result2; in TestRelativeClone()
2538 UnicodeString result1; in TestHostClone()
2544 UnicodeString result2; in TestHostClone()
2568 UnicodeString result1; in TestHebrewClone()
2575 UnicodeString result2; in TestHebrewClone()
3411 SimpleDateFormat testfmt(UnicodeString("yyyy-MM-dd'T'HH:mm:ss'Z'"), status); in TestTimeZoneDisplayName()
3417 UnicodeString info[5]; in TestTimeZoneDisplayName()
3419 info[j] = UnicodeString(testLine[j], -1, US_INV); in TestTimeZoneDisplayName()
3429 errln(UnicodeString("Failed to set date: ") + testLine[2]); in TestTimeZoneDisplayName()
3435 UnicodeString result; in TestTimeZoneDisplayName()
3482 UnicodeString buf; in TestRoundtripWithCalendar()
3495 UnicodeString refStr(buf); in TestRoundtripWithCalendar()
3510 … errln((UnicodeString)"FAIL: Different format result with a different calendar for the same time -" in TestRoundtripWithCalendar()
3541 UnicodeString tzid; in TestRoundtripWithCalendar()
3542 …errln((UnicodeString)"FAIL: Different parse result with a different calendar for the same string -" in TestRoundtripWithCalendar()
3553 errln((UnicodeString)"FAIL: " + u_errorName(status)); in TestRoundtripWithCalendar()
3593 SimpleDateFormat *fmt1 = new SimpleDateFormat(UnicodeString("y-M-d"), Locale("ar"), status); in Test6338()
3597 UnicodeString str1; in Test6338()
3604 UnicodeString str11; in Test6338()
3609 errln((UnicodeString)"FAIL: Different dates str1:" + str1 in Test6338()
3617 SimpleDateFormat *fmt2 = new SimpleDateFormat(UnicodeString("y M d"), Locale("ar"), status); in Test6338()
3621 UnicodeString str2; in Test6338()
3628 UnicodeString str22; in Test6338()
3633 errln((UnicodeString)"FAIL: Different dates str1:" + str2 in Test6338()
3641 SimpleDateFormat *fmt3 = new SimpleDateFormat(UnicodeString("y-M-d"), Locale("en-us"), status); in Test6338()
3645 UnicodeString str3; in Test6338()
3652 UnicodeString str33; in Test6338()
3657 errln((UnicodeString)"FAIL: Different dates str1:" + str3 in Test6338()
3665 SimpleDateFormat *fmt4 = new SimpleDateFormat(UnicodeString("y M d"), Locale("en-us"), status); in Test6338()
3669 UnicodeString str4; in Test6338()
3676 UnicodeString str44; in Test6338()
3681 errln((UnicodeString)"FAIL: Different dates str1:" + str4 in Test6338()
3694 UnicodeString strf, strl, strm, strs; in Test6726()
3720 errln((UnicodeString)"FAIL: Improper formatted date: " + strm ); in Test6726()
3724 errln((UnicodeString)"FAIL: Improper formatted date: " + strs); in Test6726()
3770 UnicodeString s1, s2; in Test6880()
3824 UnicodeString datePattern;
3825 UnicodeString dateString;
3832 …{ "", FALSE, TRUE, UnicodeString("y MMMM d HH:mm:ss"), UnicodeString("2009 7 14… in TestNumberAsStringParsing()
3833 …{ "", TRUE, FALSE, UnicodeString("y MMMM d HH:mm:ss"), UnicodeString("2009 7 14… in TestNumberAsStringParsing()
3834 …{ "en", FALSE, FALSE, UnicodeString("MMM d, y"), UnicodeString("Jul 14, 2… in TestNumberAsStringParsing()
3835 …{ "en", TRUE, FALSE, UnicodeString("MMM d, y"), UnicodeString("Jul 14, 2… in TestNumberAsStringParsing()
3836 …{ "en", FALSE, TRUE, UnicodeString("MMM d, y"), UnicodeString("7 14, 200… in TestNumberAsStringParsing()
3837 …{ "en", TRUE, FALSE, UnicodeString("MMM d, y"), UnicodeString("7 14, 200… in TestNumberAsStringParsing()
3838 …{ "ja", FALSE, FALSE, UnicodeString("yyyy/MM/dd"), UnicodeString("2009/07/1… in TestNumberAsStringParsing()
3839 …{ "ja", TRUE, FALSE, UnicodeString("yyyy/MM/dd"), UnicodeString("2009/07/1… in TestNumberAsStringParsing()
3841 …{ "ja", TRUE, FALSE, UnicodeString("yyyy/MMMMM/d"), UnicodeString("2009/7/14… in TestNumberAsStringParsing()
3846 …{ "ko", FALSE, FALSE, UnicodeString("yyyy. M. d."), UnicodeString("2009. 7. … in TestNumberAsStringParsing()
3847 …{ "ko", TRUE, FALSE, UnicodeString("yyyy. M. d."), UnicodeString("2009. 7. … in TestNumberAsStringParsing()
3848 …{ "ko", FALSE, FALSE, UnicodeString("yyyy. MMMMM d."), CharsToUnicodeString("20… in TestNumberAsStringParsing()
3849 …{ "ko", TRUE, FALSE, UnicodeString("yyyy. MMMMM d."), CharsToUnicodeString("20… in TestNumberAsStringParsing()
3854 …{ NULL, FALSE, FALSE, UnicodeString(""), UnicodeString("") … in TestNumberAsStringParsing()
3871 …errln("FAIL, err when expected success: Locale \"" + UnicodeString(itemPtr->localeStr) + "\", leni… in TestNumberAsStringParsing()
3875 …errln("FAIL, expected err but got none: Locale \"" + UnicodeString(itemPtr->localeStr) + "\", leni… in TestNumberAsStringParsing()
3878 UnicodeString formatted; in TestNumberAsStringParsing()
3881 …errln("FAIL, mismatch formatting parsed date: Locale \"" + UnicodeString(itemPtr->localeStr) + "\"… in TestNumberAsStringParsing()
3905 …SimpleDateFormat *fmt1 = new SimpleDateFormat(UnicodeString("GGG yyyy-MM-dd'T'HH:mm:ss'Z"), status… in TestISOEra()
3915 UnicodeString in = data[i]; in TestISOEra()
3922 UnicodeString out; in TestISOEra()
3927 UnicodeString expected = data[i+1]; in TestISOEra()
3929 dataerrln((UnicodeString)"FAIL: " + in + " -> " + out + " expected -> " + expected); in TestISOEra()
3938 UnicodeString pattern ("y\\u5e74M\\u6708d\\u65e5", -1, US_INV ); in TestFormalChineseDate()
3940 UnicodeString override ("y=hanidec;M=hans;d=hans", -1, US_INV ); in TestFormalChineseDate()
3950 UnicodeString result; in TestFormalChineseDate()
3953 …UnicodeString expected = "\\u4e8c\\u3007\\u3007\\u4e5d\\u5e74\\u4e03\\u6708\\u4e8c\\u5341\\u516b\\… in TestFormalChineseDate()
3956 dataerrln((UnicodeString)"FAIL: -> " + result + " expected -> " + expected); in TestFormalChineseDate()
3961 UnicodeString pat1 ("yyyy-MM-dd'T'HH:mm:ss'Z'", -1, US_INV ); in TestFormalChineseDate()
3963 UnicodeString parsedres,expres; in TestFormalChineseDate()
3966 dataerrln((UnicodeString)"FAIL: parsed -> " + parsedres + " expected -> " + expres); in TestFormalChineseDate()
3980 UnicodeString inText("GMT$$$"); in TestStandAloneGMTParse()
3985 …errln((UnicodeString)"FAIL: Incorrect output parse position: actual=" + pos.getIndex() + " expecte… in TestStandAloneGMTParse()
4014 SimpleDateFormat *sdf = new SimpleDateFormat(UnicodeString(TestData[i][0]), status); in TestParsePosition()
4020 UnicodeString input(TestData[i][1]); in TestParsePosition()
4035 …errln(UnicodeString("FAIL: Parsing [") + input + "] with pattern [" + TestData[i][0] + "] returns … in TestParsePosition()
4057 UnicodeString dateString[NUM_TEST_DATES];
4071 …", DateFormat::kLong, { UnicodeString("2012(ren-chen) M04 2"), UnicodeString("2012(ren-chen) … in TestMonthPatterns()
4072 …hinese", DateFormat::kShort, { UnicodeString("2012-04-02"), UnicodeString("2012-04bis-02"), … in TestMonthPatterns()
4073 …hinese", -1, { UnicodeString("29-4-2"), UnicodeString("29-4bis-2"), … in TestMonthPatterns()
4074 …hinese", -2, { UnicodeString("78x29-4-2"), UnicodeString("78x29-4bis-2"), … in TestMonthPatterns()
4075 …hinese", -3, { UnicodeString("ren-chen-4-2"), UnicodeString("ren-chen-4bis-2")… in TestMonthPatterns()
4076 …hinese", -4, { UnicodeString("ren-chen M04 2"), UnicodeString("ren-chen M04bis… in TestMonthPatterns()
4077 …gorian", -3, { UnicodeString("2012-4-22"), UnicodeString("2012-5-22"), … in TestMonthPatterns()
4078 …eFormat::kLong, { UnicodeString("Fourth Month 2, 2012(ren-chen)"), UnicodeString("Fourth Monthbis… in TestMonthPatterns()
4079 …nese", DateFormat::kShort, { UnicodeString("4/2/2012"), UnicodeString("4bis/2/2012"), … in TestMonthPatterns()
4101 …nese", DateFormat::kShort, { UnicodeString("2/4/29"), UnicodeString("2/4bis/29"), … in TestMonthPatterns()
4102 …rmat::kLong, { UnicodeString("Third Monthbis 2, 2012(ren-chen)"), UnicodeString("Fourth Month 2,… in TestMonthPatterns()
4103 …gi", DateFormat::kShort, { UnicodeString("3bis/2/2012"), UnicodeString("4/2/2012"), … in TestMonthPatterns()
4104 …gi", -2, { UnicodeString("78x29-3bis-2"), UnicodeString("78x29-4-2"), … in TestMonthPatterns()
4112 … NULL, 0, { UnicodeString(""), UnicodeString(""), UnicodeSt… in TestMonthPatterns()
4116 …const UnicodeString customPatterns[] = { "y-Ml-d", "G'x'y-Ml-d", "U-M-d", "U MMM d" }; // like old… in TestMonthPatterns()
4137 UnicodeString result; in TestMonthPatterns()
4141 …errln( UnicodeString("FAIL: Chinese calendar format for locale ") + UnicodeString(itemPtr->locale)… in TestMonthPatterns()
4158 …errln( UnicodeString("FAIL: Chinese calendar parse for locale ") + UnicodeString(itemPtr->locale) … in TestMonthPatterns()
4174 errln(UnicodeString("FAIL: Unable to create Calendar for root@calendar=chinese")); in TestMonthPatterns()
4180 UnicodeString pattern;
4182 UnicodeString expectedFormat;
4190 …{ "fr", UnicodeString("MMMM y"), UDISPCTX_CAPITALIZATION_NONE, UnicodeString(… in TestContext()
4192 …{ "fr", UnicodeString("MMMM y"), UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE, UnicodeString(… in TestContext()
4193 …{ "fr", UnicodeString("MMMM y"), UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, UnicodeString(… in TestContext()
4194 …{ "fr", UnicodeString("MMMM y"), UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU, UnicodeString(… in TestContext()
4195 …{ "fr", UnicodeString("MMMM y"), UDISPCTX_CAPITALIZATION_FOR_STANDALONE, UnicodeString(… in TestContext()
4197 …{ "cs", UnicodeString("LLLL y"), UDISPCTX_CAPITALIZATION_NONE, CharsToUnicode… in TestContext()
4199 …{ "cs", UnicodeString("LLLL y"), UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE, CharsToUnicode… in TestContext()
4200 …{ "cs", UnicodeString("LLLL y"), UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, CharsToUnicode… in TestContext()
4201 …{ "cs", UnicodeString("LLLL y"), UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU, CharsToUnicode… in TestContext()
4202 …{ "cs", UnicodeString("LLLL y"), UDISPCTX_CAPITALIZATION_FOR_STANDALONE, CharsToUnicode… in TestContext()
4205 { NULL, UnicodeString(""), (UDisplayContext)0, UnicodeString("") } in TestContext()
4210 … dataerrln(UnicodeString("FAIL: Unable to create Calendar for default timezone and locale.")); in TestContext()
4219 …dataerrln(UnicodeString("FAIL: Unable to create SimpleDateFormat for specified pattern with locale… in TestContext()
4222 UnicodeString result; in TestContext()
4226 … errln(UnicodeString("FAIL: format for locale ") + UnicodeString(itemPtr->locale) + in TestContext()
4250 UnicodeString formattedDate;
4257 UnicodeString pattern; // ignored unless style == DateFormat::kNone
4270 { 0, 0, 0, 0, 0, 0, UnicodeString("") } // terminator in TestNonGregoFmtParse()
4275 { 0, 0, 0, 0, 0, 0, UnicodeString("") } // terminator in TestNonGregoFmtParse()
4280 { 0, 0, 0, 0, 0, 0, UnicodeString("") } // terminator in TestNonGregoFmtParse()
4285 { 0, 0, 0, 0, 0, 0, UnicodeString("") } // terminator in TestNonGregoFmtParse()
4290 { 0, 0, 0, 0, 0, 0, UnicodeString("") } // terminator in TestNonGregoFmtParse()
4293 { 0, 1384, 0, 1, 12, 0, UnicodeString("1 Muh. 1384 AH, 1964") }, in TestNonGregoFmtParse()
4294 { 0, 1436, 0, 1, 12, 0, UnicodeString("1 Muh. 1436 AH, 2014") }, in TestNonGregoFmtParse()
4295 { 0, 1487, 0, 1, 12, 0, UnicodeString("1 Muh. 1487 AH, 2064") }, in TestNonGregoFmtParse()
4296 { 0, 0, 0, 0, 0, 0, UnicodeString("") } // terminator in TestNonGregoFmtParse()
4300 …{ "he@calendar=hebrew", DateFormat::kLong, UnicodeString(""), cafti_he_hebrew_lo… in TestNonGregoFmtParse()
4305 …{ "en@calendar=islamic", DateFormat::kNone, UnicodeString("d MMM y G, r"), cafti_en_islamic_c… in TestNonGregoFmtParse()
4306 { NULL, DateFormat::kNone, UnicodeString(""), NULL } // terminator in TestNonGregoFmtParse()
4336 UnicodeString result; in TestNonGregoFmtParse()
4340 …errln( UnicodeString("FAIL: date format for locale ") + UnicodeString(itemPtr->locale) + ", style … in TestNonGregoFmtParse()
4353 … errln( UnicodeString("FAIL: date parse for locale ") + UnicodeString(itemPtr->locale) + in TestNonGregoFmtParse()
4356 …ppos.getIndex() + " " + year +"-"+month+"-"+day + " status " + UnicodeString(u_errorName(status)) … in TestNonGregoFmtParse()
4370 UnicodeString expectPattern;
4371 UnicodeString expectFormat;
4376 LocalPointer<TimeZone> zone(TimeZone::createTimeZone(UnicodeString("UTC"))); in TestFormatsWithNumberSystems()
4379 …{ "haw@calendar=gregorian", DateFormat::kShort, UnicodeString("d/M/yy"), UnicodeStri… in TestFormatsWithNumberSystems()
4384 { NULL, DateFormat::kNone, UnicodeString(""), UnicodeString("") }, in TestFormatsWithNumberSystems()
4407 UnicodeString getFormat; in TestFormatsWithNumberSystems()
4418 UnicodeString getPattern; in TestFormatsWithNumberSystems()
4445 UnicodeString formattedString; in TestDotAndAtLeniency()
4453 … errln(UnicodeString(" with date-time: dateStyle=") + dateStyle + " timeStyle=" + timeStyle); in TestDotAndAtLeniency()
4456 UnicodeString ds, ts; in TestDotAndAtLeniency()
4459 …errln(UnicodeString(" with date sp sp time: dateStyle=") + dateStyle + " timeStyle=" + timeStyl… in TestDotAndAtLeniency()
4462 UnicodeString plusDot(formattedString); in TestDotAndAtLeniency()
4465 …errln(UnicodeString(" with date plus-dot time: dateStyle=") + dateStyle + " timeStyle=" + timeS… in TestDotAndAtLeniency()
4469 UnicodeString minusDot(formattedString); in TestDotAndAtLeniency()
4472 …errln(UnicodeString(" with date minus-dot time: dateStyle=") + dateStyle + " timeStyle=" + time… in TestDotAndAtLeniency()
4480 UBool DateFormatTest::showParse(DateFormat &format, const UnicodeString &formattedString) { in showParse()
4484 UnicodeString pattern; in showParse()
4498 UnicodeString parseString;
4499 UnicodeString pattern;
4500 UnicodeString expectedResult; // empty string indicates expected error
4509 …{ "en", true, UnicodeString("2008-07 02"), UnicodeString("yyyy-LLLL dd"), Unicod… in TestDateFormatLeniency()
4510 …{ "en", false, UnicodeString("2008-07 02"), UnicodeString("yyyy-LLLL dd"), Unicod… in TestDateFormatLeniency()
4511 …{ "en", true, UnicodeString("2008-Jan 02"), UnicodeString("yyyy-LLL. dd"), Unicod… in TestDateFormatLeniency()
4512 …{ "en", false, UnicodeString("2008-Jan 02"), UnicodeString("yyyy-LLL. dd"), Unicod… in TestDateFormatLeniency()
4513 …{ "en", true, UnicodeString("2008-Jan--02"), UnicodeString("yyyy-MMM' -- 'dd"), Unicod… in TestDateFormatLeniency()
4514 …{ "en", false, UnicodeString("2008-Jan--02"), UnicodeString("yyyy-MMM' -- 'dd"), Unicod… in TestDateFormatLeniency()
4516 …{ NULL, true, UnicodeString(""), UnicodeString(""), Unicod… in TestDateFormatLeniency()
4521 … dataerrln(UnicodeString("FAIL: Unable to create Calendar for default timezone and locale.")); in TestDateFormatLeniency()
4562 UnicodeString formatResult(""); in TestDateFormatLeniency()
4577 UnicodeString parseString;
4578 UnicodeString pattern;
4579 UnicodeString expectedResult; // empty string indicates expected error
4586 …{true, UnicodeString("2013-Sep 13"), UnicodeString("yyyy-MMM dd"), Un… in TestParseMultiPatternMatch()
4587 …{true, UnicodeString("2013-September 14"), UnicodeString("yyyy-MMM dd"), Un… in TestParseMultiPatternMatch()
4588 …{false, UnicodeString("2013-September 15"), UnicodeString("yyyy-MMM dd"), Un… in TestParseMultiPatternMatch()
4589 …{false, UnicodeString("2013-September 16"), UnicodeString("yyyy-MMMM dd"), Un… in TestParseMultiPatternMatch()
4590 …{true, UnicodeString("2013-Sep 17"), UnicodeString("yyyy-LLL dd"), Un… in TestParseMultiPatternMatch()
4591 …{true, UnicodeString("2013-September 18"), UnicodeString("yyyy-LLL dd"), Un… in TestParseMultiPatternMatch()
4592 …{false, UnicodeString("2013-September 19"), UnicodeString("yyyy-LLL dd"), Un… in TestParseMultiPatternMatch()
4593 …{false, UnicodeString("2013-September 20"), UnicodeString("yyyy-LLLL dd"), Un… in TestParseMultiPatternMatch()
4594 …{true, UnicodeString("2013 Sat Sep 21"), UnicodeString("yyyy EEE MMM dd"), Un… in TestParseMultiPatternMatch()
4595 …{true, UnicodeString("2013 Sunday Sep 22"), UnicodeString("yyyy EEE MMM dd"), Un… in TestParseMultiPatternMatch()
4596 …{false, UnicodeString("2013 Monday Sep 23"), UnicodeString("yyyy EEE MMM dd"), Un… in TestParseMultiPatternMatch()
4597 …{false, UnicodeString("2013 Tuesday Sep 24"), UnicodeString("yyyy EEEE MMM dd"), Un… in TestParseMultiPatternMatch()
4598 …{true, UnicodeString("2013 Wed Sep 25"), UnicodeString("yyyy eee MMM dd"), Un… in TestParseMultiPatternMatch()
4599 …{true, UnicodeString("2013 Thu Sep 26"), UnicodeString("yyyy eee MMM dd"), Un… in TestParseMultiPatternMatch()
4600 …{false, UnicodeString("2013 Friday Sep 27"), UnicodeString("yyyy eee MMM dd"), Un… in TestParseMultiPatternMatch()
4601 …{false, UnicodeString("2013 Saturday Sep 28"), UnicodeString("yyyy eeee MMM dd"), Un… in TestParseMultiPatternMatch()
4602 …{true, UnicodeString("2013 Sun Sep 29"), UnicodeString("yyyy ccc MMM dd"), Un… in TestParseMultiPatternMatch()
4603 …{true, UnicodeString("2013 Monday Sep 30"), UnicodeString("yyyy ccc MMM dd"), Un… in TestParseMultiPatternMatch()
4604 …{false, UnicodeString("2013 Sunday Oct 13"), UnicodeString("yyyy ccc MMM dd"), Un… in TestParseMultiPatternMatch()
4605 …{false, UnicodeString("2013 Monday Oct 14"), UnicodeString("yyyy cccc MMM dd"), Un… in TestParseMultiPatternMatch()
4606 …{true, UnicodeString("2013 Oct 15 Q4"), UnicodeString("yyyy MMM dd QQQ"), Un… in TestParseMultiPatternMatch()
4607 …{true, UnicodeString("2013 Oct 16 4th quarter"), UnicodeString("yyyy MMM dd QQQ"), Un… in TestParseMultiPatternMatch()
4608 …{false, UnicodeString("2013 Oct 17 4th quarter"), UnicodeString("yyyy MMM dd QQQ"), Un… in TestParseMultiPatternMatch()
4609 …{false, UnicodeString("2013 Oct 18 Q4"), UnicodeString("yyyy MMM dd QQQ"), Un… in TestParseMultiPatternMatch()
4610 …{true, UnicodeString("2013 Oct 19 Q4"), UnicodeString("yyyy MMM dd qqqq"), Un… in TestParseMultiPatternMatch()
4611 …{true, UnicodeString("2013 Oct 20 4th quarter"), UnicodeString("yyyy MMM dd qqqq"), Un… in TestParseMultiPatternMatch()
4612 …{false, UnicodeString("2013 Oct 21 Q4"), UnicodeString("yyyy MMM dd qqqq"), Un… in TestParseMultiPatternMatch()
4613 …{false, UnicodeString("2013 Oct 22 4th quarter"), UnicodeString("yyyy MMM dd qqqq"), Un… in TestParseMultiPatternMatch()
4614 …{false, UnicodeString("--end--"), UnicodeString(""), Un… in TestParseMultiPatternMatch()
4620 … dataerrln(UnicodeString("FAIL: Unable to create Calendar for default timezone and locale.")); in TestParseMultiPatternMatch()
4626 dataerrln(UnicodeString("FAIL: Unable to create DateFormat")); in TestParseMultiPatternMatch()
4655 UnicodeString formatResult(""); in TestParseMultiPatternMatch()
4720 UnicodeString fields = (UnicodeString) "M"; in TestNumberFormatOverride()
4723 fmt.adoptInsteadAndCheckErrorCode(new SimpleDateFormat((UnicodeString)"MM d", status), status); in TestNumberFormatOverride()
4757 … fmt.adoptInsteadAndCheckErrorCode(new SimpleDateFormat((UnicodeString)"MM d", status), status); in TestNumberFormatOverride()
4762 if (fields == (UnicodeString) "") { // use the one w/o fields in TestNumberFormatOverride()
4764 …} else if (fields == (UnicodeString) "mixed") { // set 1 field at first but then full override, bo… in TestNumberFormatOverride()
4768 fields = (UnicodeString) "M"; in TestNumberFormatOverride()
4773 } else if (fields == (UnicodeString) "Mo"){ // o is invlid field in TestNumberFormatOverride()
4784 UnicodeString result; in TestNumberFormatOverride()
4788 UnicodeString expected = ((UnicodeString)DATA[i][1]).unescape();; in TestNumberFormatOverride()
4802 UnicodeString result; in TestCreateInstanceForSkeleton()
4826 UnicodeString result; in TestCreateInstanceForSkeletonDefault()
4843 UnicodeString result; in TestCreateInstanceForSkeletonWithCalendar()
4872 const UnicodeString *months = sym->getShortMonths(count); in TestDFSCreateForLocaleNonGregorianLocale()
4875 UnicodeString expected("\\u0698\\u0627\\u0646\\u0648\\u06CC\\u0647\\u0654"); // Android-changed in TestDFSCreateForLocaleNonGregorianLocale()
4891 const UnicodeString *months = sym->getShortMonths(count); in TestDFSCreateForLocaleWithCalendarInLocale()
4894 UnicodeString expected("Tishri"); in TestDFSCreateForLocaleWithCalendarInLocale()
4911 UnicodeString result; in TestChangeCalendar()
4938 UnicodeString pattern; in TestPatternFromSkeleton()
4954 SimpleDateFormat sdf(UnicodeString(), errorCode); in TestAmPmMidnightNoon()
4961 UnicodeString out; in TestAmPmMidnightNoon()
4967 sdf.applyPattern(UnicodeString("hh:mm:ss bbb")); in TestAmPmMidnightNoon()
4977 sdf.applyPattern(UnicodeString("hh:mm bbb")); in TestAmPmMidnightNoon()
4985 sdf.applyPattern(UnicodeString("hh bbb")); in TestAmPmMidnightNoon()
4995 sdf.applyPattern(UnicodeString("hh:mm:ss bbbb")); in TestAmPmMidnightNoon()
5005 sdf.applyPattern(UnicodeString("hh:mm bbbb")); in TestAmPmMidnightNoon()
5013 sdf.applyPattern(UnicodeString("hh bbbb")); in TestAmPmMidnightNoon()
5023 sdf.applyPattern(UnicodeString("hh:mm:ss bbbbb")); in TestAmPmMidnightNoon()
5033 sdf.applyPattern(UnicodeString("hh:mm bbbbb")); in TestAmPmMidnightNoon()
5041 sdf.applyPattern(UnicodeString("hh bbbbb")); in TestAmPmMidnightNoon()
5061 SimpleDateFormat sdf(UnicodeString(), errorCode); in TestFlexibleDayPeriod()
5068 UnicodeString out; in TestFlexibleDayPeriod()
5074 sdf.applyPattern(UnicodeString("hh:mm:ss BBB")); in TestFlexibleDayPeriod()
5084 sdf.applyPattern(UnicodeString("hh:mm BBB")); in TestFlexibleDayPeriod()
5092 sdf.applyPattern(UnicodeString("hh BBB")); in TestFlexibleDayPeriod()
5102 sdf.applyPattern(UnicodeString("hh:mm:ss BBBB")); in TestFlexibleDayPeriod()
5112 sdf.applyPattern(UnicodeString("hh:mm BBBB")); in TestFlexibleDayPeriod()
5120 sdf.applyPattern(UnicodeString("hh BBBB")); in TestFlexibleDayPeriod()
5130 sdf.applyPattern(UnicodeString("hh:mm:ss BBBBB")); in TestFlexibleDayPeriod()
5140 sdf.applyPattern(UnicodeString("hh:mm BBBBB")); in TestFlexibleDayPeriod()
5148 sdf.applyPattern(UnicodeString("hh BBBBB")); in TestFlexibleDayPeriod()
5167 UnicodeString out; in TestDayPeriodWithLocales()
5173 SimpleDateFormat sdf(UnicodeString(), Locale::getGermany(), errorCode); in TestDayPeriodWithLocales()
5180 sdf.applyPattern(UnicodeString("hh:mm:ss bbbb")); in TestDayPeriodWithLocales()
5190 sdf = SimpleDateFormat(UnicodeString(), Locale("ee"), errorCode); in TestDayPeriodWithLocales()
5193 sdf.applyPattern(UnicodeString("hh:mm:ss BBBB")); in TestDayPeriodWithLocales()
5195 assertEquals("hh:mm:ss BBBB | 22:00:00 | ee", UnicodeString("10:00:00 z\\u00E3").unescape(), in TestDayPeriodWithLocales()
5197 assertEquals("hh:mm:ss BBBB | 00:00:00 | ee", UnicodeString("12:00:00 z\\u00E3").unescape(), in TestDayPeriodWithLocales()
5199 assertEquals("hh:mm:ss BBBB | 01:00:00 | ee", UnicodeString("01:00:00 z\\u00E3").unescape(), in TestDayPeriodWithLocales()
5203 sdf = SimpleDateFormat(UnicodeString(), Locale("root"), errorCode); in TestDayPeriodWithLocales()
5206 sdf.applyPattern(UnicodeString("hh:mm:ss BBBB")); in TestDayPeriodWithLocales()
5214 sdf = SimpleDateFormat(UnicodeString(), Locale(""), errorCode); in TestDayPeriodWithLocales()
5217 sdf.applyPattern(UnicodeString("hh:mm:ss BBBB")); in TestDayPeriodWithLocales()
5225 sdf = SimpleDateFormat(UnicodeString(), Locale("en_US"), errorCode); in TestDayPeriodWithLocales()
5228 sdf.applyPattern(UnicodeString("hh:mm:ss BBBB")); in TestDayPeriodWithLocales()
5242 sdf = SimpleDateFormat(UnicodeString(), Locale("es_CO"), errorCode); in TestDayPeriodWithLocales()
5245 sdf.applyPattern(UnicodeString("hh:mm:ss BBBB")); in TestDayPeriodWithLocales()
5246 …assertEquals("hh:mm:ss BBBB | 01:00:00 | es_CO", UnicodeString("01:00:00 de la ma\\u00F1ana").unes… in TestDayPeriodWithLocales()
5249 sdf = SimpleDateFormat(UnicodeString(), Locale("es"), errorCode); in TestDayPeriodWithLocales()
5252 sdf.applyPattern(UnicodeString("hh:mm:ss BBBB")); in TestDayPeriodWithLocales()
5258 sdf = SimpleDateFormat(UnicodeString(), Locale("en@calendar=buddhist"), errorCode); in TestDayPeriodWithLocales()
5261 sdf.applyPattern(UnicodeString("hh:mm:ss BBBB")); in TestDayPeriodWithLocales()
5276 UnicodeString out; in TestMinuteSecondFieldsInOddPlaces()
5284 SimpleDateFormat sdf(UnicodeString("hh:mm 'ss' bbbb"), errorCode); in TestMinuteSecondFieldsInOddPlaces()
5298 sdf.applyPattern(UnicodeString("hh:mm 'ss' BBBB")); in TestMinuteSecondFieldsInOddPlaces()
5308 sdf.applyPattern(UnicodeString("hh 'mm ss' bbbb")); in TestMinuteSecondFieldsInOddPlaces()
5317 sdf.applyPattern(UnicodeString("hh 'mm ss' BBBB")); in TestMinuteSecondFieldsInOddPlaces()
5327 sdf.applyPattern(UnicodeString("bbbb hh:mm:ss")); in TestMinuteSecondFieldsInOddPlaces()
5338 sdf.applyPattern(UnicodeString("BBBB hh:mm:ss")); in TestMinuteSecondFieldsInOddPlaces()
5350 sdf.applyPattern(UnicodeString("BBBB hh")); in TestMinuteSecondFieldsInOddPlaces()
5356 sdf.applyPattern(UnicodeString("BBBB hh:mm:'ss'")); in TestMinuteSecondFieldsInOddPlaces()
5362 sdf.applyPattern(UnicodeString("BBBB hh:mm:ss")); in TestMinuteSecondFieldsInOddPlaces()
5385 SimpleDateFormat sdf(UnicodeString(), errorCode); in TestDayPeriodParsing()
5392 UnicodeString out; in TestDayPeriodParsing()
5396 sdf.applyPattern(UnicodeString("yyyy-MM-dd B")); in TestDayPeriodParsing()
5398 k000000, sdf.parse(UnicodeString("2015-11-13 midnight"), errorCode)); in TestDayPeriodParsing()
5400 k120000, sdf.parse(UnicodeString("2015-11-13 noon"), errorCode)); in TestDayPeriodParsing()
5402 k150000, sdf.parse(UnicodeString("2015-11-13 in the afternoon"), errorCode)); in TestDayPeriodParsing()
5404 k193000, sdf.parse(UnicodeString("2015-11-13 in the evening"), errorCode)); in TestDayPeriodParsing()
5406 k013000, sdf.parse(UnicodeString("2015-11-13 at night"), errorCode)); in TestDayPeriodParsing()
5409 sdf.applyPattern(UnicodeString("yyyy-MM-dd hh:mm B")); in TestDayPeriodParsing()
5411 k000000, sdf.parse(UnicodeString("2015-11-13 12:00 midnight"), errorCode)); in TestDayPeriodParsing()
5413 k120000, sdf.parse(UnicodeString("2015-11-13 12:00 noon"), errorCode)); in TestDayPeriodParsing()
5415 k010000, sdf.parse(UnicodeString("2015-11-13 01:00 at night"), errorCode)); in TestDayPeriodParsing()
5417 k130000, sdf.parse(UnicodeString("2015-11-13 01:00 in the afternoon"), errorCode)); in TestDayPeriodParsing()
5419 k090000, sdf.parse(UnicodeString("2015-11-13 09:00 in the morning"), errorCode)); in TestDayPeriodParsing()
5421 k210000, sdf.parse(UnicodeString("2015-11-13 09:00 at night"), errorCode)); in TestDayPeriodParsing()
5425 sdf.applyPattern(UnicodeString("yyyy-MM-dd HH:mm B")); in TestDayPeriodParsing()
5427 k133700, sdf.parse(UnicodeString("2015-11-13 13:37 midnight"), errorCode)); in TestDayPeriodParsing()
5429 k133700, sdf.parse(UnicodeString("2015-11-13 13:37 noon"), errorCode)); in TestDayPeriodParsing()
5431 k133700, sdf.parse(UnicodeString("2015-11-13 13:37 at night"), errorCode)); in TestDayPeriodParsing()
5433 k133700, sdf.parse(UnicodeString("2015-11-13 13:37 in the afternoon"), errorCode)); in TestDayPeriodParsing()
5435 k133700, sdf.parse(UnicodeString("2015-11-13 13:37 in the morning"), errorCode)); in TestDayPeriodParsing()
5437 k133700, sdf.parse(UnicodeString("2015-11-13 13:37 at night"), errorCode)); in TestDayPeriodParsing()
5441 sdf.applyPattern(UnicodeString("yyyy-MM-dd hh:mm B")); in TestDayPeriodParsing()
5443 k000000, sdf.parse(UnicodeString("2015-11-13 00:00 midnight"), errorCode)); in TestDayPeriodParsing()
5445 k120000, sdf.parse(UnicodeString("2015-11-13 00:00 noon"), errorCode)); in TestDayPeriodParsing()
5448 sdf.applyPattern(UnicodeString("yyyy-MM-dd HH:mm B")); in TestDayPeriodParsing()
5450 k003700, sdf.parse(UnicodeString("2015-11-13 00:37 midnight"), errorCode)); in TestDayPeriodParsing()
5452 k003700, sdf.parse(UnicodeString("2015-11-13 00:37 noon"), errorCode)); in TestDayPeriodParsing()
5454 k003700, sdf.parse(UnicodeString("2015-11-13 00:37 at night"), errorCode)); in TestDayPeriodParsing()
5456 k003700, sdf.parse(UnicodeString("2015-11-13 00:37 in the afternoon"), errorCode)); in TestDayPeriodParsing()
5458 k003700, sdf.parse(UnicodeString("2015-11-13 00:37 in the morning"), errorCode)); in TestDayPeriodParsing()
5460 k003700, sdf.parse(UnicodeString("2015-11-13 00:37 at night"), errorCode)); in TestDayPeriodParsing()
5464 sdf.applyPattern(UnicodeString("yyyy-MM-dd HH:mm B")); in TestDayPeriodParsing()
5466 k000000, sdf.parse(UnicodeString("2015-11-13 12:00 midnight"), errorCode)); in TestDayPeriodParsing()
5468 k120000, sdf.parse(UnicodeString("2015-11-13 12:00 noon"), errorCode)); in TestDayPeriodParsing()
5470 k010000, sdf.parse(UnicodeString("2015-11-13 01:00 at night"), errorCode)); in TestDayPeriodParsing()
5472 k130000, sdf.parse(UnicodeString("2015-11-13 01:00 in the afternoon"), errorCode)); in TestDayPeriodParsing()
5474 k090000, sdf.parse(UnicodeString("2015-11-13 09:00 in the morning"), errorCode)); in TestDayPeriodParsing()
5476 k210000, sdf.parse(UnicodeString("2015-11-13 09:00 at night"), errorCode)); in TestDayPeriodParsing()
5480 sdf.applyPattern(UnicodeString("yyyy-MM-dd hh:mm B")); in TestDayPeriodParsing()
5484 k190000, sdf.parse(UnicodeString("2015-11-13 07:00 in the afternoon"), errorCode)); in TestDayPeriodParsing()
5487 k200000, sdf.parse(UnicodeString("2015-11-13 08:00 at night"), errorCode)); in TestDayPeriodParsing()
5492 sdf.applyPattern(UnicodeString("yyyy-MM-dd b")); in TestDayPeriodParsing()
5494 k000000, sdf.parse(UnicodeString("2015-11-13 midnight"), errorCode)); in TestDayPeriodParsing()
5496 k120000, sdf.parse(UnicodeString("2015-11-13 noon"), errorCode)); in TestDayPeriodParsing()
5499 sdf.applyPattern(UnicodeString("yyyy-MM-dd hh:mm b")); in TestDayPeriodParsing()
5501 k010000, sdf.parse(UnicodeString("2015-11-13 01:00 AM"), errorCode)); in TestDayPeriodParsing()
5503 k130000, sdf.parse(UnicodeString("2015-11-13 01:00 PM"), errorCode)); in TestDayPeriodParsing()
5507 k000000, sdf.parse(UnicodeString("2015-11-13 12:00 midnight"), errorCode)); in TestDayPeriodParsing()
5509 k120000, sdf.parse(UnicodeString("2015-11-13 12:00 noon"), errorCode)); in TestDayPeriodParsing()
5513 sdf.applyPattern(UnicodeString("yyyy-MM-dd HH:mm b")); in TestDayPeriodParsing()
5515 k133700, sdf.parse(UnicodeString("2015-11-13 13:37 midnight"), errorCode)); in TestDayPeriodParsing()
5517 k133700, sdf.parse(UnicodeString("2015-11-13 13:37 noon"), errorCode)); in TestDayPeriodParsing()
5521 sdf.applyPattern(UnicodeString("yyyy-MM-dd hh:mm b")); in TestDayPeriodParsing()
5523 k000000, sdf.parse(UnicodeString("2015-11-13 00:00 midnight"), errorCode)); in TestDayPeriodParsing()
5525 k120000, sdf.parse(UnicodeString("2015-11-13 00:00 noon"), errorCode)); in TestDayPeriodParsing()
5528 sdf.applyPattern(UnicodeString("yyyy-MM-dd HH:mm b")); in TestDayPeriodParsing()
5530 k003700, sdf.parse(UnicodeString("2015-11-13 00:37 midnight"), errorCode)); in TestDayPeriodParsing()
5532 k003700, sdf.parse(UnicodeString("2015-11-13 00:37 noon"), errorCode)); in TestDayPeriodParsing()
5536 sdf.applyPattern(UnicodeString("yyyy-MM-dd hh:mm b")); in TestDayPeriodParsing()
5538 k030000, sdf.parse(UnicodeString("2015-11-13 03:00 midnight"), errorCode)); in TestDayPeriodParsing()
5540 k150000, sdf.parse(UnicodeString("2015-11-13 03:00 noon"), errorCode)); in TestDayPeriodParsing()
5551 UnicodeString inDate("4/27/18"); in TestParseRegression13744()