Lines Matching defs:gc
551 GregorianCalendar *gc = new GregorianCalendar(*zone, status);
553 delete gc;
555 gc = new GregorianCalendar(Locale::getEnglish(), status);
557 delete gc;
559 gc = new GregorianCalendar(Locale::getEnglish(), status);
560 delete gc;
562 gc = new GregorianCalendar(*zone, Locale::getEnglish(), status);
564 delete gc;
566 gc = new GregorianCalendar(zone, status);
568 delete gc;
570 gc = new GregorianCalendar(1998, 10, 14, 21, 43, status);
571 if (gc->getTime(status) != (d =date(98, 10, 14, 21, 43) )|| U_FAILURE(status))
572 errln("FAIL: new GregorianCalendar(ymdhm) failed with " + UnicodeString(u_errorName(status)) + ", cal=" + gc->getTime(status) + UnicodeString(calToStr(*gc)) + ", d=" + d);
574 logln(UnicodeString("GOOD: cal=") +gc->getTime(status) + UnicodeString(calToStr(*gc)) + ", d=" + d);
575 delete gc;
577 gc = new GregorianCalendar(1998, 10, 14, 21, 43, 55, status);
578 if (gc->getTime(status) != (d=date(98, 10, 14, 21, 43, 55)) || U_FAILURE(status))
583 gc2 = *gc;
584 if (gc2 != *gc || !(gc2 == *gc)) errln("FAIL: GregorianCalendar assignment/operator==/operator!= failed");
585 delete gc;
666 GregorianCalendar* gc = new GregorianCalendar(status);
669 gc->set(year, month, date);
670 gc->set(UCAL_HOUR_OF_DAY, 23);
671 gc->set(UCAL_MINUTE, 0);
672 gc->set(UCAL_SECOND, 0);
673 gc->set(UCAL_MILLISECOND, 0);
674 for (int32_t i = 0; i < 9; i++, gc->add(UCAL_DATE, 1, status)) {
676 if (gc->get(UCAL_YEAR, status) != year ||
677 gc->get(UCAL_MONTH, status) != month ||
678 gc->get(UCAL_DATE, status) != (date + i)) errln("FAIL: Date wrong");
681 delete gc;
1426 GregorianCalendar *gc = new GregorianCalendar(status);
1428 gc->setTimeZone(*z);
1429 gc->setTime(d, status);
1431 UBool idt = gc->inDaylightTime(status);
1461 delete gc;