Home
last modified time | relevance | path

Searched refs:INTL_DATA_ERROR_CODE (Results 1 – 22 of 22) sorted by relevance

/PHP-7.1/ext/intl/formatter/
H A Dformatter_format.c79 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 Dformatter_attr.c73 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 Dformatter_parse.c67 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 Dformatter_main.c54 …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 Dformatter_class.c77 &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 Ddateformat_format.c41 …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 Ddateformat_attr.c106 …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 Ddateformat_create.cpp131 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 Ddateformat_parse.c45 …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 Ddateformat_class.c94 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 Ddateformat.c88 RETURN_LONG( INTL_DATA_ERROR_CODE(dfo) ); in PHP_FUNCTION()
H A Ddateformat_attrcpp.cpp61 u8str = intl_charFromString(res, &INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION()
/PHP-7.1/ext/intl/
H A Dintl_data.h42 #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 Dmsgformat_parse.c39 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 Dmsgformat_format.c53 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 Dmsgformat.c57 …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 Dmsgformat_attr.c82 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 Dmsgformat_class.c78 &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 Dresourcebundle.c42 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 Dresourcebundle_class.c112 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 Dtransliterator_methods.c181 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 Dtransliterator_class.c173 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE( to_orig ) ); in Transliterator_clone_obj()

Completed in 55 milliseconds