Lines Matching defs:cal2
341 Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status);
344 cal2->setTime(when, status);
347 if (!(*cal == *cal2)) errln("FAIL: Calendar::operator== failed");
348 if ((*cal != *cal2)) errln("FAIL: Calendar::operator!= failed");
349 if (!cal->equals(*cal2, status) ||
350 cal->before(*cal2, status) ||
351 cal->after(*cal2, status) ||
355 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2)));
356 logln("cal2->setTime(when+1000)");
357 cal2->setTime(when + 1000, status);
358 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2)));
361 if (cal->equals(*cal2, status) ||
362 cal2->before(*cal, status) ||
363 cal->after(*cal2, status) ||
373 if (!(eq=cal->equals(*cal2, status)) ||
374 (b4=cal->before(*cal2, status)) ||
375 (af=cal->after(*cal2, status)) ||
382 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2)));
388 if (cal->equals(*cal2, status) ||
389 cal2->before(*cal, status) ||
390 cal->after(*cal2, status) ||
473 delete cal2;
2349 Calendar* cal2 = cal->clone();
2351 if (*cal != *cal2) {
2354 if (!cal->equals(*cal2, status)) {
2361 cal2->setRepeatedWallTimeOption(UCAL_WALLTIME_FIRST);
2362 cal2->setSkippedWallTimeOption(UCAL_WALLTIME_FIRST);
2364 if (*cal == *cal2) {
2367 if (!cal->equals(*cal2, status)) {
2374 if (cal2->getRepeatedWallTimeOption() != UCAL_WALLTIME_FIRST) {
2377 if (cal2->getSkippedWallTimeOption() != UCAL_WALLTIME_FIRST) {
2381 cal2->setRepeatedWallTimeOption(UCAL_WALLTIME_NEXT_VALID);
2382 if (cal2->getRepeatedWallTimeOption() != UCAL_WALLTIME_FIRST) {
2387 delete cal2;
2711 LocalPointer<Calendar> cal2(cal->clone());
2712 Locale l = cal2->getLocale(ULOC_VALID_LOCALE, status);