Lines Matching refs:caldef2
96 UCalendar *caldef = 0, *caldef2 = 0, *calfr = 0, *calit = 0, *calfrclone = 0; in TestCalendar() local
284 caldef2=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestCalendar()
322 if(caldef && caldef2 && calfr && calit) { in TestCalendar()
323 if(ucal_equivalentTo(caldef, caldef2) == FALSE || ucal_equivalentTo(caldef, calfr)== TRUE || in TestCalendar()
453 ucal_close(caldef2); in TestCalendar()
490 UCalendar *caldef = 0, *caldef2 = 0, *caldef3 = 0; in TestGetSetDateAPI() local
508 caldef2=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestGetSetDateAPI()
566 dateBit = ucal_get(caldef2, UCAL_MILLISECOND, &status); in TestGetSetDateAPI()
594 idLen = ucal_getTimeZoneID(caldef2, id, sizeof(id)/sizeof(id[0]), &status); in TestGetSetDateAPI()
604 ucal_setMillis(caldef2, d2, &status); in TestGetSetDateAPI()
608 hour=ucal_get(caldef2, UCAL_HOUR_OF_DAY, &status); in TestGetSetDateAPI()
611 ucal_setTimeZone(caldef2,tzID, 3, &status); in TestGetSetDateAPI()
618 idLen = ucal_getTimeZoneID(caldef2, id, sizeof(id)/sizeof(id[0]), &status); in TestGetSetDateAPI()
627 if(hour == ucal_get(caldef2, UCAL_HOUR_OF_DAY, &status)) in TestGetSetDateAPI()
629 …else if((hour-8 + 1) != ucal_get(caldef2, UCAL_HOUR_OF_DAY, &status)) /*because it is not in dayli… in TestGetSetDateAPI()
637 ucal_setTimeZone(caldef2, tzID, 3, &status); in TestGetSetDateAPI()
641 if(d2==ucal_getMillis(caldef2, &status)) in TestGetSetDateAPI()
646 zoneOffset = ucal_get(caldef2, UCAL_ZONE_OFFSET, &status); in TestGetSetDateAPI()
654 ucal_setTimeZone(caldef2, NULL, -1, &status); in TestGetSetDateAPI()
658 if(ucal_getMillis(caldef2, &status)) in TestGetSetDateAPI()
663 zoneOffset = ucal_get(caldef2, UCAL_ZONE_OFFSET, &status); in TestGetSetDateAPI()
743 ucal_close(caldef2); in TestGetSetDateAPI()