/PHP-7.1/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 | 67 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 85 … val32 = unum_parse(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 89 …val64 = unum_parseInt64(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(n… in PHP_FUNCTION() 97 … = unum_parseDouble(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 155 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 165 …eCurrency(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, currency, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 176 u8str = intl_convert_utf16_to_utf8(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() 129 RETURN_LONG( INTL_DATA_ERROR_CODE(nfo) ); in PHP_FUNCTION()
|
H A D | formatter_class.c | 77 &INTL_DATA_ERROR_CODE(nfo)); in NumberFormatter_object_clone() 78 if (U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { in NumberFormatter_object_clone() 80 intl_errors_set(INTL_DATA_ERROR_P(nfo), INTL_DATA_ERROR_CODE(nfo), in NumberFormatter_object_clone()
|
/PHP-7.1/ext/intl/dateformat/ |
H A D | dateformat_format.c | 41 …t( DATE_FORMAT_OBJECT(dfo), timestamp, NULL, resultlengthneeded, NULL, &INTL_DATA_ERROR_CODE(dfo)); in internal_format() 42 if(INTL_DATA_ERROR_CODE(dfo)==U_BUFFER_OVERFLOW_ERROR) in internal_format() 44 INTL_DATA_ERROR_CODE(dfo)=U_ZERO_ERROR; in internal_format() 46 …TE_FORMAT_OBJECT(dfo), timestamp, formatted, resultlengthneeded, NULL, &INTL_DATA_ERROR_CODE(dfo)); in internal_format() 49 if (formatted && U_FAILURE( INTL_DATA_ERROR_CODE(dfo) ) ) { in internal_format() 130 &INTL_DATA_ERROR_CODE(dfo)); in internal_get_timestamp() 132 if (INTL_DATA_ERROR_CODE(dfo) != U_ZERO_ERROR) { in internal_get_timestamp() 133 intl_errors_set(err, INTL_DATA_ERROR_CODE(dfo), "datefmt_format: " in internal_get_timestamp() 139 ucal_setDateTime(pcal, year, month, mday, hour, minute, second, &INTL_DATA_ERROR_CODE(dfo)); in internal_get_timestamp() 143 result = ucal_getMillis(pcal, &INTL_DATA_ERROR_CODE(dfo)); in internal_get_timestamp() [all …]
|
H A D | dateformat_attr.c | 106 …oPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION() 107 if(INTL_DATA_ERROR_CODE(dfo) == U_BUFFER_OVERFLOW_ERROR && length >= USIZE( value_buf )) { in PHP_FUNCTION() 109 INTL_DATA_ERROR_CODE(dfo) = U_ZERO_ERROR; in PHP_FUNCTION() 111 …Pattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_ERROR_CODE(dfo) ); in PHP_FUNCTION() 112 if(U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in PHP_FUNCTION() 151 intl_convert_utf8_to_utf16(&svalue, &slength, value, value_len, &INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION() 190 loc = (char *)udat_getLocaleByType(DATE_FORMAT_OBJECT(dfo), loc_type,&INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION()
|
H A D | dateformat_create.cpp | 131 pattern_str, pattern_str_len, &INTL_DATA_ERROR_CODE(dfo)); in datefmt_ctor() 132 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor() 134 intl_error_set(NULL, INTL_DATA_ERROR_CODE(dfo), "datefmt_create: " in datefmt_ctor() 142 slength, &INTL_DATA_ERROR_CODE(dfo)); in datefmt_ctor() 146 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor() 147 intl_error_set(NULL, INTL_DATA_ERROR_CODE(dfo), "datefmt_create: error applying pattern", 0); in datefmt_ctor() 152 if (!U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor() 165 intl_error_set(NULL, INTL_DATA_ERROR_CODE(dfo), "datefmt_create: date " in datefmt_ctor()
|
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 …zend_long calendar_field_val = ucal_get( parsed_calendar, calendar_field, &INTL_DATA_ERROR_CODE(df… 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 | 94 DATE_FORMAT_OBJECT(new_dfo) = udat_clone(DATE_FORMAT_OBJECT(dfo), &INTL_DATA_ERROR_CODE(dfo)); in IntlDateFormatter_object_clone() 95 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in IntlDateFormatter_object_clone() 97 intl_errors_set(INTL_DATA_ERROR_P(dfo), INTL_DATA_ERROR_CODE(dfo), in IntlDateFormatter_object_clone()
|
H A D | dateformat.c | 88 RETURN_LONG( INTL_DATA_ERROR_CODE(dfo) ); in PHP_FUNCTION()
|
H A D | dateformat_attrcpp.cpp | 61 u8str = intl_charFromString(res, &INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION()
|
/PHP-7.1/ext/intl/ |
H A D | intl_data.h | 42 #define INTL_DATA_ERROR_CODE(obj) INTL_ERROR_CODE(INTL_DATA_ERROR((obj))) macro 69 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE((obj)) ); \ 70 if( U_FAILURE( INTL_DATA_ERROR_CODE((obj)) ) ) \ 78 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE((obj)) ); \ 79 if( U_FAILURE( INTL_DATA_ERROR_CODE((obj)) ) ) \ 88 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE((obj)) ); \ 89 if( U_FAILURE( INTL_DATA_ERROR_CODE((obj)) ) ) \ 98 u8str = intl_convert_utf16_to_utf8(ustring, ulen, &INTL_DATA_ERROR_CODE((obj))); \
|
/PHP-7.1/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() 118 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(m… in PHP_FUNCTION() 119 if( U_FAILURE(INTL_DATA_ERROR_CODE((mfo))) ) in PHP_FUNCTION() 135 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { in PHP_FUNCTION() 143 …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 | 53 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) { in msgfmt_do_format() 125 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(m… in PHP_FUNCTION() 126 if( U_FAILURE(INTL_DATA_ERROR_CODE((mfo))) ) in PHP_FUNCTION() 142 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { in PHP_FUNCTION() 150 …MSG_FORMAT_OBJECT(mfo) = umsg_open(spattern, spattern_len, slocale, NULL, &INTL_DATA_ERROR_CODE(mf… in PHP_FUNCTION()
|
H A D | msgformat.c | 57 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(m… in msgfmt_ctor() 69 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { in msgfmt_ctor() 82 …MSG_FORMAT_OBJECT(mfo) = umsg_open(spattern, spattern_len, locale, NULL, &INTL_DATA_ERROR_CODE(mfo… in msgfmt_ctor() 149 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 | 78 &INTL_DATA_ERROR_CODE(mfo)); in MessageFormatter_object_clone() 80 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) { in MessageFormatter_object_clone() 81 intl_errors_set(INTL_DATA_ERROR_P(mfo), INTL_DATA_ERROR_CODE(mfo), in MessageFormatter_object_clone()
|
/PHP-7.1/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 | 112 rb->me = ures_open(bundlename, locale, &INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor() 114 rb->me = ures_openDirect(bundlename, locale, &INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor() 119 if (!fallback && (INTL_DATA_ERROR_CODE(rb) == U_USING_FALLBACK_WARNING || in resourcebundle_ctor() 120 INTL_DATA_ERROR_CODE(rb) == U_USING_DEFAULT_WARNING)) { in resourcebundle_ctor() 122 intl_errors_set_code(NULL, INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor() 127 rb->me, ULOC_ACTUAL_LOCALE, &INTL_DATA_ERROR_CODE(rb))); in resourcebundle_ctor() 194 rb->child = ures_getByKey(rb->me, mekey, rb->child, &INTL_DATA_ERROR_CODE(rb) ); in resourcebundle_array_fetch() 201 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE(rb) ); in resourcebundle_array_fetch() 202 if (U_FAILURE(INTL_DATA_ERROR_CODE(rb))) { in resourcebundle_array_fetch() 213 …if (!fallback && (INTL_DATA_ERROR_CODE(rb) == U_USING_FALLBACK_WARNING || INTL_DATA_ERROR_CODE(rb)… in resourcebundle_array_fetch() [all …]
|
/PHP-7.1/ext/intl/transliterator/ |
H A D | transliterator_methods.c | 181 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE( to ) ); in PHP_FUNCTION() 182 if( U_FAILURE( INTL_DATA_ERROR_CODE( to ) ) ) in PHP_FUNCTION()
|
H A D | transliterator_class.c | 173 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE( to_orig ) ); in Transliterator_clone_obj()
|