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