Lines Matching refs:cal2
415 Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status); in TestGenericAPI() local
418 cal2->setTime(when, status); in TestGenericAPI()
421 if (!(*cal == *cal2)) errln("FAIL: Calendar::operator== failed"); in TestGenericAPI()
422 if ((*cal != *cal2)) errln("FAIL: Calendar::operator!= failed"); in TestGenericAPI()
423 if (!cal->equals(*cal2, status) || in TestGenericAPI()
424 cal->before(*cal2, status) || in TestGenericAPI()
425 cal->after(*cal2, status) || in TestGenericAPI()
429 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
431 cal2->setTime(when + 1000, status); in TestGenericAPI()
432 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
435 if (cal->equals(*cal2, status) || in TestGenericAPI()
436 cal2->before(*cal, status) || in TestGenericAPI()
437 cal->after(*cal2, status) || in TestGenericAPI()
447 if (!(eq=cal->equals(*cal2, status)) || in TestGenericAPI()
448 (b4=cal->before(*cal2, status)) || in TestGenericAPI()
449 (af=cal->after(*cal2, status)) || in TestGenericAPI()
456 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
462 if (cal->equals(*cal2, status) || in TestGenericAPI()
463 cal2->before(*cal, status) || in TestGenericAPI()
464 cal->after(*cal2, status) || in TestGenericAPI()
547 delete cal2; in TestGenericAPI()
2431 Calendar* cal2 = cal->clone(); in TestAmbiguousWallTimeAPIs() local
2433 if (*cal != *cal2) { in TestAmbiguousWallTimeAPIs()
2436 if (!cal->equals(*cal2, status)) { in TestAmbiguousWallTimeAPIs()
2443 cal2->setRepeatedWallTimeOption(UCAL_WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs()
2444 cal2->setSkippedWallTimeOption(UCAL_WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs()
2446 if (*cal == *cal2) { in TestAmbiguousWallTimeAPIs()
2449 if (!cal->equals(*cal2, status)) { in TestAmbiguousWallTimeAPIs()
2456 if (cal2->getRepeatedWallTimeOption() != UCAL_WALLTIME_FIRST) { in TestAmbiguousWallTimeAPIs()
2459 if (cal2->getSkippedWallTimeOption() != UCAL_WALLTIME_FIRST) { in TestAmbiguousWallTimeAPIs()
2463 cal2->setRepeatedWallTimeOption(UCAL_WALLTIME_NEXT_VALID); in TestAmbiguousWallTimeAPIs()
2464 if (cal2->getRepeatedWallTimeOption() != UCAL_WALLTIME_FIRST) { in TestAmbiguousWallTimeAPIs()
2469 delete cal2; in TestAmbiguousWallTimeAPIs()
2809 LocalPointer<Calendar> cal2(cal->clone()); in TestCloneLocale() local
2810 Locale l = cal2->getLocale(ULOC_VALID_LOCALE, status); in TestCloneLocale()
3504 LocalPointer<Calendar> cal2(Calendar::createInstance(LOCALE_PAIRS[i + 1], status)); in TestWeekData() local
3509 UCalendarDaysOfWeek dow2 = cal2->getFirstDayOfWeek(status); in TestWeekData()
3515 uint8_t minDays2 = cal2->getMinimalDaysInFirstWeek(); in TestWeekData()
3522 UCalendarWeekdayType wdt2 = cal2->getDayOfWeekType((UCalendarDaysOfWeek)d, status); in TestWeekData()