Lines Matching refs:UnicodeString
106 Calendar *cal = Calendar::createInstance(TimeZone::createTimeZone((UnicodeString)"UTC"), status);
160 UnicodeString localGMTString;
161 SimpleDateFormat gmtFmt(UnicodeString("ZZZZ"), LOCALES[locidx], status);
171 SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)PATTERNS[patidx], LOCALES[locidx], status);
173 dataerrln((UnicodeString)"new SimpleDateFormat failed for pattern " +
180 const UnicodeString *tzid;
185 UnicodeString tzstr;
211 UnicodeString outtzid;
216 errln((UnicodeString)"Failed to get offsets from time zone" + *tzid);
221 errln((UnicodeString)"Failed to get offsets from time zone" + outtzid);
227 UnicodeString canonicalID;
231 errln((UnicodeString)"Unknown ID " + *tzid);
237 logln((UnicodeString)"Canonical round trip failed (probably as expected); tz=" + *tzid
242 errln((UnicodeString)"Canonical round trip failed; tz=" + *tzid
251 errln((UnicodeString)"Zone ID round trip failued; tz=" + *tzid
260 UnicodeString canonical;
264 errln((UnicodeString)"Unknown ID " + *tzid);
271 logln((UnicodeString)"Canonical round trip failed (as expected); tz=" + *tzid
276 errln((UnicodeString)"Canonical round trip failed; tz=" + *tzid
317 errln((UnicodeString)"Offset round trip failed; tz=" + *tzid
325 errln((UnicodeString)"Raw offset round trip failed; tz=" + *tzid
346 const UnicodeString& id,
441 LocalPointer <Calendar> cal(Calendar::createInstance(TimeZone::createTimeZone((UnicodeString) "UTC"), status));
506 logln(UnicodeString("") + gLocaleData->times[i] + "ms (" + PATTERNS[i] + ")");
509 logln((UnicodeString) "Total: " + total + "ms");
510 logln((UnicodeString) "Iteration: " + gLocaleData->testCounts);
533 //UnicodeString BASEPATTERN("yyyy-MM-dd'T'HH:mm:ss.SSS");
534 UnicodeString BASEPATTERN("yyyy.MM.dd HH:mm:ss.SSS");
558 UnicodeString pattern(BASEPATTERN);
565 errcheckln(status, (UnicodeString) "new SimpleDateFormat failed for pattern " +
574 const UnicodeString *tzid;
655 UnicodeString text;
661 errln((UnicodeString) "Parse failure for text=" + text + ", tzid=" + *tzid + ", locale=" + gLocaleData->locales[locidx].getName()
671 UnicodeString msg = (UnicodeString) "Time round trip failed for " + "tzid=" + *tzid
678 errln((UnicodeString) "FAIL: " + msg);
822 UnicodeString errMsg;
824 UnicodeString outID;
826 if (outID != UnicodeString(DATA[i].expected)) {
827 errMsg = (UnicodeString)"Time zone ID: " + outID + " - expected: " + DATA[i].expected;
829 errMsg = (UnicodeString)"Parsed pos: " + pos.getIndex() + " - expected: " + DATA[i].outPos;
831 errMsg = (UnicodeString)"Time type: " + ttype + " - expected: " + DATA[i].timeType;
836 errMsg = (UnicodeString)"Parse failure - expected: " + DATA[i].expected;
840 errln((UnicodeString)"Fail: " + errMsg + " [text=" + DATA[i].text + ", pos=" + DATA[i].inPos + ", style=" + DATA[i].style + "]");
953 SimpleTimeZone* tz = new SimpleTimeZone(OFFSET[i], UnicodeString("Zone Offset:") + OFFSET[i] + "ms");
956 sdf->applyPattern(UnicodeString(PATTERN[j]));
957 UnicodeString result;
961 if (result != UnicodeString(ISO_STR[i][j])) {
962 errln((UnicodeString)"FAIL: pattern=" + PATTERN[j] + ", offset=" + OFFSET[i] + " -> "
970 errln((UnicodeString)"FAIL: Non-Empty result for pattern=" + PATTERN[j] + ", offset=" + OFFSET[i]
989 SimpleTimeZone* bogusTZ = new SimpleTimeZone(-1, UnicodeString("Zone Offset: -1ms"));
993 sdf->parse(UnicodeString(ISO_STR[i][j]), *(outcal.getAlias()), pos);
996 errln((UnicodeString)"FAIL: Failed to parse the entire input string: " + ISO_STR[i][j]);
1003 errln((UnicodeString)"FAIL: Incorrect offset:" + outOffset + "ms for input string: " + ISO_STR[i][j]
1104 UnicodeString out;
1108 UnicodeString expected(DATA[i].expected, -1, US_INV);
1111 assertEquals(UnicodeString("Format result for ") + DATA[i].tzid + " (Test Case " + i + ")", expected, out);
1113 dataerrln(UnicodeString("Formatted time zone type (Test Case ") + i + "), returned="
1201 UnicodeString out;
1205 UnicodeString expected(DATA[i].expected, -1, US_INV);
1208 assertEquals(UnicodeString("Format result for ") + DATA[i].tzid + " (Test Case " + i + ")", expected, out);
1210 dataerrln(UnicodeString("Formatted time zone type (Test Case ") + i + "), returned="