Searched refs:dfo (Results 1 – 6 of 6) sorted by relevance
/PHP-5.3/ext/intl/dateformat/ |
H A D | dateformat_attr.c | 50 … = (char *)udat_getLocaleByType(DATE_FORMAT_OBJECT(dfo), ULOC_ACTUAL_LOCALE, &INTL_DATA_ERROR_CODE… in internal_set_calendar() 84 RETURN_LONG(dfo->date_type ); in PHP_FUNCTION() 110 RETURN_LONG(dfo->time_type ); in PHP_FUNCTION() 137 RETURN_LONG(dfo->calendar); in PHP_FUNCTION() 163 if( dfo->timezone_id ){ in PHP_FUNCTION() 194 internal_set_calendar( dfo, timezone_id, timezone_id_len, dfo->calendar, return_value TSRMLS_CC ); in PHP_FUNCTION() 197 if( dfo->timezone_id ){ in PHP_FUNCTION() 198 efree(dfo->timezone_id); in PHP_FUNCTION() 314 loc = (char *)udat_getLocaleByType(DATE_FORMAT_OBJECT(dfo), loc_type,&INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION() 403 …internal_set_calendar( dfo, dfo->timezone_id, strlen(dfo->timezone_id), calendar, return_value TSR… in PHP_FUNCTION() [all …]
|
H A D | dateformat_format.c | 40 …needed=udat_format( DATE_FORMAT_OBJECT(dfo), timestamp, NULL, resultlengthneeded, NULL, &INTL_DATA… in internal_format() 41 if(INTL_DATA_ERROR_CODE(dfo)==U_BUFFER_OVERFLOW_ERROR) in internal_format() 43 INTL_DATA_ERROR_CODE(dfo)=U_ZERO_ERROR; in internal_format() 45 …udat_format( DATE_FORMAT_OBJECT(dfo), timestamp, formatted, resultlengthneeded, NULL, &INTL_DATA_E… in internal_format() 48 if (formatted && U_FAILURE( INTL_DATA_ERROR_CODE(dfo) ) ) { in internal_format() 52 INTL_METHOD_CHECK_STATUS( dfo, "Date formatting failed" ); in internal_format() 109 pcal = udat_getCalendar(DATE_FORMAT_OBJECT(dfo)); in internal_get_timestamp() 112 if( INTL_DATA_ERROR_CODE(dfo) != U_ZERO_ERROR){ in internal_get_timestamp() 117 return ucal_getMillis(pcal, &INTL_DATA_ERROR_CODE(dfo) ); in internal_get_timestamp() 159 timestamp = internal_get_timestamp(dfo, hash_arr TSRMLS_CC); in PHP_FUNCTION() [all …]
|
H A D | dateformat_parse.c | 46 INTL_METHOD_CHECK_STATUS(dfo, "Error converting timezone to UTF-16" ); in internal_parse_to_timestamp() 48 …mestamp = udat_parse( DATE_FORMAT_OBJECT(dfo), text_utf16, text_utf16_len, parse_pos, &INTL_DATA_E… in internal_parse_to_timestamp() 53 INTL_METHOD_CHECK_STATUS( dfo, "Date parsing failed" ); in internal_parse_to_timestamp() 93 INTL_METHOD_CHECK_STATUS(dfo, "Error converting timezone to UTF-16" ); in internal_parse_to_localtime() 95 parsed_calendar = udat_getCalendar(DATE_FORMAT_OBJECT(dfo)); in internal_parse_to_localtime() 96 …arseCalendar( DATE_FORMAT_OBJECT(dfo), parsed_calendar, text_utf16, text_utf16_len, parse_pos, &IN… in internal_parse_to_localtime() 102 INTL_METHOD_CHECK_STATUS( dfo, "Date parsing failed" ); in internal_parse_to_localtime() 107 add_to_localtime_arr( dfo, return_value, parsed_calendar, UCAL_SECOND, CALENDAR_SEC TSRMLS_CC); in internal_parse_to_localtime() 108 add_to_localtime_arr( dfo, return_value, parsed_calendar, UCAL_MINUTE, CALENDAR_MIN TSRMLS_CC); in internal_parse_to_localtime() 114 add_to_localtime_arr( dfo, return_value, parsed_calendar, UCAL_MONTH, CALENDAR_MON TSRMLS_CC); in internal_parse_to_localtime() [all …]
|
H A D | dateformat.c | 88 IntlDateFormatter_object* dfo; in datefmt_ctor() local 113 if (DATE_FORMAT_OBJECT(dfo) != NULL) { in datefmt_ctor() 123 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor() 137 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor() 154 if (!U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor() 157 calendar, &INTL_DATA_ERROR_CODE(dfo)); in datefmt_ctor() 158 if (!U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor() 174 dfo->date_type = date_type; in datefmt_ctor() 175 dfo->time_type = time_type; in datefmt_ctor() 176 dfo->calendar = calendar; in datefmt_ctor() [all …]
|
H A D | dateformat_class.h | 40 #define DATE_FORMAT_METHOD_INIT_VARS INTL_METHOD_INIT_VARS(IntlDateFormatter, dfo) 41 #define DATE_FORMAT_METHOD_FETCH_OBJECT_NO_CHECK INTL_METHOD_FETCH_OBJECT(IntlDateFormatter, dfo) 44 if (dfo->datef_data.udatf == NULL) \ 46 …intl_errors_set(&dfo->datef_data.error, U_ILLEGAL_ARGUMENT_ERROR, "Found unconstructed IntlDateFor… 50 #define DATE_FORMAT_OBJECT(dfo) (dfo)->datef_data.udatf argument
|
H A D | dateformat_class.c | 45 IntlDateFormatter_object* dfo = (IntlDateFormatter_object*)object; in IntlDateFormatter_object_free() local 47 zend_object_std_dtor( &dfo->zo TSRMLS_CC ); in IntlDateFormatter_object_free() 49 dateformat_data_free( &dfo->datef_data TSRMLS_CC ); in IntlDateFormatter_object_free() 51 if( dfo->timezone_id ){ in IntlDateFormatter_object_free() 52 efree(dfo->timezone_id); in IntlDateFormatter_object_free() 55 efree( dfo ); in IntlDateFormatter_object_free() 90 IntlDateFormatter_object *dfo, *new_dfo; in IntlDateFormatter_object_clone() local 99 if (dfo->datef_data.udatf != NULL) { in IntlDateFormatter_object_clone() 100 DATE_FORMAT_OBJECT(new_dfo) = udat_clone(DATE_FORMAT_OBJECT(dfo), &INTL_DATA_ERROR_CODE(dfo)); in IntlDateFormatter_object_clone() 101 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in IntlDateFormatter_object_clone() [all …]
|
Completed in 17 milliseconds