Home
last modified time | relevance | path

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

/PHP-8.2/ext/intl/formatter/
H A Dformatter_format.c64 formatted, formatted_len, NULL, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
65 if (INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR) { in PHP_FUNCTION()
69 formatted, formatted_len, NULL, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
70 if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { in PHP_FUNCTION()
81 if (INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR) { 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()
159 if (INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR) { in PHP_FUNCTION()
165 if( U_FAILURE( INTL_DATA_ERROR_CODE((nfo)) ) ) { in PHP_FUNCTION()
[all …]
H A Dformatter_attr.c63 INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; in PHP_FUNCTION()
72 INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; in PHP_FUNCTION()
79 INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; in PHP_FUNCTION()
108 if(INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR && length >= value_buf_size) { in PHP_FUNCTION()
110 INTL_DATA_ERROR_CODE(nfo) = U_ZERO_ERROR; in PHP_FUNCTION()
113 if(U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { in PHP_FUNCTION()
167 INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; in PHP_FUNCTION()
239 INTL_DATA_ERROR_CODE(nfo) = U_ZERO_ERROR; in PHP_FUNCTION()
242 if(U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { in PHP_FUNCTION()
314 INTL_DATA_ERROR_CODE(nfo) = U_ZERO_ERROR; in PHP_FUNCTION()
[all …]
H A Dformatter_parse.c62 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
73 … val32 = unum_parse(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
77 …val64 = unum_parseInt64(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(n… in PHP_FUNCTION()
85 … = unum_parseDouble(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
148 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
156 …eCurrency(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, currency, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
166 u8str = intl_convert_utf16_to_utf8(currency, u_strlen(currency), &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
H A Dformatter_class.c76 &INTL_DATA_ERROR_CODE(nfo)); in NumberFormatter_object_clone()
77 if (U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { in NumberFormatter_object_clone()
79 intl_errors_set(INTL_DATA_ERROR_P(nfo), INTL_DATA_ERROR_CODE(nfo), in NumberFormatter_object_clone()
H A Dformatter_main.c58 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(n… in numfmt_ctor()
67 …R_OBJECT(nfo) = unum_open(style, spattern, spattern_len, locale, NULL, &INTL_DATA_ERROR_CODE(nfo)); in numfmt_ctor()
122 RETURN_LONG( INTL_DATA_ERROR_CODE(nfo) ); in PHP_FUNCTION()
/PHP-8.2/ext/intl/
H A Dintl_data.h40 #define INTL_DATA_ERROR_CODE(obj) INTL_ERROR_CODE(INTL_DATA_ERROR((obj))) macro
67 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE((obj)) ); \
68 if( U_FAILURE( INTL_DATA_ERROR_CODE((obj)) ) ) \
76 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE((obj)) ); \
77 if( U_FAILURE( INTL_DATA_ERROR_CODE((obj)) ) ) \
86 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE((obj)) ); \
87 if( U_FAILURE( INTL_DATA_ERROR_CODE((obj)) ) ) \
96 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE((obj)) ); \
97 if( U_FAILURE( INTL_DATA_ERROR_CODE((obj)) ) ) \
106 u8str = intl_convert_utf16_to_utf8(ustring, ulen, &INTL_DATA_ERROR_CODE((obj))); \
/PHP-8.2/ext/intl/dateformat/
H A Ddateformat_format.c36 …t( DATE_FORMAT_OBJECT(dfo), timestamp, NULL, resultlengthneeded, NULL, &INTL_DATA_ERROR_CODE(dfo)); 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 …TE_FORMAT_OBJECT(dfo), timestamp, formatted, resultlengthneeded, NULL, &INTL_DATA_ERROR_CODE(dfo)); in internal_format()
44 if (formatted && U_FAILURE( INTL_DATA_ERROR_CODE(dfo) ) ) { in internal_format()
121 &INTL_DATA_ERROR_CODE(dfo)); in internal_get_timestamp()
123 if (INTL_DATA_ERROR_CODE(dfo) != U_ZERO_ERROR) { in internal_get_timestamp()
124 intl_errors_set(err, INTL_DATA_ERROR_CODE(dfo), "datefmt_format: " in internal_get_timestamp()
130 ucal_setDateTime(pcal, year, month, mday, hour, minute, second, &INTL_DATA_ERROR_CODE(dfo)); in internal_get_timestamp()
134 result = ucal_getMillis(pcal, &INTL_DATA_ERROR_CODE(dfo)); in internal_get_timestamp()
[all …]
H A Ddateformat_attr.c85 …oPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION()
86 if(INTL_DATA_ERROR_CODE(dfo) == U_BUFFER_OVERFLOW_ERROR && length >= USIZE( value_buf )) { in PHP_FUNCTION()
88 INTL_DATA_ERROR_CODE(dfo) = U_ZERO_ERROR; in PHP_FUNCTION()
90 …Pattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_ERROR_CODE(dfo) ); in PHP_FUNCTION()
91 if(U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in PHP_FUNCTION()
124 intl_convert_utf8_to_utf16(&svalue, &slength, value, value_len, &INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION()
157 loc = (char *)udat_getLocaleByType(DATE_FORMAT_OBJECT(dfo), loc_type,&INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION()
H A Ddateformat_create.cpp141 pattern_str, pattern_str_len, &INTL_DATA_ERROR_CODE(dfo)); in datefmt_ctor()
142 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor()
144 intl_error_set(NULL, INTL_DATA_ERROR_CODE(dfo), "datefmt_create: " in datefmt_ctor()
152 slength, &INTL_DATA_ERROR_CODE(dfo)); in datefmt_ctor()
156 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor()
157 intl_error_set(NULL, INTL_DATA_ERROR_CODE(dfo), "datefmt_create: error applying pattern", 0); in datefmt_ctor()
162 if (!U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in datefmt_ctor()
175 intl_error_set(NULL, INTL_DATA_ERROR_CODE(dfo), "datefmt_create: date " in datefmt_ctor()
H A Ddateformat_parse.c42 …t_utf8_to_utf16(&text_utf16, &text_utf16_len, text_to_parse, text_len, &INTL_DATA_ERROR_CODE(dfo)); in internal_parse_to_timestamp()
45 …parse( DATE_FORMAT_OBJECT(dfo), text_utf16, text_utf16_len, parse_pos, &INTL_DATA_ERROR_CODE(dfo)); in internal_parse_to_timestamp()
64 …zend_long calendar_field_val = ucal_get( parsed_calendar, calendar_field, &INTL_DATA_ERROR_CODE(df… in add_to_localtime_arr()
87 …t_utf8_to_utf16(&text_utf16, &text_utf16_len, text_to_parse, text_len, &INTL_DATA_ERROR_CODE(dfo)); in internal_parse_to_localtime()
91 …T_OBJECT(dfo), parsed_calendar, text_utf16, text_utf16_len, parse_pos, &INTL_DATA_ERROR_CODE(dfo)); in internal_parse_to_localtime()
112 isInDST = ucal_inDaylightTime(parsed_calendar , &INTL_DATA_ERROR_CODE(dfo)); in internal_parse_to_localtime()
H A Ddateformat_class.c81 DATE_FORMAT_OBJECT(new_dfo) = udat_clone(DATE_FORMAT_OBJECT(dfo), &INTL_DATA_ERROR_CODE(dfo)); in IntlDateFormatter_object_clone()
82 if (U_FAILURE(INTL_DATA_ERROR_CODE(dfo))) { in IntlDateFormatter_object_clone()
84 intl_errors_set(INTL_DATA_ERROR_P(dfo), INTL_DATA_ERROR_CODE(dfo), in IntlDateFormatter_object_clone()
H A Ddateformat.c39 RETURN_LONG( INTL_DATA_ERROR_CODE(dfo) ); in PHP_FUNCTION()
H A Ddateformat_attrcpp.cpp52 u8str = intl_charFromString(res, &INTL_DATA_ERROR_CODE(dfo)); in PHP_FUNCTION()
/PHP-8.2/ext/intl/msgformat/
H A Dmsgformat_format.c39 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) { in msgfmt_do_format()
98 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(m… in PHP_FUNCTION()
99 if( U_FAILURE(INTL_DATA_ERROR_CODE((mfo))) ) in PHP_FUNCTION()
115 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { in PHP_FUNCTION()
123 …OBJECT(mfo) = umsg_open(spattern, spattern_len, slocale, &parse_error, &INTL_DATA_ERROR_CODE(mfo)); in PHP_FUNCTION()
129 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) { in PHP_FUNCTION()
130 if (INTL_DATA_ERROR_CODE( mfo ) == U_PATTERN_SYNTAX_ERROR) { in PHP_FUNCTION()
138 intl_error_set_code(/* intl_error* */ NULL, INTL_DATA_ERROR_CODE( mfo ) ); in PHP_FUNCTION()
H A Dmsgformat_parse.c36 intl_convert_utf8_to_utf16(&usource, &usrc_len, source, src_len, &INTL_DATA_ERROR_CODE(mfo)); in msgfmt_do_parse()
39 …umsg_parse_helper(MSG_FORMAT_OBJECT(mfo), &count, &fargs, usource, usrc_len, &INTL_DATA_ERROR_CODE in msgfmt_do_parse()
101 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(m… in PHP_FUNCTION()
102 if( U_FAILURE(INTL_DATA_ERROR_CODE((mfo))) ) in PHP_FUNCTION()
118 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { in PHP_FUNCTION()
126 …MSG_FORMAT_OBJECT(mfo) = umsg_open(spattern, spattern_len, slocale, NULL, &INTL_DATA_ERROR_CODE(mf… in PHP_FUNCTION()
H A Dmsgformat.c58 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(m… in msgfmt_ctor()
70 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { in msgfmt_ctor()
83 …_OBJECT(mfo) = umsg_open(spattern, spattern_len, locale, &parse_error, &INTL_DATA_ERROR_CODE(mfo)); in msgfmt_ctor()
89 if (INTL_DATA_ERROR_CODE( mfo ) == U_PATTERN_SYNTAX_ERROR) { in msgfmt_ctor()
96 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE( mfo ) ); in msgfmt_ctor()
155 RETURN_LONG( INTL_DATA_ERROR_CODE(mfo) ); in PHP_FUNCTION()
H A Dmsgformat_class.c75 &INTL_DATA_ERROR_CODE(mfo)); in MessageFormatter_object_clone()
77 if (U_FAILURE(INTL_DATA_ERROR_CODE(mfo))) { in MessageFormatter_object_clone()
78 intl_errors_set(INTL_DATA_ERROR_P(mfo), INTL_DATA_ERROR_CODE(mfo), in MessageFormatter_object_clone()
H A Dmsgformat_attr.c67 intl_convert_utf8_to_utf16(&spattern, &spattern_len, value, value_len, &INTL_DATA_ERROR_CODE(mfo)); in PHP_FUNCTION()
71 if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { in PHP_FUNCTION()
79 …umsg_applyPattern(MSG_FORMAT_OBJECT(mfo), spattern, spattern_len, NULL, &INTL_DATA_ERROR_CODE(mfo)… in PHP_FUNCTION()
/PHP-8.2/ext/intl/resourcebundle/
H A Dresourcebundle_class.c118 rb->me = ures_open(bundlename, locale, &INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor()
120 rb->me = ures_openDirect(bundlename, locale, &INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor()
125 if (!fallback && (INTL_DATA_ERROR_CODE(rb) == U_USING_FALLBACK_WARNING || in resourcebundle_ctor()
126 INTL_DATA_ERROR_CODE(rb) == U_USING_DEFAULT_WARNING)) { in resourcebundle_ctor()
128 intl_errors_set_code(NULL, INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor()
133 rb->me, ULOC_ACTUAL_LOCALE, &INTL_DATA_ERROR_CODE(rb))); in resourcebundle_ctor()
191 rb->child = ures_getByKey(rb->me, mekey, rb->child, &INTL_DATA_ERROR_CODE(rb) ); in resourcebundle_array_fetch()
198 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE(rb) ); in resourcebundle_array_fetch()
199 if (U_FAILURE(INTL_DATA_ERROR_CODE(rb))) { in resourcebundle_array_fetch()
210 …if (!fallback && (INTL_DATA_ERROR_CODE(rb) == U_USING_FALLBACK_WARNING || INTL_DATA_ERROR_CODE(rb)… in resourcebundle_array_fetch()
[all …]
H A Dresourcebundle.c40 ufield = ures_getString( source->child, &ilen, &INTL_DATA_ERROR_CODE(source) ); in resourcebundle_extract_value()
46 bfield = ures_getBinary( source->child, &ilen, &INTL_DATA_ERROR_CODE(source) ); in resourcebundle_extract_value()
52 lfield = ures_getInt( source->child, &INTL_DATA_ERROR_CODE(source) ); in resourcebundle_extract_value()
58 vfield = ures_getIntVector( source->child, &ilen, &INTL_DATA_ERROR_CODE(source) ); in resourcebundle_extract_value()
/PHP-8.2/ext/intl/transliterator/
H A Dtransliterator_class.c158 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE( to_orig ) ); in Transliterator_clone_obj()
H A Dtransliterator_methods.c166 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE( to ) ); in PHP_FUNCTION()
167 if( U_FAILURE( INTL_DATA_ERROR_CODE( to ) ) ) in PHP_FUNCTION()

Completed in 36 milliseconds