Home
last modified time | relevance | path

Searched refs:dfo (Results 1 – 8 of 8) sorted by relevance

/PHP-5.5/ext/intl/dateformat/
H A Ddateformat_format.c40 …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()
112 intl_error *err = &dfo->datef_data.error; in internal_get_timestamp()
115 internal_get_arr_ele(dfo, hash_arr, (elem), err TSRMLS_CC) in internal_get_timestamp()
130 &INTL_DATA_ERROR_CODE(dfo)); in internal_get_timestamp()
132 if (INTL_DATA_ERROR_CODE(dfo) != U_ZERO_ERROR) { in internal_get_timestamp()
[all …]
H A Ddateformat_parse.c46 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 = (UCalendar *)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 Ddateformat_attr.c51 RETURN_LONG(dfo->date_type ); in PHP_FUNCTION()
77 RETURN_LONG(dfo->time_type ); in PHP_FUNCTION()
106 …ength = udat_toPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_ER… in PHP_FUNCTION()
109 INTL_DATA_ERROR_CODE(dfo) = U_ZERO_ERROR; in PHP_FUNCTION()
111 …ength = udat_toPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_ER… in PHP_FUNCTION()
112 if(U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in PHP_FUNCTION()
159 INTL_METHOD_CHECK_STATUS(dfo, "Error setting symbol value"); in PHP_FUNCTION()
190 loc = (char *)udat_getLocaleByType(DATE_FORMAT_OBJECT(dfo), loc_type,&INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION()
191 INTL_METHOD_CHECK_STATUS(dfo, "Error getting locale"); in PHP_FUNCTION()
219 RETVAL_BOOL(udat_isLenient(DATE_FORMAT_OBJECT(dfo))); in PHP_FUNCTION()
[all …]
H A Ddateformat_create.cpp59 IntlDateFormatter_object* dfo; in datefmt_ctor() local
81 if (DATE_FORMAT_OBJECT(dfo) != NULL) { in datefmt_ctor()
89 INTL_DATA_ERROR_P(dfo), calendar, calendar_type, in datefmt_ctor()
111 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor()
122 &INTL_DATA_ERROR_CODE(dfo)); in datefmt_ctor()
126 slength, &INTL_DATA_ERROR_CODE(dfo)); in datefmt_ctor()
129 if (!U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor()
148 dfo->date_type = date_type; in datefmt_ctor()
149 dfo->time_type = time_type; in datefmt_ctor()
150 dfo->calendar = calendar_type; in datefmt_ctor()
[all …]
H A Ddateformat_attrcpp.cpp37 return (DateFormat *)dfo->datef_data.udatf; in fetch_datefmt()
59 fetch_datefmt(dfo)->getTimeZone().getID(res); in PHP_FUNCTION()
61 &Z_STRLEN_P(return_value), &INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION()
85 const TimeZone& tz = fetch_datefmt(dfo)->getTimeZone(); in PHP_FUNCTION()
129 INTL_DATA_ERROR_P(dfo), "datefmt_set_timezone" TSRMLS_CC); in PHP_FUNCTION()
134 fetch_datefmt(dfo)->adoptTimeZone(timezone); in PHP_FUNCTION()
155 if (dfo->calendar == -1) { in PHP_FUNCTION()
160 RETURN_LONG(dfo->calendar); in PHP_FUNCTION()
183 const Calendar *cal = fetch_datefmt(dfo)->getCalendar(); in PHP_FUNCTION()
254 fetch_datefmt(dfo)->adoptCalendar(cal); in PHP_FUNCTION()
[all …]
H A Ddateformat_class.h40 #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 Ddateformat_class.c47 IntlDateFormatter_object* dfo = (IntlDateFormatter_object*)object; in IntlDateFormatter_object_free() local
49 zend_object_std_dtor( &dfo->zo TSRMLS_CC ); in IntlDateFormatter_object_free()
51 if (dfo->requested_locale) { in IntlDateFormatter_object_free()
52 efree( dfo->requested_locale ); in IntlDateFormatter_object_free()
55 dateformat_data_free( &dfo->datef_data TSRMLS_CC ); in IntlDateFormatter_object_free()
57 efree( dfo ); in IntlDateFormatter_object_free()
93 IntlDateFormatter_object *dfo, *new_dfo; in IntlDateFormatter_object_clone() local
102 if (dfo->datef_data.udatf != NULL) { in IntlDateFormatter_object_clone()
103 DATE_FORMAT_OBJECT(new_dfo) = udat_clone(DATE_FORMAT_OBJECT(dfo), &INTL_DATA_ERROR_CODE(dfo)); in IntlDateFormatter_object_clone()
104 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in IntlDateFormatter_object_clone()
[all …]
H A Ddateformat.c85 dfo = (IntlDateFormatter_object *) zend_object_store_get_object( object TSRMLS_CC ); in PHP_FUNCTION()
88 RETURN_LONG( INTL_DATA_ERROR_CODE(dfo) ); in PHP_FUNCTION()
112 dfo = (IntlDateFormatter_object *) zend_object_store_get_object( object TSRMLS_CC ); in PHP_FUNCTION()
115 message = intl_error_get_message( INTL_DATA_ERROR_P(dfo) TSRMLS_CC ); in PHP_FUNCTION()

Completed in 20 milliseconds