• Home
  • Raw
  • Download

Lines Matching refs:cal2

398     Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status);  in TestGenericAPI()  local
401 cal2->setTime(when, status); in TestGenericAPI()
404 if (!(*cal == *cal2)) errln("FAIL: Calendar::operator== failed"); in TestGenericAPI()
405 if ((*cal != *cal2)) errln("FAIL: Calendar::operator!= failed"); in TestGenericAPI()
406 if (!cal->equals(*cal2, status) || in TestGenericAPI()
407 cal->before(*cal2, status) || in TestGenericAPI()
408 cal->after(*cal2, status) || in TestGenericAPI()
412 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
414 cal2->setTime(when + 1000, status); in TestGenericAPI()
415 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
418 if (cal->equals(*cal2, status) || in TestGenericAPI()
419 cal2->before(*cal, status) || in TestGenericAPI()
420 cal->after(*cal2, status) || in TestGenericAPI()
430 if (!(eq=cal->equals(*cal2, status)) || in TestGenericAPI()
431 (b4=cal->before(*cal2, status)) || in TestGenericAPI()
432 (af=cal->after(*cal2, status)) || in TestGenericAPI()
439 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
445 if (cal->equals(*cal2, status) || in TestGenericAPI()
446 cal2->before(*cal, status) || in TestGenericAPI()
447 cal->after(*cal2, status) || in TestGenericAPI()
530 delete cal2; in TestGenericAPI()
2409 Calendar* cal2 = cal->clone(); in TestAmbiguousWallTimeAPIs() local
2411 if (*cal != *cal2) { in TestAmbiguousWallTimeAPIs()
2414 if (!cal->equals(*cal2, status)) { in TestAmbiguousWallTimeAPIs()
2421 cal2->setRepeatedWallTimeOption(UCAL_WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs()
2422 cal2->setSkippedWallTimeOption(UCAL_WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs()
2424 if (*cal == *cal2) { in TestAmbiguousWallTimeAPIs()
2427 if (!cal->equals(*cal2, status)) { in TestAmbiguousWallTimeAPIs()
2434 if (cal2->getRepeatedWallTimeOption() != UCAL_WALLTIME_FIRST) { in TestAmbiguousWallTimeAPIs()
2437 if (cal2->getSkippedWallTimeOption() != UCAL_WALLTIME_FIRST) { in TestAmbiguousWallTimeAPIs()
2441 cal2->setRepeatedWallTimeOption(UCAL_WALLTIME_NEXT_VALID); in TestAmbiguousWallTimeAPIs()
2442 if (cal2->getRepeatedWallTimeOption() != UCAL_WALLTIME_FIRST) { in TestAmbiguousWallTimeAPIs()
2447 delete cal2; in TestAmbiguousWallTimeAPIs()
2787 LocalPointer<Calendar> cal2(cal->clone()); in TestCloneLocale() local
2788 Locale l = cal2->getLocale(ULOC_VALID_LOCALE, status); in TestCloneLocale()
3437 LocalPointer<Calendar> cal2(Calendar::createInstance(LOCALE_PAIRS[i + 1], status)); in TestWeekData() local
3442 UCalendarDaysOfWeek dow2 = cal2->getFirstDayOfWeek(status); in TestWeekData()
3448 uint8_t minDays2 = cal2->getMinimalDaysInFirstWeek(); in TestWeekData()
3455 UCalendarWeekdayType wdt2 = cal2->getDayOfWeekType((UCalendarDaysOfWeek)d, status); in TestWeekData()