/php-src/ext/intl/formatter/ |
H A D | formatter_format.c | 66 intl_error_reset(INTL_DATA_ERROR_P(nfo)); in PHP_FUNCTION() 70 if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { in PHP_FUNCTION() 80 …_len = unum_formatInt64(FORMATTER_OBJECT(nfo), value, formatted, formatted_len, NULL, &INTL_DATA_E… in PHP_FUNCTION() 82 intl_error_reset(INTL_DATA_ERROR_P(nfo)); in PHP_FUNCTION() 84 …_len = unum_formatInt64(FORMATTER_OBJECT(nfo), value, formatted, formatted_len, NULL, &INTL_DATA_E… in PHP_FUNCTION() 85 if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { in PHP_FUNCTION() 97 intl_error_reset(INTL_DATA_ERROR_P(nfo)); in PHP_FUNCTION() 99 …unum_formatDouble(FORMATTER_OBJECT(nfo), Z_DVAL_P(number), formatted, formatted_len, NULL, &INTL_D… in PHP_FUNCTION() 100 if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { in PHP_FUNCTION() 160 intl_error_reset(INTL_DATA_ERROR_P(nfo)); in PHP_FUNCTION() [all …]
|
H A D | formatter_attr.c | 110 INTL_DATA_ERROR_CODE(nfo) = U_ZERO_ERROR; in PHP_FUNCTION() 112 …ength = unum_getTextAttribute( FORMATTER_OBJECT(nfo), attribute, value, length, &INTL_DATA_ERROR_C… in PHP_FUNCTION() 113 if(U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { in PHP_FUNCTION() 202 …unum_setTextAttribute(FORMATTER_OBJECT(nfo), attribute, svalue, slength, &INTL_DATA_ERROR_CODE(nfo… in PHP_FUNCTION() 236 …length = unum_getSymbol(FORMATTER_OBJECT(nfo), symbol, value_buf, length, &INTL_DATA_ERROR_CODE(nf… in PHP_FUNCTION() 241 length = unum_getSymbol(FORMATTER_OBJECT(nfo), symbol, value, length, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 283 unum_setSymbol(FORMATTER_OBJECT(nfo), symbol, svalue, slength, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 311 length = unum_toPattern(FORMATTER_OBJECT(nfo), 0, value, length, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 316 length = unum_toPattern( FORMATTER_OBJECT(nfo), 0, value, length, &INTL_DATA_ERROR_CODE(nfo) ); in PHP_FUNCTION() 351 …unum_applyPattern(FORMATTER_OBJECT(nfo), 0, svalue, slength, &spattern_error, &INTL_DATA_ERROR_COD… in PHP_FUNCTION() [all …]
|
H A D | formatter_parse.c | 62 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 63 INTL_METHOD_CHECK_STATUS( nfo, "String conversion to UTF-16 failed" ); 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 …val_double = unum_parseDouble(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_… in PHP_FUNCTION() 118 INTL_METHOD_CHECK_STATUS( nfo, "Number parsing failed" ); in PHP_FUNCTION() 148 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 149 INTL_METHOD_CHECK_STATUS( nfo, "String conversion to UTF-16 failed" ); in PHP_FUNCTION() 156 …unum_parseDoubleCurrency(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, currency, &INTL_DATA_E… in PHP_FUNCTION() 163 INTL_METHOD_CHECK_STATUS( nfo, "Number parsing failed" ); in PHP_FUNCTION() [all …]
|
H A D | formatter_main.c | 52 if (FORMATTER_OBJECT(nfo)) { in numfmt_ctor() 59 …_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(nfo)); in numfmt_ctor() 60 INTL_CTOR_CHECK_STATUS(nfo, "numfmt_create: error converting pattern to UTF-16"); in numfmt_ctor() 73 …FORMATTER_OBJECT(nfo) = unum_open(style, spattern, spattern_len, locale, NULL, &INTL_DATA_ERROR_CO… in numfmt_ctor() 79 INTL_CTOR_CHECK_STATUS(nfo, "numfmt_create: number formatter creation failed"); in numfmt_ctor() 125 nfo = Z_INTL_NUMBERFORMATTER_P(object); in PHP_FUNCTION() 128 RETURN_LONG( INTL_DATA_ERROR_CODE(nfo) ); in PHP_FUNCTION() 145 nfo = Z_INTL_NUMBERFORMATTER_P(object); in PHP_FUNCTION() 148 message = intl_error_get_message( INTL_DATA_ERROR_P(nfo) ); in PHP_FUNCTION()
|
H A D | formatter_class.h | 40 #define FORMATTER_METHOD_INIT_VARS INTL_METHOD_INIT_VARS(NumberFormatter, nfo) 41 #define FORMATTER_OBJECT(nfo) (nfo)->nf_data.unum argument 42 #define FORMATTER_METHOD_FETCH_OBJECT_NO_CHECK INTL_METHOD_FETCH_OBJECT(INTL_NUMBERFORMATTER, nfo) 45 if (FORMATTER_OBJECT(nfo) == NULL) \
|
H A D | formatter_class.c | 38 NumberFormatter_object* nfo = php_intl_number_format_fetch_object(object); in NumberFormatter_object_free() local 40 zend_object_std_dtor( &nfo->zo ); in NumberFormatter_object_free() 42 formatter_data_free( &nfo->nf_data ); in NumberFormatter_object_free() 63 NumberFormatter_object *nfo = php_intl_number_format_fetch_object(object); in NumberFormatter_object_clone() local 68 zend_objects_clone_members(&new_nfo->zo, &nfo->zo); in NumberFormatter_object_clone() 71 if (FORMATTER_OBJECT(nfo) != NULL) { in NumberFormatter_object_clone() 73 FORMATTER_OBJECT(new_nfo) = unum_clone(FORMATTER_OBJECT(nfo), &error); in NumberFormatter_object_clone()
|
/php-src/ext/fileinfo/tests/ |
H A D | magic私はガラスを食べられます | 30170 !:ext nfo
|
H A D | magic | 30170 !:ext nfo
|