Home
last modified time | relevance | path

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

/php-src/ext/intl/dateformat/
H A Ddateformat_attr.c42 RETURN_LONG(dfo->date_type ); in PHP_FUNCTION()
62 RETURN_LONG(dfo->time_type ); in PHP_FUNCTION()
85 …ength = udat_toPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_ER… in PHP_FUNCTION()
88 INTL_DATA_ERROR_CODE(dfo) = U_ZERO_ERROR; in PHP_FUNCTION()
90 …ength = udat_toPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_ER… in PHP_FUNCTION()
91 if(U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in PHP_FUNCTION()
132 INTL_METHOD_CHECK_STATUS(dfo, "Error setting symbol value"); in PHP_FUNCTION()
157 loc = (char *)udat_getLocaleByType(DATE_FORMAT_OBJECT(dfo), loc_type,&INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION()
158 INTL_METHOD_CHECK_STATUS(dfo, "Error getting locale"); in PHP_FUNCTION()
180 RETVAL_BOOL(udat_isLenient(DATE_FORMAT_OBJECT(dfo))); in PHP_FUNCTION()
[all …]
H A Ddateformat_format.c36 …needed=udat_format( DATE_FORMAT_OBJECT(dfo), timestamp, NULL, resultlengthneeded, NULL, &INTL_DATA… in internal_format()
37 if(INTL_DATA_ERROR_CODE(dfo)==U_BUFFER_OVERFLOW_ERROR) in internal_format()
39 INTL_DATA_ERROR_CODE(dfo)=U_ZERO_ERROR; in internal_format()
41 …udat_format( DATE_FORMAT_OBJECT(dfo), timestamp, formatted, resultlengthneeded, NULL, &INTL_DATA_E… in internal_format()
103 intl_error *err = &dfo->datef_data.error; in internal_get_timestamp()
106 internal_get_arr_ele(dfo, hash_arr, (elem), err) in internal_get_timestamp()
121 &INTL_DATA_ERROR_CODE(dfo)); in internal_get_timestamp()
123 if (INTL_DATA_ERROR_CODE(dfo) != U_ZERO_ERROR) { in internal_get_timestamp()
165 timestamp = internal_get_timestamp(dfo, hash_arr); in PHP_FUNCTION()
170 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in PHP_FUNCTION()
[all …]
H A Ddateformat_parse.c43 INTL_METHOD_CHECK_STATUS(dfo, "Error converting timezone to UTF-16" ); in internal_parse_to_timestamp()
47 …parseCalendar(DATE_FORMAT_OBJECT(dfo), parsed_calendar, text_utf16, text_utf16_len, parse_pos, &IN… in internal_parse_to_timestamp()
51 INTL_METHOD_CHECK_STATUS( dfo, "Calendar parsing failed" ); in internal_parse_to_timestamp()
52 timestamp = ucal_getMillis( parsed_calendar, &INTL_DATA_ERROR_CODE(dfo)); in internal_parse_to_timestamp()
54 …imestamp = udat_parse(DATE_FORMAT_OBJECT(dfo), text_utf16, text_utf16_len, parse_pos, &INTL_DATA_E… in internal_parse_to_timestamp()
60 INTL_METHOD_CHECK_STATUS( dfo, "Date parsing failed" ); in internal_parse_to_timestamp()
97 INTL_METHOD_CHECK_STATUS(dfo, "Error converting timezone to UTF-16" ); in internal_parse_to_localtime()
99 parsed_calendar = (UCalendar *)udat_getCalendar(DATE_FORMAT_OBJECT(dfo)); in internal_parse_to_localtime()
100 …arseCalendar( DATE_FORMAT_OBJECT(dfo), parsed_calendar, text_utf16, text_utf16_len, parse_pos, &IN… in internal_parse_to_localtime()
106 INTL_METHOD_CHECK_STATUS( dfo, "Date parsing failed" ); in internal_parse_to_localtime()
[all …]
H A Ddateformat_attrcpp.cpp34 return (DateFormat *)dfo->datef_data.udatf; in fetch_datefmt()
51 fetch_datefmt(dfo)->getTimeZone().getID(res); in PHP_FUNCTION()
52 u8str = intl_charFromString(res, &INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION()
70 const TimeZone& tz = fetch_datefmt(dfo)->getTimeZone(); in PHP_FUNCTION()
98 INTL_DATA_ERROR_P(dfo), "datefmt_set_timezone"); in PHP_FUNCTION()
103 fetch_datefmt(dfo)->adoptTimeZone(timezone); in PHP_FUNCTION()
120 if (dfo->calendar == -1) { in PHP_FUNCTION()
125 RETURN_LONG(dfo->calendar); in PHP_FUNCTION()
141 const Calendar *cal = fetch_datefmt(dfo)->getCalendar(); in PHP_FUNCTION()
216 fetch_datefmt(dfo)->adoptCalendar(cal); in PHP_FUNCTION()
[all …]
H A Ddateformat_create.cpp69 IntlDateFormatter_object* dfo; in datefmt_ctor() local
91 if (DATE_FORMAT_OBJECT(dfo) != NULL) { in datefmt_ctor()
133 INTL_DATA_ERROR_P(dfo), "datefmt_create"); in datefmt_ctor()
143 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor()
153 slength, &INTL_DATA_ERROR_CODE(dfo)); in datefmt_ctor()
157 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor()
163 if (!U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor()
182 dfo->date_type = date_type; in datefmt_ctor()
183 dfo->time_type = time_type; in datefmt_ctor()
184 dfo->calendar = calendar_type; in datefmt_ctor()
[all …]
H A Ddateformat_class.c34 IntlDateFormatter_object* dfo = php_intl_dateformatter_fetch_object(object); in IntlDateFormatter_object_free() local
36 zend_object_std_dtor( &dfo->zo ); in IntlDateFormatter_object_free()
38 if (dfo->requested_locale) { in IntlDateFormatter_object_free()
39 efree( dfo->requested_locale ); in IntlDateFormatter_object_free()
42 dateformat_data_free( &dfo->datef_data ); in IntlDateFormatter_object_free()
67 IntlDateFormatter_object *dfo = php_intl_dateformatter_fetch_object(object); in IntlDateFormatter_object_clone() local
72 zend_objects_clone_members(&new_dfo->zo, &dfo->zo); in IntlDateFormatter_object_clone()
75 if (DATE_FORMAT_OBJECT(dfo) != NULL) { in IntlDateFormatter_object_clone()
77 DATE_FORMAT_OBJECT(new_dfo) = udat_clone(DATE_FORMAT_OBJECT(dfo), &error); in IntlDateFormatter_object_clone()
H A Ddateformat_class.h43 #define DATE_FORMAT_METHOD_INIT_VARS INTL_METHOD_INIT_VARS(IntlDateFormatter, dfo)
44 #define DATE_FORMAT_METHOD_FETCH_OBJECT_NO_CHECK INTL_METHOD_FETCH_OBJECT(INTL_DATEFORMATTER, dfo)
47 if (dfo->datef_data.udatf == NULL) \
53 #define DATE_FORMAT_OBJECT(dfo) (dfo)->datef_data.udatf argument
H A Ddateformat.c36 dfo = Z_INTL_DATEFORMATTER_P( object ); in PHP_FUNCTION()
39 RETURN_LONG( INTL_DATA_ERROR_CODE(dfo) ); in PHP_FUNCTION()
56 dfo = Z_INTL_DATEFORMATTER_P( object ); in PHP_FUNCTION()
59 message = intl_error_get_message( INTL_DATA_ERROR_P(dfo) ); in PHP_FUNCTION()

Completed in 18 milliseconds