Lines Matching refs:GregorianCalendar
500 GregorianCalendar *gc = new GregorianCalendar(*zone, status);
501 if (failure(status, "new GregorianCalendar")) return;
504 gc = new GregorianCalendar(Locale::getEnglish(), status);
505 if (failure(status, "new GregorianCalendar")) return;
508 gc = new GregorianCalendar(Locale::getEnglish(), status);
511 gc = new GregorianCalendar(*zone, Locale::getEnglish(), status);
512 if (failure(status, "new GregorianCalendar")) return;
515 gc = new GregorianCalendar(zone, status);
516 if (failure(status, "new GregorianCalendar")) return;
519 gc = new GregorianCalendar(1998, 10, 14, 21, 43, status);
521 errln("FAIL: new GregorianCalendar(ymdhm) failed with " + UnicodeString(u_errorName(status)) + ", cal=" + gc->getTime(status) + UnicodeString(calToStr(*gc)) + ", d=" + d);
526 gc = new GregorianCalendar(1998, 10, 14, 21, 43, 55, status);
528 errln("FAIL: new GregorianCalendar(ymdhms) failed with " + UnicodeString(u_errorName(status)));
530 GregorianCalendar gc2(Locale::getEnglish(), status);
531 if (failure(status, "new GregorianCalendar")) return;
533 if (gc2 != *gc || !(gc2 == *gc)) errln("FAIL: GregorianCalendar assignment/operator==/operator!= failed");
615 GregorianCalendar* gc = new GregorianCalendar(status);
616 if (failure(status, "new GregorianCalendar", TRUE)) return;
649 GregorianCalendar* cal = new GregorianCalendar(status);
650 if (failure(status, "new GregorianCalendar", TRUE)) return;
706 GregorianCalendar* c = new GregorianCalendar(status);
707 if (failure(status, "new GregorianCalendar", TRUE)) return;
714 if (U_FAILURE(status)) { errln("GregorianCalendar::setGregorianChange failed"); return; }
997 GregorianCalendar *temp = new GregorianCalendar(y, m, d, status);
998 if (failure(status, "new GregorianCalendar", TRUE)) return;
1026 * Execute adding and rolling in GregorianCalendar extensively,
1034 GregorianCalendar *temp = new GregorianCalendar(y, m, d, status);
1035 if (failure(status, "new GregorianCalendar", TRUE)) return;
1045 logln("Testing GregorianCalendar add...");
1057 if (U_FAILURE(status)) { errln("GregorianCalendar::add -1 failed"); return; }
1064 logln("Testing GregorianCalendar roll...");
1083 if (U_FAILURE(status)) { errln(UnicodeString("GregorianCalendar::roll ") + CalendarTest::fieldName(e) + " count=" + UnicodeString('@'+i) + " by -1 failed with " + u_errorName(status) ); return; }
1158 * of GregorianCalendar don't share a static instance of the fields array.
1165 GregorianCalendar *g = new GregorianCalendar(status);
1166 if (failure(status, "new GregorianCalendar", TRUE)) return;
1167 GregorianCalendar *g2 = new GregorianCalendar(status);
1168 if (U_FAILURE(status)) { errln("Couldn't create GregorianCalendar"); return; }
1238 Calendar *cal = new GregorianCalendar(status);
1239 if (failure(status, "new GregorianCalendar", TRUE)) return;
1269 Calendar *calendar = new GregorianCalendar(status);
1270 if (failure(status, "new GregorianCalendar", TRUE)) return;
1282 Calendar *calendar = new GregorianCalendar(1993, UCAL_JANUARY, 4, status);
1283 if (U_FAILURE(status)) { errln("Couldn't create GregorianCalendar"); return; }
1294 Calendar *calendar = new GregorianCalendar(1993, UCAL_JANUARY, 4, status);
1295 if (U_FAILURE(status)) { errln("Couldn't create GregorianCalendar"); return; }
1334 GregorianCalendar *calendar = 0;
1335 calendar = new GregorianCalendar(year, month, dDate, status);
1336 if (failure(status, "new GregorianCalendar", TRUE)) return;
1375 GregorianCalendar *gc = new GregorianCalendar(status);
1376 if (U_FAILURE(status)) { errln("Couldn't create GregorianCalendar"); return; }
1381 if (U_FAILURE(status)) { errln("GregorianCalendar::inDaylightTime failed"); return; }
1427 Calendar *cal = new GregorianCalendar(1972, UCAL_OCTOBER, 26, status);
1428 if (failure(status, "new GregorianCalendar", TRUE)) return;
1607 Calendar *tstres = new GregorianCalendar(Locale::getGermany(), errorCode);
1735 GregorianCalendar cal(status);
1961 GregorianCalendar cal(status);
1962 if (failure(status, "construct GregorianCalendar", TRUE)) return;
2019 GregorianCalendar cal(status);
2020 if (failure(status, "construct GregorianCalendar", TRUE)) return;
2125 isGregorian = dynamic_cast<GregorianCalendar*>(adopt) != NULL;
2481 GregorianCalendar calGMT((const TimeZone&)*TimeZone::getGMT(), status);
2482 GregorianCalendar calDefault(status);
2483 GregorianCalendar calLast(status);
2484 GregorianCalendar calFirst(status);
2580 GregorianCalendar calGMT((const TimeZone&)*TimeZone::getGMT(), status);
2581 GregorianCalendar calDefault(status);
2582 GregorianCalendar calLast(status);
2583 GregorianCalendar calFirst(status);
2584 GregorianCalendar calNextAvail(status);