Lines Matching refs:co
232 int32_t result = (co->ucal->*func)( in _php_intlcal_field_uec_ret_in32t_method()
233 (UCalendarDateFields)field, CALENDAR_ERROR_CODE(co)); in _php_intlcal_field_uec_ret_in32t_method()
234 INTL_METHOD_CHECK_STATUS(co, "Call to ICU method has failed"); in _php_intlcal_field_uec_ret_in32t_method()
256 UDate result = co->ucal->getTime(CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION()
257 INTL_METHOD_CHECK_STATUS(co, in PHP_FUNCTION()
275 co->ucal->setTime((UDate)time_arg, CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION()
276 INTL_METHOD_CHECK_STATUS(co, "Call to underlying method failed"); in PHP_FUNCTION()
297 co->ucal->add((UCalendarDateFields)field, (int32_t)amount, CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION()
298 INTL_METHOD_CHECK_STATUS(co, "intlcal_add: Call to underlying method failed"); in PHP_FUNCTION()
321 CALENDAR_ERROR_P(co), "intlcal_set_time_zone"); in PHP_FUNCTION()
326 co->ucal->adoptTimeZone(timeZone); in PHP_FUNCTION()
354 UBool res = (co->ucal->*func)(*when_co->ucal, CALENDAR_ERROR_CODE(co)); in _php_intlcal_before_after()
355 INTL_METHOD_CHECK_STATUS(co, "intlcal_before/after: Error calling ICU method"); in _php_intlcal_before_after()
396 co->ucal->set((UCalendarDateFields)args[0], (int32_t)args[1]); in PHP_FUNCTION()
398 co->ucal->set((int32_t)args[0], (int32_t)args[1], (int32_t)args[2]); in PHP_FUNCTION()
403 …co->ucal->set((int32_t)args[0], (int32_t)args[1], (int32_t)args[2], (int32_t)args[3], (int32_t)arg… in PHP_FUNCTION()
405 …co->ucal->set((int32_t)args[0], (int32_t)args[1], (int32_t)args[2], (int32_t)args[3], (int32_t)arg… in PHP_FUNCTION()
433 co->ucal->roll((UCalendarDateFields)field, (int32_t)value, CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION()
435 INTL_METHOD_CHECK_STATUS(co, "intlcal_roll: Error calling ICU Calendar::roll"); in PHP_FUNCTION()
454 co->ucal->clear(); in PHP_FUNCTION()
458 co->ucal->clear((UCalendarDateFields)field); in PHP_FUNCTION()
479 int32_t result = co->ucal->fieldDifference((UDate)when, in PHP_FUNCTION()
480 (UCalendarDateFields)field, CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION()
481 INTL_METHOD_CHECK_STATUS(co, in PHP_FUNCTION()
513 int32_t result = co->ucal->getDayOfWeekType( in PHP_FUNCTION()
514 (UCalendarDaysOfWeek)dow, CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION()
515 INTL_METHOD_CHECK_STATUS(co, in PHP_FUNCTION()
532 int32_t result = co->ucal->getFirstDayOfWeek(CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION()
533 INTL_METHOD_CHECK_STATUS(co, in PHP_FUNCTION()
555 int32_t result = (co->ucal->*func)((UCalendarDateFields)field); in _php_intlcal_field_ret_in32t_method()
556 INTL_METHOD_CHECK_STATUS(co, "Call to ICU method has failed"); in _php_intlcal_field_ret_in32t_method()
590 Locale locale = co->ucal->getLocale((ULocDataLocaleType)locale_type, in PHP_FUNCTION()
591 CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION()
592 INTL_METHOD_CHECK_STATUS(co, in PHP_FUNCTION()
615 uint8_t result = co->ucal->getMinimalDaysInFirstWeek(); in PHP_FUNCTION()
616 INTL_METHOD_CHECK_STATUS(co, in PHP_FUNCTION()
639 TimeZone *tz = co->ucal->getTimeZone().clone(); in PHP_FUNCTION()
641 intl_errors_set(CALENDAR_ERROR_P(co), U_MEMORY_ALLOCATION_ERROR, in PHP_FUNCTION()
660 RETURN_STRING(co->ucal->getType()); in PHP_FUNCTION()
677 int32_t res = co->ucal->getWeekendTransition((UCalendarDaysOfWeek)dow, in PHP_FUNCTION()
678 CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION()
679 INTL_METHOD_CHECK_STATUS(co, "intlcal_get_weekend_transition: " in PHP_FUNCTION()
696 UBool ret = co->ucal->inDaylightTime(CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION()
697 INTL_METHOD_CHECK_STATUS(co, "intlcal_in_daylight_time: " in PHP_FUNCTION()
723 RETURN_BOOL((int)co->ucal->isEquivalentTo(*other_co->ucal)); in PHP_FUNCTION()
737 RETURN_BOOL((int)co->ucal->isLenient()); in PHP_FUNCTION()
754 RETURN_BOOL((int)co->ucal->isSet((UCalendarDateFields)field)); in PHP_FUNCTION()
771 RETURN_BOOL((int)co->ucal->isWeekend()); in PHP_FUNCTION()
773 UBool ret = co->ucal->isWeekend((UDate)date, CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION()
774 INTL_METHOD_CHECK_STATUS(co, "intlcal_is_weekend: " in PHP_FUNCTION()
795 co->ucal->setFirstDayOfWeek((UCalendarDaysOfWeek)dow); in PHP_FUNCTION()
812 co->ucal->setLenient((UBool) is_lenient); in PHP_FUNCTION()
835 co->ucal->setMinimalDaysInFirstWeek((uint8_t)num_days); in PHP_FUNCTION()
859 UBool result = co->ucal->equals(*other_co->ucal, CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION()
860 INTL_METHOD_CHECK_STATUS(co, "intlcal_equals: error calling ICU Calendar::equals"); in PHP_FUNCTION()
876 RETURN_LONG(co->ucal->getRepeatedWallTimeOption()); in PHP_FUNCTION()
890 RETURN_LONG(co->ucal->getSkippedWallTimeOption()); in PHP_FUNCTION()
911 co->ucal->setRepeatedWallTimeOption((UCalendarWallTimeOption)option); in PHP_FUNCTION()
935 co->ucal->setSkippedWallTimeOption((UCalendarWallTimeOption)option); in PHP_FUNCTION()
1040 double date = co->ucal->getTime(CALENDAR_ERROR_CODE(co)) / 1000.; in PHP_FUNCTION()
1046 INTL_METHOD_CHECK_STATUS(co, "Call to ICU method has failed"); in PHP_FUNCTION()
1049 intl_errors_set(CALENDAR_ERROR_P(co), U_ILLEGAL_ARGUMENT_ERROR, in PHP_FUNCTION()
1062 const TimeZone& tz = co->ucal->getTimeZone(); in PHP_FUNCTION()
1064 &tz, CALENDAR_ERROR_P(co), "intlcal_to_date_time", &tmp); in PHP_FUNCTION()
1090 intl_errors_set(CALENDAR_ERROR_P(co), U_ILLEGAL_ARGUMENT_ERROR, in PHP_FUNCTION()
1113 co = Z_INTL_CALENDAR_P(object); in PHP_FUNCTION()
1114 if (co == NULL) in PHP_FUNCTION()
1117 RETURN_LONG((zend_long)CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION()
1132 co = Z_INTL_CALENDAR_P(object); in PHP_FUNCTION()
1133 if (co == NULL) in PHP_FUNCTION()
1137 message = intl_error_get_message(CALENDAR_ERROR_P(co)); in PHP_FUNCTION()