Home
last modified time | relevance | path

Searched refs:nfo (Results 1 – 6 of 6) sorted by relevance

/PHP-7.3/ext/intl/formatter/
H A Dformatter_format.c81 intl_error_reset(INTL_DATA_ERROR_P(nfo)); in PHP_FUNCTION()
85 if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { in PHP_FUNCTION()
95 …_len = unum_formatInt64(FORMATTER_OBJECT(nfo), value, formatted, formatted_len, NULL, &INTL_DATA_E… in PHP_FUNCTION()
97 intl_error_reset(INTL_DATA_ERROR_P(nfo)); in PHP_FUNCTION()
99 …_len = unum_formatInt64(FORMATTER_OBJECT(nfo), value, formatted, formatted_len, NULL, &INTL_DATA_E… in PHP_FUNCTION()
100 if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { in PHP_FUNCTION()
112 intl_error_reset(INTL_DATA_ERROR_P(nfo)); in PHP_FUNCTION()
114 …unum_formatDouble(FORMATTER_OBJECT(nfo), Z_DVAL_P(number), formatted, formatted_len, NULL, &INTL_D… in PHP_FUNCTION()
115 if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { in PHP_FUNCTION()
174 intl_error_reset(INTL_DATA_ERROR_P(nfo)); in PHP_FUNCTION()
[all …]
H A Dformatter_attr.c127 INTL_DATA_ERROR_CODE(nfo) = U_ZERO_ERROR; in PHP_FUNCTION()
129 …ength = unum_getTextAttribute( FORMATTER_OBJECT(nfo), attribute, value, length, &INTL_DATA_ERROR_C… in PHP_FUNCTION()
130 if(U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { in PHP_FUNCTION()
233 …unum_setTextAttribute(FORMATTER_OBJECT(nfo), attribute, svalue, slength, &INTL_DATA_ERROR_CODE(nfo in PHP_FUNCTION()
274 …length = unum_getSymbol(FORMATTER_OBJECT(nfo), symbol, value_buf, length, &INTL_DATA_ERROR_CODE(nf… in PHP_FUNCTION()
279 length = unum_getSymbol(FORMATTER_OBJECT(nfo), symbol, value, length, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
328 unum_setSymbol(FORMATTER_OBJECT(nfo), symbol, svalue, slength, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
363 length = unum_toPattern(FORMATTER_OBJECT(nfo), 0, value, length, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
368 length = unum_toPattern( FORMATTER_OBJECT(nfo), 0, value, length, &INTL_DATA_ERROR_CODE(nfo) ); in PHP_FUNCTION()
410 unum_applyPattern(FORMATTER_OBJECT(nfo), 0, svalue, slength, NULL, &INTL_DATA_ERROR_CODE(nfo)); 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()
68 INTL_METHOD_CHECK_STATUS( nfo, "String conversion to UTF-16 failed" ); in PHP_FUNCTION()
84 … val32 = unum_parse(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
88 …val64 = unum_parseInt64(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(n… in PHP_FUNCTION()
96 …val_double = unum_parseDouble(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_… in PHP_FUNCTION()
117 INTL_METHOD_CHECK_STATUS( nfo, "Number parsing failed" ); in PHP_FUNCTION()
154 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
155 INTL_METHOD_CHECK_STATUS( nfo, "String conversion to UTF-16 failed" ); in PHP_FUNCTION()
163 …unum_parseDoubleCurrency(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, currency, &INTL_DATA_E… in PHP_FUNCTION()
171 INTL_METHOD_CHECK_STATUS( nfo, "Number parsing failed" ); in PHP_FUNCTION()
[all …]
H A Dformatter_class.h42 #define FORMATTER_METHOD_INIT_VARS INTL_METHOD_INIT_VARS(NumberFormatter, nfo)
43 #define FORMATTER_OBJECT(nfo) (nfo)->nf_data.unum argument
44 #define FORMATTER_METHOD_FETCH_OBJECT_NO_CHECK INTL_METHOD_FETCH_OBJECT(INTL_NUMBERFORMATTER, nfo)
47 if (FORMATTER_OBJECT(nfo) == NULL) \
49 intl_errors_set(&nfo->nf_data.error, U_ILLEGAL_ARGUMENT_ERROR, \
H A Dformatter_main.c54 …_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(nfo)); in numfmt_ctor()
55 INTL_CTOR_CHECK_STATUS(nfo, "numfmt_create: error converting pattern to UTF-16"); in numfmt_ctor()
63 …FORMATTER_OBJECT(nfo) = unum_open(style, spattern, spattern_len, locale, NULL, &INTL_DATA_ERROR_CO… in numfmt_ctor()
69 INTL_CTOR_CHECK_STATUS(nfo, "numfmt_create: number formatter creation failed"); in numfmt_ctor()
126 nfo = Z_INTL_NUMBERFORMATTER_P(object); in PHP_FUNCTION()
129 RETURN_LONG( INTL_DATA_ERROR_CODE(nfo) ); in PHP_FUNCTION()
153 nfo = Z_INTL_NUMBERFORMATTER_P(object); in PHP_FUNCTION()
156 message = intl_error_get_message( INTL_DATA_ERROR_P(nfo) ); in PHP_FUNCTION()
H A Dformatter_class.c39 NumberFormatter_object* nfo = php_intl_number_format_fetch_object(object); in NumberFormatter_object_free() local
41 zend_object_std_dtor( &nfo->zo ); in NumberFormatter_object_free()
43 formatter_data_free( &nfo->nf_data ); in NumberFormatter_object_free()
66 NumberFormatter_object *nfo, *new_nfo; in NumberFormatter_object_clone() local
73 zend_objects_clone_members(&new_nfo->zo, &nfo->zo); in NumberFormatter_object_clone()
75 if (FORMATTER_OBJECT(nfo) != NULL) { in NumberFormatter_object_clone()
76 FORMATTER_OBJECT(new_nfo) = unum_clone(FORMATTER_OBJECT(nfo), in NumberFormatter_object_clone()
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()

Completed in 13 milliseconds