diff options
Diffstat (limited to 'ext/intl/dateformat/dateformat_format.c')
-rw-r--r-- | ext/intl/dateformat/dateformat_format.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/intl/dateformat/dateformat_format.c b/ext/intl/dateformat/dateformat_format.c index 61c3627cb8..dda1dd4fd7 100644 --- a/ext/intl/dateformat/dateformat_format.c +++ b/ext/intl/dateformat/dateformat_format.c @@ -29,19 +29,19 @@ #include "dateformat_format.h" #include "dateformat_data.h" -/* {{{ +/* {{{ * Internal function which calls the udat_format */ static void internal_format(IntlDateFormatter_object *dfo, UDate timestamp, zval *return_value) { UChar* formatted = NULL; int32_t resultlengthneeded =0 ; - + resultlengthneeded=udat_format( DATE_FORMAT_OBJECT(dfo), timestamp, NULL, resultlengthneeded, NULL, &INTL_DATA_ERROR_CODE(dfo)); if(INTL_DATA_ERROR_CODE(dfo)==U_BUFFER_OVERFLOW_ERROR) { INTL_DATA_ERROR_CODE(dfo)=U_ZERO_ERROR; - formatted=(UChar*)emalloc(sizeof(UChar) * resultlengthneeded); + formatted=(UChar*)emalloc(sizeof(UChar) * resultlengthneeded); udat_format( DATE_FORMAT_OBJECT(dfo), timestamp, formatted, resultlengthneeded, NULL, &INTL_DATA_ERROR_CODE(dfo)); } @@ -56,8 +56,8 @@ static void internal_format(IntlDateFormatter_object *dfo, UDate timestamp, zval /* }}} */ -/* {{{ - * Internal function which fetches an element from the passed array for the key_name passed +/* {{{ + * Internal function which fetches an element from the passed array for the key_name passed */ static int32_t internal_get_arr_ele(IntlDateFormatter_object *dfo, HashTable* hash_arr, char* key_name, intl_error *err) @@ -94,7 +94,7 @@ static int32_t internal_get_arr_ele(IntlDateFormatter_object *dfo, } /* }}} */ -/* {{{ +/* {{{ * Internal function which sets UCalendar from the passed array and retrieves timestamp */ static UDate internal_get_timestamp(IntlDateFormatter_object *dfo, @@ -149,7 +149,7 @@ static UDate internal_get_timestamp(IntlDateFormatter_object *dfo, * Format the time value as a string. }}}*/ /* {{{ proto string datefmt_format( [mixed]int $args or array $args ) * Format the time value as a string. }}}*/ -PHP_FUNCTION(datefmt_format) +PHP_FUNCTION(datefmt_format) { UDate timestamp = 0; HashTable *hash_arr = NULL; @@ -182,7 +182,7 @@ PHP_FUNCTION(datefmt_format) RETURN_FALSE; } } - + internal_format( dfo, timestamp, return_value); } |