Home | History | Annotate | Download | only in intltest

Lines Matching refs:UnicodeString

27 UnicodeString CalendarTest::calToStr(const Calendar & cal)
29 UnicodeString out;
34 out += (UnicodeString("") + fieldName((UCalendarDateFields)i) + "=" + cal.get((UCalendarDateFields)i, status) + UnicodeString(" "));
36 out += "[" + UnicodeString(cal.getType()) + "]";
39 out += UnicodeString(" (in DST), zone=");
42 out += UnicodeString(", zone=");
45 UnicodeString str2;
48 out += UnicodeString(" :","") + d;
238 UnicodeString CalendarTest::fieldName(UCalendarDateFields f) {
265 return UnicodeString("") + ((int32_t)f);
277 UnicodeString str;
282 UnicodeString tzid("TestZone");
304 logln(UnicodeString("cal=") +cal->getTime(status) + UnicodeString(calToStr(*cal)));
305 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2)));
308 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2)));
318 logln(UnicodeString("cal=") +cal->getTime(status) + UnicodeString(calToStr(*cal)));
320 logln(UnicodeString("cal=") +cal->getTime(status) + UnicodeString(calToStr(*cal)));
331 logln(UnicodeString("cal=") +cal->getTime(status) + UnicodeString(calToStr(*cal)));
332 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2)));
471 errln("FAIL: new GregorianCalendar(ymdhm) failed with " + UnicodeString(u_errorName(status)) + ", cal=" + gc->getTime(status) + UnicodeString(calToStr(*gc)) + ", d=" + d);
473 logln(UnicodeString("GOOD: cal=") +gc->getTime(status) + UnicodeString(calToStr(*gc)) + ", d=" + d);
478 errln("FAIL: new GregorianCalendar(ymdhms) failed with " + UnicodeString(u_errorName(status)));
567 logln((lenient?UnicodeString("LENIENT0: "):UnicodeString("nonlenient0: ")) + UnicodeString(calToStr(*cal)));
571 logln((lenient?UnicodeString("LENIENT: "):UnicodeString("nonlenient: ")) + UnicodeString(calToStr(*cal)));
577 dow > max) errln(UnicodeString("FAIL: Day of week ") + (int32_t)dow + " out of range");
617 UnicodeString str;
620 logln(UnicodeString("With cutoff ") + dateToString(c->getGregorianChange(), str));
622 logln(UnicodeString(" isLeapYear(1800) = ") + (b ? "true" : "false"));
623 logln(UnicodeString(" (should be FALSE)"));
627 logln(UnicodeString("With cutoff ") + dateToString(c->getGregorianChange(), str));
629 logln(UnicodeString(" isLeapYear(1800) = ") + (b ? "true" : "false"));
630 logln(UnicodeString(" (should be TRUE)"));
744 CalendarTest::verify765(const UnicodeString& msg, Calendar* c, int32_t year, int32_t month, int32_t day)
746 UnicodeString str;
768 CalendarTest::verify765(const UnicodeString& msg/*, IllegalArgumentException e*/, UErrorCode status)
793 UnicodeString str;
820 if (utc != expected) errln(UnicodeString("FAIL: Discrepancy of ") + (utc - expected) +
855 UnicodeString s;
885 UnicodeString s2;
983 logln(calToStr(*temp) + UnicodeString(" " ) + fieldName(e) + UnicodeString("++") );
993 logln(calToStr(*temp) + UnicodeString(" " ) + fieldName(e) + UnicodeString("--") );
995 if (U_FAILURE(status)) { errln(UnicodeString("GregorianCalendar::roll ") + CalendarTest::fieldName(e) + " count=" + UnicodeString('@'+i) + " by -1 failed with " + u_errorName(status) ); return; }
1021 errln(UnicodeString("U_FAILURE for field ") + (int32_t)field +
1037 logln(UnicodeString("Confirmed: ") + y + "/" +
1052 errln(UnicodeString("FAILURE: Expected y/m/d of ") +
1062 logln(UnicodeString("Confirmed: ") + y + "/" +
1112 UnicodeString& pre = (UnicodeString&) t.readObject();
1114 UnicodeString& post = (UnicodeString&) t.readObject();
1133 UnicodeString& CalendarTest::PREFIX = "abc";
1135 UnicodeString& CalendarTest::POSTFIX = "def";
1137 UnicodeString& CalendarTest::FILENAME = "tmp337.bin";
1158 UnicodeString s;
1178 UnicodeString EXPECTED_0610("1993/0/5", "");
1187 UnicodeString v = value(calendar);
1199 UnicodeString v = value(calendar);
1213 UnicodeString v = value(calendar);
1223 UnicodeString
1227 return UnicodeString("") + (int32_t)calendar->get(UCAL_YEAR, status) +
1253 errln(UnicodeString("Expected field ") + (int32_t)field + " to have value " + (int32_t)expected +
1295 UnicodeString str;
1303 errln(UnicodeString("Expected field ") + i + " to have value " + EPOCH_FIELDS[i] +
1309 errln(UnicodeString("Expected field ZONE_OFFSET to have value ") + z->getRawOffset() +
1315 errln(UnicodeString("Expected field DST_OFFSET to have value 0") +
1360 SimpleDateFormat *sdf=new SimpleDateFormat(UnicodeString("YYYY'-W'ww-ee"), Locale::getGermany(), status);
1366 dfs->setLocalPatternChars(UnicodeString("GyMdkHmsSEDFwWahKzJeugAZvcLQq"));
1368 sdf->applyLocalizedPattern(UnicodeString("JJJJ'-W'ww-ee"), status);
1425 errln(UnicodeString("Failed to create Calendar for locale. Error: ") + UnicodeString(u_errorName(status)));
1428 UnicodeString str, str2;
1429 SimpleDateFormat fmt(UnicodeString("EEE MMM dd yyyy / YYYY'-W'ww-ee"), status);
1440 str += (UnicodeString)", expected year " +
1442 errln((UnicodeString)"FAIL: " + str);
1443 logln( UnicodeString(" -> ") + CalendarTest::calToStr(cal) );
1451 logln( UnicodeString(" <- ") + CalendarTest::calToStr(cal) );
1458 str += (UnicodeString)", expected yearWOY " +
1460 errln((UnicodeString)"FAIL: " + str);
1461 logln( UnicodeString(" -> ") + CalendarTest::calToStr(cal) );
1471 SimpleDateFormat fmt(UnicodeString("EEE MMM dd yyyy / YYYY'-W'ww-ee"), errorCode);
1483 UnicodeString str("FAIL: Results of add differ. "), str2;
1485 str += UnicodeString("Add(") + fieldName(field) + ", 1) -> " +
1487 str += UnicodeString("Add(") + fieldName(field2) + ", 1) -> " +
1517 UnicodeString us;
1528 //logln((UnicodeString)"Parsed week of year is "+tstres->get(UCAL_WEEK_OF_YEAR, errorCode));
1550 logln((UnicodeString)"Expected "+cal->get(UCAL_YEAR, errorCode));
1551 logln((UnicodeString)"Got "+tstres->get(UCAL_YEAR, errorCode));
1556 logln((UnicodeString)"Expected "+cal->get(UCAL_DAY_OF_YEAR, errorCode));
1557 logln((UnicodeString)"Got "+tstres->get(UCAL_DAY_OF_YEAR, errorCode));
1578 UnicodeString str;
1580 logln(UnicodeString("DOW = ") + DOW + " " + dateToString(cur->getTime(status), str));
1588 errln(UnicodeString("Day of week should be ") + expectedDOW + " instead of " + newDOW +
1643 UnicodeString str;
1648 SimpleDateFormat fmt(UnicodeString("EEE MMM dd yyyy', WOY' w"), status);
1678 logln(UnicodeString("* ") + str);
1843 str += UnicodeString(", ") + amount + ") = ";
1870 UnicodeString str;
2080 UnicodeString uzone = UNICODE_STRING_SIMPLE("Europe/Paris");
2081 UnicodeString exp1 = UNICODE_STRING_SIMPLE("Mon 30 Jumada II 1433 AH, 01:47:03");
2082 UnicodeString exp2 = UNICODE_STRING_SIMPLE("Mon 1 Rajab 1433 AH, 01:47:04");
2103 UnicodeString act1(ubuffer);
2116 UnicodeString act2(ubuffer);