/PHP-5.3/ext/intl/formatter/ |
H A D | formatter_format.c | 79 formatted, formatted_len, NULL, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 80 if (INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR) { in PHP_FUNCTION() 84 formatted, formatted_len, NULL, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 85 if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { in PHP_FUNCTION() 96 if (INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR) { in PHP_FUNCTION() 100 if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { in PHP_FUNCTION() 111 if (INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR) { in PHP_FUNCTION() 115 if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { in PHP_FUNCTION() 173 if (INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR) { in PHP_FUNCTION() 179 if( U_FAILURE( INTL_DATA_ERROR_CODE((nfo)) ) ) { in PHP_FUNCTION() [all …]
|
H A D | formatter_attr.c | 73 INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; in PHP_FUNCTION() 82 INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; in PHP_FUNCTION() 89 INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; in PHP_FUNCTION() 125 if(INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR && length >= value_buf_size) { in PHP_FUNCTION() 127 INTL_DATA_ERROR_CODE(nfo) = U_ZERO_ERROR; in PHP_FUNCTION() 130 if(U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { in PHP_FUNCTION() 193 INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; in PHP_FUNCTION() 279 INTL_DATA_ERROR_CODE(nfo) = U_ZERO_ERROR; in PHP_FUNCTION() 282 if(U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { in PHP_FUNCTION() 368 INTL_DATA_ERROR_CODE(nfo) = U_ZERO_ERROR; in PHP_FUNCTION() [all …]
|
H A D | formatter_parse.c | 66 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 81 … val32 = unum_parse(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 85 …val64 = unum_parseInt64(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(n… in PHP_FUNCTION() 93 … = unum_parseDouble(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 151 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 160 …eCurrency(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, currency, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 171 …16_to_utf8(¤cy_str, ¤cy_len, currency, u_strlen(currency), &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
|
H A D | formatter_main.c | 54 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(n… in numfmt_ctor() 63 …R_OBJECT(nfo) = unum_open(style, spattern, spattern_len, locale, NULL, &INTL_DATA_ERROR_CODE(nfo)); in numfmt_ctor() 117 RETURN_LONG( INTL_DATA_ERROR_CODE(nfo) ); in PHP_FUNCTION()
|
H A D | formatter_class.c | 95 &INTL_DATA_ERROR_CODE(nfo)); in NumberFormatter_object_clone() 96 if (U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { in NumberFormatter_object_clone() 98 intl_errors_set(INTL_DATA_ERROR_P(nfo), INTL_DATA_ERROR_CODE(nfo), in NumberFormatter_object_clone()
|
/PHP-5.3/ext/intl/dateformat/ |
H A D | dateformat.c | 122 pattern_str, pattern_str_len, &INTL_DATA_ERROR_CODE(dfo)); in datefmt_ctor() 123 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor() 125 intl_error_set(NULL, INTL_DATA_ERROR_CODE(dfo), "datefmt_create: " in datefmt_ctor() 136 timezone_str, timezone_str_len, &INTL_DATA_ERROR_CODE(dfo)); in datefmt_ctor() 137 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor() 138 intl_error_set(NULL, INTL_DATA_ERROR_CODE(dfo), "datefmt_create: " 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() 162 intl_error_set(NULL, INTL_DATA_ERROR_CODE(dfo), "datefmt_create" in datefmt_ctor() [all …]
|
H A D | dateformat_format.c | 40 …t( DATE_FORMAT_OBJECT(dfo), timestamp, NULL, resultlengthneeded, NULL, &INTL_DATA_ERROR_CODE(dfo)); 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 …TE_FORMAT_OBJECT(dfo), timestamp, formatted, resultlengthneeded, NULL, &INTL_DATA_ERROR_CODE(dfo)); in internal_format() 48 if (formatted && U_FAILURE( INTL_DATA_ERROR_CODE(dfo) ) ) { in internal_format() 111 ucal_setDateTime( pcal, year, month, mday, hour, minute, second, &INTL_DATA_ERROR_CODE(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()
|
H A D | dateformat_attr.c | 46 …16(&timezone_utf16, &timezone_utf16_len, timezone_id, timezone_id_len, &INTL_DATA_ERROR_CODE(dfo)); in internal_set_calendar() 50 …ar *)udat_getLocaleByType(DATE_FORMAT_OBJECT(dfo), ULOC_ACTUAL_LOCALE, &INTL_DATA_ERROR_CODE(dfo)); in internal_set_calendar() 53 …ucal_obj = ucal_open(timezone_utf16, timezone_utf16_len, locale, calendar, &INTL_DATA_ERROR_CODE(d… in internal_set_calendar() 230 …oPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION() 231 if(INTL_DATA_ERROR_CODE(dfo) == U_BUFFER_OVERFLOW_ERROR && length >= USIZE( value_buf )) { in PHP_FUNCTION() 233 INTL_DATA_ERROR_CODE(dfo) = U_ZERO_ERROR; in PHP_FUNCTION() 235 …Pattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_ERROR_CODE(dfo) ); in PHP_FUNCTION() 236 if(U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in PHP_FUNCTION() 275 intl_convert_utf8_to_utf16(&svalue, &slength, value, value_len, &INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION() 314 loc = (char *)udat_getLocaleByType(DATE_FORMAT_OBJECT(dfo), loc_type,&INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION()
|
H A D | dateformat_parse.c | 45 …t_utf8_to_utf16(&text_utf16, &text_utf16_len, text_to_parse, text_len, &INTL_DATA_ERROR_CODE(dfo)); in internal_parse_to_timestamp() 48 …parse( DATE_FORMAT_OBJECT(dfo), text_utf16, text_utf16_len, parse_pos, &INTL_DATA_ERROR_CODE(dfo)); in internal_parse_to_timestamp() 67 long calendar_field_val = ucal_get( parsed_calendar, calendar_field, &INTL_DATA_ERROR_CODE(dfo)); in add_to_localtime_arr() 92 …t_utf8_to_utf16(&text_utf16, &text_utf16_len, text_to_parse, text_len, &INTL_DATA_ERROR_CODE(dfo)); in internal_parse_to_localtime() 96 …T_OBJECT(dfo), parsed_calendar, text_utf16, text_utf16_len, parse_pos, &INTL_DATA_ERROR_CODE(dfo)); in internal_parse_to_localtime() 117 isInDST = ucal_inDaylightTime(parsed_calendar , &INTL_DATA_ERROR_CODE(dfo)); in internal_parse_to_localtime()
|
H A D | dateformat_class.c | 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() 103 intl_errors_set(INTL_DATA_ERROR_P(dfo), INTL_DATA_ERROR_CODE(dfo), in IntlDateFormatter_object_clone()
|
/PHP-5.3/ext/intl/ |
H A D | intl_data.h | 42 #define INTL_DATA_ERROR_CODE(obj) INTL_ERROR_CODE(INTL_DATA_ERROR((obj))) macro 59 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE((obj)) TSRMLS_CC ); \ 60 if( U_FAILURE( INTL_DATA_ERROR_CODE((obj)) ) ) \ 68 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE((obj)) TSRMLS_CC ); \ 69 if( U_FAILURE( INTL_DATA_ERROR_CODE((obj)) ) ) \ 80 intl_convert_utf16_to_utf8(&u8value, &u8len, ustring, ulen, &INTL_DATA_ERROR_CODE((obj))); \
|
/PHP-5.3/ext/intl/msgformat/ |
H A D | msgformat_parse.c | 39 intl_convert_utf8_to_utf16(&usource, &usrc_len, source, src_len, &INTL_DATA_ERROR_CODE(mfo)); in msgfmt_do_parse() 42 …umsg_parse_helper(MSG_FORMAT_OBJECT(mfo), &count, &fargs, usource, usrc_len, &INTL_DATA_ERROR_CODE… in msgfmt_do_parse() 116 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(m… in PHP_FUNCTION() 117 if( U_FAILURE(INTL_DATA_ERROR_CODE((mfo))) ) in PHP_FUNCTION() 133 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { in PHP_FUNCTION() 141 …MSG_FORMAT_OBJECT(mfo) = umsg_open(spattern, spattern_len, slocale, NULL, &INTL_DATA_ERROR_CODE(mf… in PHP_FUNCTION()
|
H A D | msgformat_format.c | 66 …SG_FORMAT_OBJECT(mfo), count, fargs, &formatted, &formatted_len, &INTL_DATA_ERROR_CODE(mfo) TSRMLS… in msgfmt_do_format() 74 if (formatted && U_FAILURE( INTL_DATA_ERROR_CODE(mfo) ) ) { in msgfmt_do_format() 141 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(m… in PHP_FUNCTION() 142 if( U_FAILURE(INTL_DATA_ERROR_CODE((mfo))) ) in PHP_FUNCTION() 158 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { in PHP_FUNCTION() 166 …MSG_FORMAT_OBJECT(mfo) = umsg_open(spattern, spattern_len, slocale, NULL, &INTL_DATA_ERROR_CODE(mf… in PHP_FUNCTION()
|
H A D | msgformat.c | 56 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(m… in msgfmt_ctor() 68 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { in msgfmt_ctor() 81 …MSG_FORMAT_OBJECT(mfo) = umsg_open(spattern, spattern_len, locale, NULL, &INTL_DATA_ERROR_CODE(mfo… in msgfmt_ctor() 136 RETURN_LONG( INTL_DATA_ERROR_CODE(mfo) ); in PHP_FUNCTION()
|
H A D | msgformat_attr.c | 82 intl_convert_utf8_to_utf16(&spattern, &spattern_len, value, value_len, &INTL_DATA_ERROR_CODE(mfo)); in PHP_FUNCTION() 86 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { in PHP_FUNCTION() 94 …umsg_applyPattern(MSG_FORMAT_OBJECT(mfo), spattern, spattern_len, NULL, &INTL_DATA_ERROR_CODE(mfo)… in PHP_FUNCTION()
|
H A D | msgformat_class.c | 94 &INTL_DATA_ERROR_CODE(mfo)); in MessageFormatter_object_clone() 96 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) { in MessageFormatter_object_clone() 97 intl_errors_set(INTL_DATA_ERROR_P(mfo), INTL_DATA_ERROR_CODE(mfo), in MessageFormatter_object_clone()
|
/PHP-5.3/ext/intl/resourcebundle/ |
H A D | resourcebundle.c | 42 ufield = ures_getString( source->child, &ilen, &INTL_DATA_ERROR_CODE(source) ); in resourcebundle_extract_value() 48 bfield = ures_getBinary( source->child, &ilen, &INTL_DATA_ERROR_CODE(source) ); in resourcebundle_extract_value() 54 lfield = ures_getInt( source->child, &INTL_DATA_ERROR_CODE(source) ); in resourcebundle_extract_value() 60 vfield = ures_getIntVector( source->child, &ilen, &INTL_DATA_ERROR_CODE(source) ); in resourcebundle_extract_value()
|
H A D | resourcebundle_class.c | 106 rb->me = ures_open(bundlename, locale, &INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor() 108 rb->me = ures_openDirect(bundlename, locale, &INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor() 113 …if (!fallback && (INTL_DATA_ERROR_CODE(rb) == U_USING_FALLBACK_WARNING || INTL_DATA_ERROR_CODE(rb)… in resourcebundle_ctor() 114 intl_errors_set_code( NULL, INTL_DATA_ERROR_CODE(rb) TSRMLS_CC ); in resourcebundle_ctor() 116 …bundlename, locale, ures_getLocaleByType( rb->me, ULOC_ACTUAL_LOCALE, &INTL_DATA_ERROR_CODE(rb)) ); in resourcebundle_ctor() 169 rb->child = ures_getByIndex( rb->me, meindex, rb->child, &INTL_DATA_ERROR_CODE(rb) ); in resourcebundle_array_fetch() 173 rb->child = ures_getByKey(rb->me, mekey, rb->child, &INTL_DATA_ERROR_CODE(rb) ); in resourcebundle_array_fetch() 180 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE(rb) TSRMLS_CC ); in resourcebundle_array_fetch() 181 if (U_FAILURE(INTL_DATA_ERROR_CODE(rb))) { in resourcebundle_array_fetch() 192 …if (!fallback && (INTL_DATA_ERROR_CODE(rb) == U_USING_FALLBACK_WARNING || INTL_DATA_ERROR_CODE(rb)… in resourcebundle_array_fetch() [all …]
|