• Home
  • Raw
  • Download

Lines Matching refs:caldef

107     UCalendar *caldef = 0, *caldef2 = 0, *calfr = 0, *calit = 0, *calfrclone = 0;  in TestCalendar()  local
302 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestCalendar()
345 if(caldef && caldef2 && calfr && calit) { in TestCalendar()
346 if(ucal_equivalentTo(caldef, caldef2) == FALSE || ucal_equivalentTo(caldef, calfr)== TRUE || in TestCalendar()
347 ucal_equivalentTo(caldef, calit)== TRUE || ucal_equivalentTo(calfr, calfrclone) == FALSE) { in TestCalendar()
366 ucal_close(caldef); in TestCalendar()
376 …resultlengthneeded=ucal_getTimeZoneDisplayName(caldef, UCAL_DST, "en_US", NULL, resultlength, &sta… in TestCalendar()
383 ucal_getTimeZoneDisplayName(caldef, UCAL_DST, "en_US", result, resultlength, &status); in TestCalendar()
405 ucal_getTimeZoneDisplayName(caldef, UCAL_SHORT_DST, "en_US", result, resultlength, &status); in TestCalendar()
411 ucal_getTimeZoneDisplayName(caldef, UCAL_STANDARD, "en_US", result, resultlength, &status); in TestCalendar()
417 … ucal_getTimeZoneDisplayName(caldef, UCAL_SHORT_STANDARD, "en_US", result, resultlength, &status); in TestCalendar()
429 ucal_setAttribute(caldef, UCAL_LENIENT, count2); in TestCalendar()
431 ucal_getAttribute(calfr, UCAL_LENIENT)!=ucal_getAttribute(caldef, UCAL_LENIENT) ) in TestCalendar()
469 ucal_setDateTime(caldef, 1999, UCAL_MARCH, 3, 10, 45, 20, &status); in TestCalendar()
470 ucal_inDaylightTime(caldef, &status ); in TestCalendar()
474 if(!ucal_inDaylightTime(caldef, &status)) in TestCalendar()
480 ucal_close(caldef); in TestCalendar()
490caldef = ucal_open(NULL, 0, ucalGetTypeTestPtr->locale, ucalGetTypeTestPtr->calType, &status); in TestCalendar()
492 const char * calType = ucal_getType(caldef, &status); in TestCalendar()
501 ucal_close(caldef); in TestCalendar()
518 UCalendar *caldef = 0, *caldef2 = 0, *caldef3 = 0; in TestGetSetDateAPI() local
535 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestGetSetDateAPI()
546 ucal_close(caldef); in TestGetSetDateAPI()
555 d1=ucal_getMillis(caldef, &status); in TestGetSetDateAPI()
562 ucal_setMillis(caldef, d2, &status); in TestGetSetDateAPI()
568 d1=ucal_getMillis(caldef, &status); in TestGetSetDateAPI()
712 ucal_setDate(caldef,1971, UCAL_DECEMBER, 17, &status); in TestGetSetDateAPI()
717 d1=ucal_getMillis(caldef, &status); in TestGetSetDateAPI()
726 ucal_setDate(caldef, 1999, UCAL_JANUARY, 10, &status); in TestGetSetDateAPI()
727 verify1("1999 10th day of January is :", caldef, datdef, 1999, UCAL_JANUARY, 10); in TestGetSetDateAPI()
728 ucal_setDate(caldef, 1999, UCAL_DECEMBER, 3, &status); in TestGetSetDateAPI()
729 verify1("1999 3rd day of December is :", caldef, datdef, 1999, UCAL_DECEMBER, 3); in TestGetSetDateAPI()
730 ucal_setDate(caldef, 2000, UCAL_MAY, 3, &status); in TestGetSetDateAPI()
731 verify1("2000 3rd day of May is :", caldef, datdef, 2000, UCAL_MAY, 3); in TestGetSetDateAPI()
732 ucal_setDate(caldef, 1999, UCAL_AUGUST, 32, &status); in TestGetSetDateAPI()
733 verify1("1999 32th day of August is :", caldef, datdef, 1999, UCAL_SEPTEMBER, 1); in TestGetSetDateAPI()
734 ucal_setDate(caldef, 1999, UCAL_MARCH, 0, &status); in TestGetSetDateAPI()
735 verify1("1999 0th day of March is :", caldef, datdef, 1999, UCAL_FEBRUARY, 28); in TestGetSetDateAPI()
736 ucal_setDate(caldef, 0, UCAL_MARCH, 12, &status); in TestGetSetDateAPI()
743 ucal_setDateTime(caldef,1972, UCAL_MAY, 3, 16, 30, 42, &status); in TestGetSetDateAPI()
748 d1=ucal_getMillis(caldef, &status); in TestGetSetDateAPI()
758 ucal_setDateTime(caldef, 1999, UCAL_OCTOBER, 10, 6, 45, 30, &status); in TestGetSetDateAPI()
759 …verify2("1999 10th day of October at 6:45:30 is :", caldef, datdef, 1999, UCAL_OCTOBER, 10, 6, 4… in TestGetSetDateAPI()
760 ucal_setDateTime(caldef, 1999, UCAL_MARCH, 3, 15, 10, 55, &status); in TestGetSetDateAPI()
761 …verify2("1999 3rd day of March at 15:10:55 is :", caldef, datdef, 1999, UCAL_MARCH, 3, 3, 10, 55… in TestGetSetDateAPI()
762 ucal_setDateTime(caldef, 1999, UCAL_MAY, 3, 25, 30, 45, &status); in TestGetSetDateAPI()
763 … verify2("1999 3rd day of May at 25:30:45 is :", caldef, datdef, 1999, UCAL_MAY, 4, 1, 30, 45, 0); in TestGetSetDateAPI()
764 ucal_setDateTime(caldef, 1999, UCAL_AUGUST, 32, 22, 65, 40, &status); in TestGetSetDateAPI()
765 …verify2("1999 32th day of August at 22:65:40 is :", caldef, datdef, 1999, UCAL_SEPTEMBER, 1, 11, 5… in TestGetSetDateAPI()
766 ucal_setDateTime(caldef, 1999, UCAL_MARCH, 12, 0, 0, 0,&status); in TestGetSetDateAPI()
767 … verify2("1999 12th day of March at 0:0:0 is :", caldef, datdef, 1999, UCAL_MARCH, 12, 0, 0, 0, 0); in TestGetSetDateAPI()
768 ucal_setDateTime(caldef, 1999, UCAL_MARCH, 12, -10, -10,0, &status); in TestGetSetDateAPI()
769 …verify2("1999 12th day of March is at -10:-10:0 :", caldef, datdef, 1999, UCAL_MARCH, 11, 1, 50, 0… in TestGetSetDateAPI()
774 ucal_close(caldef); in TestGetSetDateAPI()