• Home
  • Raw
  • Download

Lines Matching refs:UnicodeString

167         UnicodeString actualPattern(EXPECTED[i].actualPattern, -1, US_INV);  in TestPatterns()
168 UnicodeString expectedPattern(EXPECTED[i].expectedPattern, -1, US_INV); in TestPatterns()
188 UnicodeString pattern = generator->getBestPattern(actualPattern, errorCode); in TestPatterns()
198 UnicodeString expectedLocalPattern(EXPECTED[i].expectedLocalPattern, -1, US_INV); in TestPatterns()
199 UnicodeString actualLocalPattern1; in TestPatterns()
200 UnicodeString actualLocalPattern2; in TestPatterns()
230 SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)"zzzz", status); in TestWallyWedel()
259 const UnicodeString* id = ids->snext(status); in TestWallyWedel()
274 UnicodeString dstOffset = (UnicodeString)"" + sign + (hours < 10 ? "0" : "") + in TestWallyWedel()
286 UnicodeString fmtOffset; in TestWallyWedel()
290 UnicodeString *fmtDstOffset = 0; in TestWallyWedel()
294 fmtDstOffset = new UnicodeString(); in TestWallyWedel()
303 logln(UnicodeString() + i + " " + *id + " " + dstOffset + in TestWallyWedel()
309 errln(UnicodeString() + i + " " + *id + " " + dstOffset + in TestWallyWedel()
339 if (!(*fmtA == *fmtB)) errln((UnicodeString)"FAIL"); in TestEquals()
356 …SimpleDateFormat* fullFmt = new SimpleDateFormat((UnicodeString)"EEE MMM dd HH:mm:ss.SSS zzz yyyy … in TestTwoDigitYearDSTParse()
357 …SimpleDateFormat *fmt = new SimpleDateFormat((UnicodeString)"dd-MMM-yy h:mm:ss 'o''clock' a z", Lo… in TestTwoDigitYearDSTParse()
359 UnicodeString* s = new UnicodeString("03-Apr-04 2:20:47 o'clock AM PST", ""); in TestTwoDigitYearDSTParse()
368 UnicodeString str; in TestTwoDigitYearDSTParse()
382 errln((UnicodeString)"FAIL: Should parse to hour " + hour + " but got " + hr); in TestTwoDigitYearDSTParse()
385 errln((UnicodeString)"FAIL: " + (int32_t)status); in TestTwoDigitYearDSTParse()
398 UnicodeString&
399 DateFormatTest::escape(UnicodeString& s) in escape()
401 UnicodeString buf; in escape()
471 UnicodeString buf; in TestFieldPosition()
504 …errln(UnicodeString("Could not create SimpleDateFormat object for locale en_US. Error: " )+ Unicod… in TestFieldPosition()
541 logln((UnicodeString)" Result = " + df->format(aug13, buf.remove())); in TestFieldPosition()
548 UnicodeString field; in TestFieldPosition()
550 assertEquals((UnicodeString)"field #" + i + " " + DATEFORMAT_FIELD_NAMES[i], in TestFieldPosition()
565 UnicodeString field; in TestFieldPosition()
567 assertEquals((UnicodeString)"field #" + i + " " + DATEFORMAT_FIELD_NAMES[i], in TestFieldPosition()
628 …if (U_FAILURE(status)) errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)s… in TestPartialParse994()
639 logln(UnicodeString("Pattern \"") + pat + "\" String \"" + str + "\""); in tryPat994()
645 logln((UnicodeString)"ParseException: " + (int32_t)status); in tryPat994()
646 if (expected != null) errln((UnicodeString)"FAIL: Expected " + dateToString(expected)); in tryPat994()
650 UnicodeString f; in tryPat994()
652 logln(UnicodeString(" parse(") + str + ") -> " + dateToString(date)); in tryPat994()
653 logln((UnicodeString)" format -> " + f); in tryPat994()
655 !(date == expected)) errln((UnicodeString)"FAIL: Expected null");//" + expected); in tryPat994()
656 if (!(f == str)) errln(UnicodeString("FAIL: Expected ") + str); in tryPat994()
679 UnicodeString format("yyyyMMddHHmmssSSS"); in TestRunTogetherPattern985()
680 UnicodeString now, then; in TestRunTogetherPattern985()
696 if (!(date2 == date1)) errln((UnicodeString)"FAIL"); in TestRunTogetherPattern985()
698 …if (U_FAILURE(status)) errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)s… in TestRunTogetherPattern985()
712 UnicodeString myDate; in TestRunTogetherPattern917()
713 fmt = new SimpleDateFormat((UnicodeString)"yyyy/MM/dd", status); in TestRunTogetherPattern917()
722 fmt = new SimpleDateFormat((UnicodeString)"yyyyMMdd", status); in TestRunTogetherPattern917()
726 …if (U_FAILURE(status)) errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)s… in TestRunTogetherPattern917()
732 DateFormatTest::testIt917(SimpleDateFormat* fmt, UnicodeString& str, UDate expected) in testIt917()
735 UnicodeString pattern; in testIt917()
736 logln((UnicodeString)"pattern=" + fmt->toPattern(pattern) + " string=" + str); in testIt917()
746 logln((UnicodeString)"Parsed object: " + dateToString(o.getDate())); in testIt917()
747 … if (!(o.getDate() == expected)) errln((UnicodeString)"FAIL: Expected " + dateToString(expected)); in testIt917()
748 UnicodeString formatted; ((Format*)fmt)->format(o, formatted, status); in testIt917()
749 logln((UnicodeString)"Formatted string: " + formatted); in testIt917()
750 if (!(formatted == str)) errln((UnicodeString)"FAIL: Expected " + str); in testIt917()
751 …if (U_FAILURE(status)) errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)s… in testIt917()
770 UnicodeString pattern; in TestCzechMonths459()
771 logln((UnicodeString)"Pattern " + ((SimpleDateFormat*) fmt)->toPattern(pattern)); in TestCzechMonths459()
774 UnicodeString juneStr; fmt->format(june, juneStr); in TestCzechMonths459()
775 UnicodeString julyStr; fmt->format(july, julyStr); in TestCzechMonths459()
777 logln((UnicodeString)"format(June 15 1997) = " + juneStr); in TestCzechMonths459()
779 UnicodeString s; fmt->format(d, s); in TestCzechMonths459()
781 logln((UnicodeString)" -> parse -> " + s + " (month = " + month + ")"); in TestCzechMonths459()
782 if (month != UCAL_JUNE) errln((UnicodeString)"FAIL: Month should be June"); in TestCzechMonths459()
783 logln((UnicodeString)"format(July 15 1997) = " + julyStr); in TestCzechMonths459()
787 logln((UnicodeString)" -> parse -> " + s + " (month = " + month + ")"); in TestCzechMonths459()
788 if (month != UCAL_JULY) errln((UnicodeString)"FAIL: Month should be July"); in TestCzechMonths459()
792 errln((UnicodeString)"Exception: " + (int32_t)status); in TestCzechMonths459()
806 UnicodeString dateString("1995-040.05:01:29"); in TestLetterDPattern212()
807 UnicodeString bigD("yyyy-DDD.hh:mm:ss"); in TestLetterDPattern212()
808 UnicodeString littleD("yyyy-ddd.hh:mm:ss"); in TestLetterDPattern212()
812 logln((UnicodeString)"dateString= " + dateString); in TestLetterDPattern212()
821 logln((UnicodeString)"Using " + bigD + " -> " + myDate); in TestLetterDPattern212()
822 if (myDate != expBigD) errln((UnicodeString)"FAIL: bigD - Expected " + dateToString(expBigD)); in TestLetterDPattern212()
828 logln((UnicodeString)"Using " + littleD + " -> " + dateToString(myDate)); in TestLetterDPattern212()
829 …if (myDate != expLittleD) errln((UnicodeString)"FAIL: littleD - Expected " + dateToString(expLittl… in TestLetterDPattern212()
831 …if (U_FAILURE(status)) errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)s… in TestLetterDPattern212()
846 logln((UnicodeString)"Test Date: " + dateToString(today)); in TestDayOfYearPattern195()
855 …if (U_FAILURE(status)) errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)s… in TestDayOfYearPattern195()
865 UnicodeString thePat; in tryPattern()
866 logln((UnicodeString)"pattern: " + sdf.toPattern(thePat)); in tryPattern()
867 UnicodeString formatResult; (*(DateFormat*)&sdf).format(d, formatResult); in tryPattern()
868 logln((UnicodeString)" format -> " + formatResult); in tryPattern()
871 logln((UnicodeString)" parse(" + formatResult + ") -> " + dateToString(d2)); in tryPattern()
872 if (d2 != expected) errln((UnicodeString)"FAIL: Expected " + dateToString(expected)); in tryPattern()
873 UnicodeString format2; (*(DateFormat*)&sdf).format(d2, format2); in tryPattern()
874 logln((UnicodeString)" format -> " + format2); in tryPattern()
875 if (!(formatResult == format2)) errln((UnicodeString)"FAIL: Round trip drift"); in tryPattern()
879 errln((UnicodeString)"Error: " + (int32_t)status); in tryPattern()
892 …SimpleDateFormat* formatter = new SimpleDateFormat((UnicodeString)"MM/dd/yyyy 'at' hh:mm:ss a zzz"… in TestQuotePattern161()
899 UnicodeString dateString; ((DateFormat*)formatter)->format(currentTime_1, dateString); in TestQuotePattern161()
900 UnicodeString exp("08/13/1997 at 10:42:28 AM "); in TestQuotePattern161()
901 logln((UnicodeString)"format(" + dateToString(currentTime_1) + ") = " + dateString); in TestQuotePattern161()
902 …if (0 != dateString.compareBetween(0, exp.length(), exp, 0, exp.length())) errln((UnicodeString)"F… in TestQuotePattern161()
904 …if (U_FAILURE(status)) errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)s… in TestQuotePattern161()
929 UnicodeString expected("March 1, 2000 at 1:23:45 AM "); in TestBadInput135()
941UnicodeString prefix = UnicodeString(text) + ", " + dateLook + "/" + timeLook + ": "; in TestBadInput135()
950 UnicodeString format; in TestBadInput135()
951 UnicodeString pattern; in TestBadInput135()
959 …errln((UnicodeString)"FAIL: Parse \"" + text + "\", pattern \"" + pattern + "\", expected " + expe… in TestBadInput135()
975 errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)status); in TestBadInput135()
1047 UnicodeString thePat; in TestBadInput135a()
1048 logln(UnicodeString("Trying to parse \"") + s + "\" with " + dateParse->toPattern(thePat)); in TestBadInput135a()
1052 errln((UnicodeString)"FAIL: Expected exception during parse"); in TestBadInput135a()
1056 logln((UnicodeString)"Exception during parse: " + (int32_t)status); in TestBadInput135a()
1061 UnicodeString s( inputStrings[i]); in TestBadInput135a()
1070 UnicodeString s1, s2; in TestBadInput135a()
1074 errln((UnicodeString)"ERROR: null result fmt=\"" + in TestBadInput135a()
1080 UnicodeString result; in TestBadInput135a()
1082 …logln((UnicodeString)"Parsed \"" + s + "\" using \"" + dateParse->toPattern(thePat) + "\" to: " + … in TestBadInput135a()
1084 errln((UnicodeString)"FAIL: Expected parse failure, got " + result); in TestBadInput135a()
1086 …errln(UnicodeString("FAIL: Parse \"") + s + UnicodeString("\", expected ") + expected + UnicodeStr… in TestBadInput135a()
1090 errln(UnicodeString("FAIL: Expected ") + expected + " from \"" + in TestBadInput135a()
1096 errln((UnicodeString)"An exception was thrown during parse: " + (int32_t)status); in TestBadInput135a()
1102 errln((UnicodeString)"FAIL: UErrorCode received during test: " + (int32_t)status); in TestBadInput135a()
1131 UnicodeString thePat; in parse2DigitYear()
1132 …logln(UnicodeString("Parsing \"") + str + "\" with " + ((SimpleDateFormat*)&fmt)->toPattern(thePat… in parse2DigitYear()
1134 if (d != expected) errln((UnicodeString)"FAIL: Expected " + expected); in parse2DigitYear()
1138 errln((UnicodeString)"FAIL: Got exception"); in parse2DigitYear()
1154 logln((UnicodeString)"Date 1997/3/25 00:00 GMT: " + date); in TestDateFormatZone061()
1155 formatter = new SimpleDateFormat((UnicodeString)"dd-MMM-yyyyy HH:mm", Locale::getUK(), status); in TestDateFormatZone061()
1162 UnicodeString temp; formatter->format(date, temp); in TestDateFormatZone061()
1163 logln((UnicodeString)"Formatted in GMT to: " + temp); in TestDateFormatZone061()
1166 logln((UnicodeString)"Parsed to: " + dateToString(tempDate)); in TestDateFormatZone061()
1167 if (tempDate != date) errln((UnicodeString)"FAIL: Expected " + dateToString(date)); in TestDateFormatZone061()
1171 errln((UnicodeString)"Date Formatter throws: " + (int32_t)status); in TestDateFormatZone061()
1193 UnicodeString testtimezone; in TestDateFormatZone146()
1214 UnicodeString DATA [] = { in TestDateFormatZone146()
1215 UnicodeString("simple format: "), UnicodeString("04/04/97 23:00 GMT"), in TestDateFormatZone146()
1216 UnicodeString("MM/dd/yy HH:mm z"), in TestDateFormatZone146()
1217UnicodeString("full format: "), UnicodeString("Friday, April 4, 1997 11:00:00 o'clock PM GMT"), in TestDateFormatZone146()
1218 UnicodeString("EEEE, MMMM d, yyyy h:mm:ss 'o''clock' a z"), in TestDateFormatZone146()
1219 UnicodeString("long format: "), UnicodeString("April 4, 1997 11:00:00 PM GMT"), in TestDateFormatZone146()
1220 UnicodeString("MMMM d, yyyy h:mm:ss a z"), in TestDateFormatZone146()
1221 UnicodeString("default format: "), UnicodeString("04-Apr-97 11:00:00 PM"), in TestDateFormatZone146()
1222 UnicodeString("dd-MMM-yy h:mm:ss a"), in TestDateFormatZone146()
1223 UnicodeString("short format: "), UnicodeString("4/4/97 11:00 PM"), in TestDateFormatZone146()
1224 UnicodeString("M/d/yy h:mm a") in TestDateFormatZone146()
1235 UnicodeString result; in TestDateFormatZone146()
1267UnicodeString expectedFRENCH ( "lundi 15 septembre 1997 00:00:00 heure avanc\\u00E9e du Pacifique"… in TestLocaleDateFormat()
1269 UnicodeString expectedUS ( "Monday, September 15, 1997 at 12:00:00 AM Pacific Daylight Time" ); in TestLocaleDateFormat()
1270 logln((UnicodeString)"Date set to : " + dateToString(testDate)); in TestLocaleDateFormat()
1271 UnicodeString out; in TestLocaleDateFormat()
1280 logln((UnicodeString)"Date Formated with French Locale " + out); in TestLocaleDateFormat()
1282 errln((UnicodeString)"FAIL: Expected " + expectedFRENCH); in TestLocaleDateFormat()
1285 logln((UnicodeString)"Date Formated with US Locale " + out); in TestLocaleDateFormat()
1287 errln((UnicodeString)"FAIL: Expected " + expectedUS); in TestLocaleDateFormat()
1298 UnicodeString str; in TestDateFormatCalendar()
1328 errln((UnicodeString)"FAIL: Calendar::createInstance failed with " + in TestDateFormatCalendar()
1335 str = UnicodeString("4/5/2001", ""); in TestDateFormatCalendar()
1339 errln((UnicodeString)"FAIL: DateFormat::parse(4/5/2001) failed at " + in TestDateFormatCalendar()
1345 str = UnicodeString("5:45 PM", ""); in TestDateFormatCalendar()
1349 errln((UnicodeString)"FAIL: DateFormat::parse(17:45) failed at " + in TestDateFormatCalendar()
1357 errln((UnicodeString)"FAIL: cal->getTime() failed with " + u_errorName(ec)); in TestDateFormatCalendar()
1464 SimpleDateFormat f(UnicodeString("Yesterday"), ec); in TestInvalidPattern()
1469 UnicodeString out; in TestInvalidPattern()
1485 UnicodeString str; in TestGreekMay()
1778 const UnicodeString FAIL_STR("parse failure"); in expectParse()
1802 UnicodeString gotstr(FAIL_STR); in expectParse()
1812 UnicodeString expstr(FAIL_STR); in expectParse()
1825 logln((UnicodeString)"Ok: " + input + " x " + in expectParse()
1828 errln((UnicodeString)"FAIL: " + input + " x " + in expectParse()
1865 UnicodeString str, str2; in expect()
1874 UnicodeString currentPat; in expect()
1890 assertEquals((UnicodeString)"\"" + currentPat + "\".format(" + datestr + ")", in expect()
1898 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) { in expect()
1899 assertEquals((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", in expect()
1912 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) { in expect()
1913 assertEquals((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", in expect()
1919 assertEquals((UnicodeString)"\"" + currentPat + "\".format(" + datestr + ")", in expect()
1929 assertEquals((UnicodeString)"\"" + currentPat + "\".format(" + datestr + ")", in expect()
1934 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) { in expect()
1935 assertEquals((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", in expect()
1942 errln((UnicodeString)"FAIL: Invalid control string " + control); in expect()
1969 UnicodeString str, str2; in expectFormat()
1978 UnicodeString currentPat; in expectFormat()
1991 assertEquals((UnicodeString)"\"" + currentPat + "\".format(" + datestr + ")", in expectFormat()
2078 UnicodeString basepat("yy/MM/dd H:mm "); in TestGenericTime()
2091 UnicodeString test; in TestGenericTime()
2094 const UnicodeString times[] = { in TestGenericTime()
2101 logln(UnicodeString("\ntime: ") + d); in TestGenericTime()
2110 errln((UnicodeString)"FAIL: format " + k + in TestGenericTime()
2115 logln((UnicodeString)"OK: format " + k + " parsed ok"); in TestGenericTime()
2118 errln((UnicodeString)"FAIL: format " + k + in TestGenericTime()
2184 UnicodeString test; in TestZTimeZoneParsing()
2194 UnicodeString input; in TestZTimeZoneParsing()
2195 UnicodeString expected_result; in TestZTimeZoneParsing()
2203 UnicodeString result; in TestZTimeZoneParsing()
2240 UnicodeString bannerStr(banner, ""); in TestRelative()
2245 UnicodeString test; in TestRelative()
2275 UnicodeString result; in TestRelative()
2276 UnicodeString normalResult; in TestRelative()
2277 UnicodeString expect; in TestRelative()
2278 UnicodeString parseResult; in TestRelative()
2310 UnicodeString parseFormat; // parse rel->format full in TestRelative()
2313 UnicodeString origFormat; in TestRelative()
2358 UnicodeString result1; in TestRelativeClone()
2364 UnicodeString result2; in TestRelativeClone()
2388 UnicodeString result1; in TestHostClone()
2394 UnicodeString result2; in TestHostClone()
3222 SimpleDateFormat testfmt(UnicodeString("yyyy-MM-dd'T'HH:mm:ss'Z'"), status); in TestTimeZoneDisplayName()
3228 UnicodeString info[5]; in TestTimeZoneDisplayName()
3230 info[j] = UnicodeString(testLine[j], -1, US_INV); in TestTimeZoneDisplayName()
3240 errln(UnicodeString("Failed to set date: ") + testLine[2]); in TestTimeZoneDisplayName()
3246 UnicodeString result; in TestTimeZoneDisplayName()
3293 UnicodeString buf; in TestRoundtripWithCalendar()
3306 UnicodeString refStr(buf); in TestRoundtripWithCalendar()
3321 … errln((UnicodeString)"FAIL: Different format result with a different calendar for the same time -" in TestRoundtripWithCalendar()
3352 UnicodeString tzid; in TestRoundtripWithCalendar()
3353 …errln((UnicodeString)"FAIL: Different parse result with a different calendar for the same string -" in TestRoundtripWithCalendar()
3364 errln((UnicodeString)"FAIL: " + u_errorName(status)); in TestRoundtripWithCalendar()
3404 SimpleDateFormat *fmt1 = new SimpleDateFormat(UnicodeString("y-M-d"), Locale("ar"), status); in Test6338()
3408 UnicodeString str1; in Test6338()
3415 UnicodeString str11; in Test6338()
3420 errln((UnicodeString)"FAIL: Different dates str1:" + str1 in Test6338()
3428 SimpleDateFormat *fmt2 = new SimpleDateFormat(UnicodeString("y M d"), Locale("ar"), status); in Test6338()
3432 UnicodeString str2; in Test6338()
3439 UnicodeString str22; in Test6338()
3444 errln((UnicodeString)"FAIL: Different dates str1:" + str2 in Test6338()
3452 SimpleDateFormat *fmt3 = new SimpleDateFormat(UnicodeString("y-M-d"), Locale("en-us"), status); in Test6338()
3456 UnicodeString str3; in Test6338()
3463 UnicodeString str33; in Test6338()
3468 errln((UnicodeString)"FAIL: Different dates str1:" + str3 in Test6338()
3476 SimpleDateFormat *fmt4 = new SimpleDateFormat(UnicodeString("y M d"), Locale("en-us"), status); in Test6338()
3480 UnicodeString str4; in Test6338()
3487 UnicodeString str44; in Test6338()
3492 errln((UnicodeString)"FAIL: Different dates str1:" + str4 in Test6338()
3505 UnicodeString strf, strl, strm, strs; in Test6726()
3531 errln((UnicodeString)"FAIL: Improper formatted date: " + strm ); in Test6726()
3535 errln((UnicodeString)"FAIL: Improper formatted date: " + strs); in Test6726()
3575 UnicodeString s1, s2; in Test6880()
3629 UnicodeString datePattern;
3630 UnicodeString dateString;
3637 …{ "", FALSE, FALSE, UnicodeString("y MMMM d HH:mm:ss"), UnicodeString("2009 7 14… in TestNumberAsStringParsing()
3638 …{ "", TRUE, FALSE, UnicodeString("y MMMM d HH:mm:ss"), UnicodeString("2009 7 14… in TestNumberAsStringParsing()
3639 …{ "en", FALSE, FALSE, UnicodeString("MMM d, y"), UnicodeString("Jul 14, 2… in TestNumberAsStringParsing()
3640 …{ "en", TRUE, FALSE, UnicodeString("MMM d, y"), UnicodeString("Jul 14, 2… in TestNumberAsStringParsing()
3641 …{ "en", FALSE, TRUE, UnicodeString("MMM d, y"), UnicodeString("7 14, 200… in TestNumberAsStringParsing()
3642 …{ "en", TRUE, FALSE, UnicodeString("MMM d, y"), UnicodeString("7 14, 200… in TestNumberAsStringParsing()
3643 …{ "ja", FALSE, FALSE, UnicodeString("yyyy/MM/dd"), UnicodeString("2009/07/1… in TestNumberAsStringParsing()
3644 …{ "ja", TRUE, FALSE, UnicodeString("yyyy/MM/dd"), UnicodeString("2009/07/1… in TestNumberAsStringParsing()
3646 …{ "ja", TRUE, FALSE, UnicodeString("yyyy/MMMMM/d"), UnicodeString("2009/7/14… in TestNumberAsStringParsing()
3651 …{ "ko", FALSE, FALSE, UnicodeString("yyyy. M. d."), UnicodeString("2009. 7. … in TestNumberAsStringParsing()
3652 …{ "ko", TRUE, FALSE, UnicodeString("yyyy. M. d."), UnicodeString("2009. 7. … in TestNumberAsStringParsing()
3653 …{ "ko", FALSE, FALSE, UnicodeString("yyyy. MMMMM d."), CharsToUnicodeString("20… in TestNumberAsStringParsing()
3654 …{ "ko", TRUE, FALSE, UnicodeString("yyyy. MMMMM d."), CharsToUnicodeString("20… in TestNumberAsStringParsing()
3659 …{ NULL, FALSE, FALSE, UnicodeString(""), UnicodeString("") … in TestNumberAsStringParsing()
3675 …errln("FAIL, err when expected success: Locale \"" + UnicodeString(itemPtr->localeStr) + "\", leni… in TestNumberAsStringParsing()
3679 …errln("FAIL, expected err but got none: Locale \"" + UnicodeString(itemPtr->localeStr) + "\", leni… in TestNumberAsStringParsing()
3682 UnicodeString formatted; in TestNumberAsStringParsing()
3685 …errln("FAIL, mismatch formatting parsed date: Locale \"" + UnicodeString(itemPtr->localeStr) + "\"… in TestNumberAsStringParsing()
3709 …SimpleDateFormat *fmt1 = new SimpleDateFormat(UnicodeString("GGG yyyy-MM-dd'T'HH:mm:ss'Z"), status… in TestISOEra()
3719 UnicodeString in = data[i]; in TestISOEra()
3726 UnicodeString out; in TestISOEra()
3731 UnicodeString expected = data[i+1]; in TestISOEra()
3733 dataerrln((UnicodeString)"FAIL: " + in + " -> " + out + " expected -> " + expected); in TestISOEra()
3742 UnicodeString pattern ("y\\u5e74M\\u6708d\\u65e5", -1, US_INV ); in TestFormalChineseDate()
3744 UnicodeString override ("y=hanidec;M=hans;d=hans", -1, US_INV ); in TestFormalChineseDate()
3752 UnicodeString result; in TestFormalChineseDate()
3755UnicodeString expected = "\\u4e8c\\u3007\\u3007\\u4e5d\\u5e74\\u4e03\\u6708\\u4e8c\\u5341\\u516b\\… in TestFormalChineseDate()
3758 dataerrln((UnicodeString)"FAIL: -> " + result + " expected -> " + expected); in TestFormalChineseDate()
3763 UnicodeString pat1 ("yyyy-MM-dd'T'HH:mm:ss'Z'", -1, US_INV ); in TestFormalChineseDate()
3765 UnicodeString parsedres,expres; in TestFormalChineseDate()
3768 dataerrln((UnicodeString)"FAIL: parsed -> " + parsedres + " expected -> " + expres); in TestFormalChineseDate()
3782 UnicodeString inText("GMT$$$"); in TestStandAloneGMTParse()
3787 …errln((UnicodeString)"FAIL: Incorrect output parse position: actual=" + pos.getIndex() + " expecte… in TestStandAloneGMTParse()
3816 SimpleDateFormat *sdf = new SimpleDateFormat(UnicodeString(TestData[i][0]), status); in TestParsePosition()
3822 UnicodeString input(TestData[i][1]); in TestParsePosition()
3837 …errln(UnicodeString("FAIL: Parsing [") + input + "] with pattern [" + TestData[i][0] + "] returns … in TestParsePosition()
3859 UnicodeString dateString[NUM_TEST_DATES];
3873 …hinese", DateFormat::kLong, { UnicodeString("ren-chen 4 2"), UnicodeString("ren-chen 4bis 2")… in TestMonthPatterns()
3874 …hinese", DateFormat::kShort, { UnicodeString("29-4-2"), UnicodeString("29-4bis-2"), … in TestMonthPatterns()
3875 …hinese", -1, { UnicodeString("29-4-2"), UnicodeString("29-4bis-2"), … in TestMonthPatterns()
3876 …hinese", -2, { UnicodeString("78x29-4-2"), UnicodeString("78x29-4bis-2"), … in TestMonthPatterns()
3877 …hinese", -3, { UnicodeString("ren-chen-4-2"), UnicodeString("ren-chen-4bis-2")… in TestMonthPatterns()
3878 …hinese", -4, { UnicodeString("ren-chen 4 2"), UnicodeString("ren-chen 4bis 2")… in TestMonthPatterns()
3879 …gorian", -3, { UnicodeString("2012-4-22"), UnicodeString("2012-5-22"), … in TestMonthPatterns()
3880 …nese", DateFormat::kLong, { UnicodeString("4 2, ren-chen"), UnicodeString("4bis 2, ren-chen"… in TestMonthPatterns()
3881 …nese", DateFormat::kShort, { UnicodeString("4/2/29"), UnicodeString("4bis/2/29"), … in TestMonthPatterns()
3903 …nese", DateFormat::kShort, { UnicodeString("2/4/29"), UnicodeString("2/4bis/29"), … in TestMonthPatterns()
3905 … NULL, 0, { UnicodeString(""), UnicodeString(""), UnicodeSt… in TestMonthPatterns()
3909 …const UnicodeString customPatterns[] = { "y-Ml-d", "G'x'y-Ml-d", "U-M-d", "U MMM d" }; // like old… in TestMonthPatterns()
3930 UnicodeString result; in TestMonthPatterns()
3934 …errln( UnicodeString("FAIL: Chinese calendar format for locale ") + UnicodeString(itemPtr->locale)… in TestMonthPatterns()
3951 …errln( UnicodeString("FAIL: Chinese calendar parse for locale ") + UnicodeString(itemPtr->locale) … in TestMonthPatterns()
3967 errln(UnicodeString("FAIL: Unable to create Calendar for root@calendar=chinese")); in TestMonthPatterns()
3973 UnicodeString pattern;
3975 UnicodeString expectedFormat;
3983 …{ "fr", UnicodeString("MMMM y"), UDISPCTX_CAPITALIZATION_NONE, UnicodeString(… in TestContext()
3985 …{ "fr", UnicodeString("MMMM y"), UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE, UnicodeString(… in TestContext()
3986 …{ "fr", UnicodeString("MMMM y"), UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, UnicodeString(… in TestContext()
3987 …{ "fr", UnicodeString("MMMM y"), UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU, UnicodeString(… in TestContext()
3988 …{ "fr", UnicodeString("MMMM y"), UDISPCTX_CAPITALIZATION_FOR_STANDALONE, UnicodeString(… in TestContext()
3990 …{ "cs", UnicodeString("LLLL y"), UDISPCTX_CAPITALIZATION_NONE, CharsToUnicode… in TestContext()
3992 …{ "cs", UnicodeString("LLLL y"), UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE, CharsToUnicode… in TestContext()
3993 …{ "cs", UnicodeString("LLLL y"), UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, CharsToUnicode… in TestContext()
3994 …{ "cs", UnicodeString("LLLL y"), UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU, CharsToUnicode… in TestContext()
3995 …{ "cs", UnicodeString("LLLL y"), UDISPCTX_CAPITALIZATION_FOR_STANDALONE, CharsToUnicode… in TestContext()
3998 { NULL, UnicodeString(""), (UDisplayContext)0, UnicodeString("") } in TestContext()
4003 … dataerrln(UnicodeString("FAIL: Unable to create Calendar for default timezone and locale.")); in TestContext()
4012 …dataerrln(UnicodeString("FAIL: Unable to create SimpleDateFormat for specified pattern with locale… in TestContext()
4015 UnicodeString result; in TestContext()
4019 … errln(UnicodeString("FAIL: format for locale ") + UnicodeString(itemPtr->locale) + in TestContext()
4042 UnicodeString formattedDate;
4061 { 0, 0, 0, 0, 0, UnicodeString("") } // terminator in TestNonGregoFmtParse()
4087 UnicodeString result; in TestNonGregoFmtParse()
4091 …errln( UnicodeString("FAIL: date format for locale ") + UnicodeString(itemPtr->locale) + ", style … in TestNonGregoFmtParse()
4102 …errln( UnicodeString("FAIL: date parse for locale ") + UnicodeString(itemPtr->locale) + ", style "… in TestNonGregoFmtParse()
4104 …ppos.getIndex() + " " + year +"-"+month+"-"+day + " status " + UnicodeString(u_errorName(status)) … in TestNonGregoFmtParse()
4132 UnicodeString formattedString; in TestDotAndAtLeniency()
4140 … errln(UnicodeString(" with date-time: dateStyle=") + dateStyle + " timeStyle=" + timeStyle); in TestDotAndAtLeniency()
4143 UnicodeString ds, ts; in TestDotAndAtLeniency()
4146 …errln(UnicodeString(" with date sp sp time: dateStyle=") + dateStyle + " timeStyle=" + timeStyl… in TestDotAndAtLeniency()
4149 UnicodeString plusDot(formattedString); in TestDotAndAtLeniency()
4152 …errln(UnicodeString(" with date plus-dot time: dateStyle=") + dateStyle + " timeStyle=" + timeS… in TestDotAndAtLeniency()
4156 UnicodeString minusDot(formattedString); in TestDotAndAtLeniency()
4159 …errln(UnicodeString(" with date minus-dot time: dateStyle=") + dateStyle + " timeStyle=" + time… in TestDotAndAtLeniency()
4167 UBool DateFormatTest::showParse(DateFormat &format, const UnicodeString &formattedString) { in showParse()
4171 UnicodeString pattern; in showParse()