Lines Matching refs:UnicodeString
26 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"…
79 logln((UnicodeString) "today: " + today); in Test4029195()
85 UnicodeString pat; in Test4029195()
93 UnicodeString fmtd; in Test4029195()
100 UnicodeString todayS; in Test4029195()
106 logln((UnicodeString)"today date: " + today); in Test4029195()
112 UnicodeString rt; in Test4029195()
141 UnicodeString str; in Test4052408()
148 UnicodeString expected[] = { in Test4052408()
149 (UnicodeString) "", //"ERA_FIELD", in Test4052408()
150 (UnicodeString) "97", //"YEAR_FIELD", in Test4052408()
151 (UnicodeString) "5", //"MONTH_FIELD", in Test4052408()
152 (UnicodeString) "3", //"DATE_FIELD", in Test4052408()
153 (UnicodeString) "", //"HOUR_OF_DAY1_FIELD", in Test4052408()
154 (UnicodeString) "", //"HOUR_OF_DAY0_FIELD", in Test4052408()
155 (UnicodeString) "55", //"MINUTE_FIELD", in Test4052408()
156 (UnicodeString) "", //"SECOND_FIELD", in Test4052408()
157 (UnicodeString) "", //"MILLISECOND_FIELD", in Test4052408()
158 (UnicodeString) "", //"DAY_OF_WEEK_FIELD", in Test4052408()
159 (UnicodeString) "", //"DAY_OF_YEAR_FIELD", in Test4052408()
160 (UnicodeString) "", //"DAY_OF_WEEK_IN_MONTH_FIELD", in Test4052408()
161 (UnicodeString) "", //"WEEK_OF_YEAR_FIELD", in Test4052408()
162 (UnicodeString) "", //"WEEK_OF_MONTH_FIELD", in Test4052408()
163 (UnicodeString) "AM", //"AM_PM_FIELD", in Test4052408()
164 (UnicodeString) "8", //"HOUR1_FIELD", in Test4052408()
165 (UnicodeString) "", //"HOUR0_FIELD", in Test4052408()
166 (UnicodeString) "" //"TIMEZONE_FIELD" in Test4052408()
178 UnicodeString fieldNames[] = { in Test4052408()
179 (UnicodeString) "ERA_FIELD", in Test4052408()
180 (UnicodeString) "YEAR_FIELD", in Test4052408()
181 (UnicodeString) "MONTH_FIELD", in Test4052408()
182 (UnicodeString) "DATE_FIELD", in Test4052408()
183 (UnicodeString) "HOUR_OF_DAY1_FIELD", in Test4052408()
184 (UnicodeString) "HOUR_OF_DAY0_FIELD", in Test4052408()
185 (UnicodeString) "MINUTE_FIELD", in Test4052408()
186 (UnicodeString) "SECOND_FIELD", in Test4052408()
187 (UnicodeString) "MILLISECOND_FIELD", in Test4052408()
188 (UnicodeString) "DAY_OF_WEEK_FIELD", in Test4052408()
189 (UnicodeString) "DAY_OF_YEAR_FIELD", in Test4052408()
190 (UnicodeString) "DAY_OF_WEEK_IN_MONTH_FIELD", in Test4052408()
191 (UnicodeString) "WEEK_OF_YEAR_FIELD", in Test4052408()
192 (UnicodeString) "WEEK_OF_MONTH_FIELD", in Test4052408()
193 (UnicodeString) "AM_PM_FIELD", in Test4052408()
194 (UnicodeString) "HOUR1_FIELD", in Test4052408()
195 (UnicodeString) "HOUR0_FIELD", in Test4052408()
196 (UnicodeString) "TIMEZONE_FIELD" in Test4052408()
202 UnicodeString buf; in Test4052408()
205 UnicodeString dst; in Test4052408()
207 UnicodeString str(dst); in Test4052408()
208 logln((UnicodeString)"" + i + (UnicodeString)": " + fieldNames[i] + in Test4052408()
209 (UnicodeString)", \"" + str + (UnicodeString)"\", " + in Test4052408()
210 pos.getBeginIndex() + (UnicodeString)", " + in Test4052408()
212 UnicodeString exp = expected[i]; in Test4052408()
216 errln(UnicodeString(" expected ") + exp); in Test4052408()
236 … SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("yyMMdd"), Locale::getUS(), status); in Test4056591()
253 UnicodeString strings [] = { in Test4056591()
254 (UnicodeString) "091225", in Test4056591()
255 (UnicodeString) "091224", in Test4056591()
256 (UnicodeString) "091226", in Test4056591()
257 (UnicodeString) "611225" in Test4056591()
268 UnicodeString s = strings[i]; in Test4056591()
293 UnicodeString myDate; in Test4059917()
295 fmt = new SimpleDateFormat( UnicodeString("yyyy/MM/dd"), status ); in Test4059917()
303 fmt = new SimpleDateFormat( UnicodeString("yyyyMMdd"), status ); in Test4059917()
311 void DateFormatRegressionTest::aux917( SimpleDateFormat *fmt, UnicodeString& str ) { in aux917()
313 UnicodeString pat; in aux917()
327 UnicodeString formatted; in aux917()
346 UnicodeString dateString = "1995-040.05:01:29"; in Test4060212()
351 SimpleDateFormat *formatter = new SimpleDateFormat(UnicodeString("yyyy-DDD.hh:mm:ss"), status); in Test4060212()
355 UnicodeString myString; in Test4060212()
372 errln((UnicodeString) "Fail: Got " + cal->get(UCAL_DAY_OF_YEAR, status) + in Test4060212()
380 formatter = new SimpleDateFormat(UnicodeString("yyyy-ddd.hh:mm:ss"), status); in Test4060212()
389 errln((UnicodeString) "Fail: Got " + cal->get(UCAL_DAY_OF_YEAR, status) + in Test4060212()
404 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("dd/MM/yyyy"), status); in Test4061287()
412 logln(UnicodeString("") + df->parse("35/01/1971", status)); in Test4061287()
423 logln(UnicodeString("") + df->parse("35/01/1971", status)); in Test4061287()
440 UnicodeString strShortDate, strFullDate; in Test4065240()
465 UnicodeString temp; in Test4065240()
469 UnicodeString temp2; in Test4065240()
587 UnicodeString tests [] = { in Test4073003()
588 (UnicodeString) "12/25/61", in Test4073003()
589 (UnicodeString) "12/25/1961", in Test4073003()
590 (UnicodeString) "4/3/2010", in Test4073003()
591 (UnicodeString) "4/3/10" in Test4073003()
599 UnicodeString s; in Test4073003()
601 UnicodeString ss; in Test4073003()
604 errln((UnicodeString) "Fail: " + d + " != " + dd); in Test4073003()
606 errln((UnicodeString)"Fail: " + s + " != " + ss); in Test4073003()
721 SimpleDateFormat *sdf = new SimpleDateFormat(UnicodeString("z"), Locale::getUS(), status); in Test4101483()
727 UnicodeString buf; in Test4101483()
731 logln(UnicodeString("beginIndex = ") + fp.getBeginIndex()); in Test4101483()
732 logln(UnicodeString("endIndex = ") + fp.getEndIndex()); in Test4101483()
754 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("MMMM"), Locale::getUS(), status); in Test4103340()
757 UnicodeString s; in Test4103340()
759 UnicodeString s2; in Test4103340()
764 UnicodeString substr; in Test4103340()
783 SimpleDateFormat *simple = new SimpleDateFormat(UnicodeString("MM/dd/yyyy HH:mm"), status); in Test4103341()
815 UnicodeString pattern = "'time' hh:mm"; in Test4104136()
819 UnicodeString strings [] = { in Test4104136()
820 (UnicodeString)"time 10:30", in Test4104136()
821 (UnicodeString) "time 10:x", in Test4104136()
822 (UnicodeString) "time 10x" in Test4104136()
844 UnicodeString text = strings[i]; in Test4104136()
852 logln((UnicodeString) " result: " + d); in Test4104136()
854 errln(UnicodeString("Fail: Expected pos ") + finish.getIndex()); in Test4104136()
856 errln((UnicodeString) "Fail: Expected result " + exp); in Test4104136()
880 UnicodeString pattern = "'time' hh:mm"; in Test4104522()
886 UnicodeString text = "time "; in Test4104522()
911 new SimpleDateFormat(UnicodeString("yyyyMMddHHmmss"), status), in Test4106807()
912 new SimpleDateFormat(UnicodeString("yyyyMMddHHmmss'Z'"), status), in Test4106807()
913 new SimpleDateFormat(UnicodeString("yyyyMMddHHmmss''"), status), in Test4106807()
914 new SimpleDateFormat(UnicodeString("yyyyMMddHHmmss'a''a'"), status), in Test4106807()
915 new SimpleDateFormat(UnicodeString("yyyyMMddHHmmss %"), status) in Test4106807()
929 UnicodeString strings [] = { in Test4106807()
930 (UnicodeString) "19980211140000", in Test4106807()
931 (UnicodeString) "19980211140000", in Test4106807()
932 (UnicodeString) "19980211140000", in Test4106807()
933 (UnicodeString) "19980211140000a", in Test4106807()
934 (UnicodeString) "19980211140000 " in Test4106807()
954 UnicodeString dateString = strings[i]; in Test4106807()
962 UnicodeString fmtd; in Test4106807()
969 logln(UnicodeString("") + gc->get(UCAL_ZONE_OFFSET, status)); in Test4106807()
971 UnicodeString s; in Test4106807()
1019 UnicodeString dateFormat = "MM/dd/yy HH:mm:ss zzz"; in Test4134203()
1039 UnicodeString pattern = "'TO_DATE('''dd'-'MM'-'yyyy HH:mm:ss''' , ''DD-MM-YYYY HH:MI:SS'')'"; in Test4151631()
1044 UnicodeString result; in Test4151631()
1064 UnicodeString dateString("Thursday, 31-Dec-98 23:00:00 GMT"); in Test4151706()
1066 SimpleDateFormat fmt(UnicodeString("EEEE, dd-MMM-yy HH:mm:ss z"), Locale::getUS(), status); in Test4151706()
1077 UnicodeString temp; in Test4151706()
1090 UnicodeString dateString("Thu, 30-Jul-1999 11:51:14 GMT"); in Test4162071()
1091 UnicodeString format("EEE', 'dd-MMM-yyyy HH:mm:ss z"); // RFC 822/1123 in Test4162071()
1105 UnicodeString temp; in Test4162071()
1153 UnicodeString out; in Test4182066()
1156 UnicodeString str(STRINGS[i]); in Test4182066()
1163 UnicodeString actStr; in Test4182066()
1174 UnicodeString expStr; in Test4182066()
1200 UnicodeString pattern("MMM d, yyyy"); in Test4210209()
1212 UnicodeString s, ss; in Test4210209()
1218 logln(UnicodeString("\"") + s + "\" p> " + pattern + in Test4210209()
1220 logln(UnicodeString("Parse pos = ") + pos.getIndex() + in Test4210209()
1223 errln(UnicodeString("FAIL: Error index should be -1")); in Test4210209()
1237 logln(UnicodeString("Attempt to set Calendar to Feb 29 2000: ") + in Test4210209()
1256 UnicodeString s; in Test714()
1257 UnicodeString tests = in Test714()
1258 (UnicodeString) "7:25:43 AM" ; in Test714()
1263 errln((UnicodeString) "Fail, errmsg " + u_errorName(status)); in Test714()
1269 errln((UnicodeString) "Fail: " + s + " != " + tests); in Test714()
1288 UnicodeString data;
1289 UnicodeString normalized;
1340 UnicodeString pattern("yyyy MM WW EEE",""); in Test1684()
1360 errln(UnicodeString("Error setting up test: ") + u_errorName(status)); in Test1684()
1365 logln(UnicodeString("#") + i + UnicodeString("\n-----\nTesting round trip of ") + test.year + in Test1684()
1382 errln((UnicodeString)"\nError: GregorianUCAL_DOM gave " + ms + in Test1684()
1391 errln("parse exception: " + UnicodeString(u_errorName(status))); in Test1684()
1395 errln((UnicodeString)"\nError: GregorianCalendar gave " + ms + in Test1684()
1402 UnicodeString result; in Test1684()
1416 errln("parse exception 2: " + (UnicodeString)u_errorName(status)); in Test1684()
1421 errln((UnicodeString)"\nError: Re-parse of '" + result + "' gave time of " + in Test1684()
1429 UnicodeString info in Test1684()
1430 = UnicodeString("Passed: ") + pass + ", Warnings: " + warning + ", Errors: " + error; in Test1684()
1447 UnicodeString pattern("Z",""); in Test5554()
1448 UnicodeString newfoundland("Canada/Newfoundland", ""); in Test5554()
1465 UnicodeString result; in Test5554()
1466 UnicodeString correct("-0330", ""); in Test5554()
1477 UnicodeString pattern("VVVV"); in Test9237()
1488 UnicodeString resDE, resCopyDE; in Test9237()
1494 …errln(UnicodeString("Error: different result by the copied instance - org:") + resDE + " copy:" + … in Test9237()
1500 UnicodeString resAssigned; in Test9237()
1504 …errln(UnicodeString("Error: different results by the assigned instance - org:") + resDE + " assign… in Test9237()
1510 UnicodeString pattern("EEE-WW-MMMM-yyyy"); in TestParsing()
1511 UnicodeString text("mon-02-march-2011"); in TestParsing()
1538 UnicodeString pattern("'--: 'EEE-WW-MMMM-yyyy"); in TestT10334()
1539 UnicodeString text("--mon-02-march-2011"); in TestT10334()
1563 pattern = UnicodeString("YYYY MM dd"); in TestT10334()
1564 text = UnicodeString("2013 12 10"); in TestT10334()
1569 UnicodeString formattedString(""); in TestT10334()
1570 pattern = UnicodeString("YYYY LL dd ee cc qq QQ"); in TestT10334()
1577 pattern = UnicodeString(patternArray); in TestT10334()
1578 text = UnicodeString("2013 12 10 03 3 04 04"); in TestT10334()
1601 UnicodeString parseString;
1602 UnicodeString pattern;
1603 UnicodeString expectedResult; // null indicates expected error
1611 …{ "en", true, UnicodeString("2008-07 02"), UnicodeString("yyyy-LLLL dd"), Unicod… in TestT10619()
1612 …{ "en", false, UnicodeString("2008-07 03"), UnicodeString("yyyy-LLLL dd"), Unicod… in TestT10619()
1613 …{ "en", true, UnicodeString("2008-Jan. 04"), UnicodeString("yyyy-LLL dd"), Unicod… in TestT10619()
1614 …{ "en", false, UnicodeString("2008-Jan. 05"), UnicodeString("yyyy-LLL dd"), Unicod… in TestT10619()
1615 …{ "en", true, UnicodeString("2008-Jan--06"), UnicodeString("yyyy-MMM -- dd"), Unicod… in TestT10619()
1616 …{ "en", false, UnicodeString("2008-Jan--07"), UnicodeString("yyyy-MMM -- dd"), Unicod… in TestT10619()
1617 …{ "en", true, UnicodeString("6 Jan 08 2008"), UnicodeString("eee MMM dd yyyy"), Unicod… in TestT10619()
1618 …{ "en", false, UnicodeString("6 Jan 09 2008"), UnicodeString("eee MMM dd yyyy"), Unicod… in TestT10619()
1620 …{ NULL, true, UnicodeString(""), UnicodeString(""), Unicod… in TestT10619()
1625 … dataerrln(UnicodeString("FAIL: Unable to create Calendar for default timezone and locale.")); in TestT10619()
1664 UnicodeString text;
1665 UnicodeString pattern;
1673 { UnicodeString("September 30, 1998"), UnicodeString("MM-dd-yyyy"), 0}, in TestT10855()
1674 { UnicodeString("123-73-1950"), UnicodeString("MM-dd-yyyy"), -1}, in TestT10855()
1675 { UnicodeString("12-23-1950"), UnicodeString("MM-dd-yyyy"), -1}, in TestT10855()
1677 { UnicodeString(""), UnicodeString(""), 0} in TestT10855()
1716 UnicodeString pattern = "MM-dd-yyyy"; in TestT10906()
1717 UnicodeString text = "06-10-2014"; in TestT10906()