Home
last modified time | relevance | path

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

/PHP-7.0/ext/intl/formatter/
H A Dformatter_format.c80 intl_error_reset(INTL_DATA_ERROR_P(nfo)); in PHP_FUNCTION()
84 if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { in PHP_FUNCTION()
94 …_len = unum_formatInt64(FORMATTER_OBJECT(nfo), value, formatted, formatted_len, NULL, &INTL_DATA_E… in PHP_FUNCTION()
96 intl_error_reset(INTL_DATA_ERROR_P(nfo)); in PHP_FUNCTION()
98 …_len = unum_formatInt64(FORMATTER_OBJECT(nfo), value, formatted, formatted_len, NULL, &INTL_DATA_E… in PHP_FUNCTION()
99 if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { in PHP_FUNCTION()
111 intl_error_reset(INTL_DATA_ERROR_P(nfo)); in PHP_FUNCTION()
113 …unum_formatDouble(FORMATTER_OBJECT(nfo), Z_DVAL_P(number), formatted, formatted_len, NULL, &INTL_D… in PHP_FUNCTION()
114 if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { in PHP_FUNCTION()
173 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()
235 …unum_setTextAttribute(FORMATTER_OBJECT(nfo), attribute, svalue, slength, &INTL_DATA_ERROR_CODE(nfo in PHP_FUNCTION()
276 …length = unum_getSymbol(FORMATTER_OBJECT(nfo), symbol, value_buf, length, &INTL_DATA_ERROR_CODE(nf… in PHP_FUNCTION()
281 length = unum_getSymbol(FORMATTER_OBJECT(nfo), symbol, value, length, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
330 unum_setSymbol(FORMATTER_OBJECT(nfo), symbol, svalue, slength, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
365 length = unum_toPattern(FORMATTER_OBJECT(nfo), 0, value, length, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
370 length = unum_toPattern( FORMATTER_OBJECT(nfo), 0, value, length, &INTL_DATA_ERROR_CODE(nfo) ); in PHP_FUNCTION()
412 unum_applyPattern(FORMATTER_OBJECT(nfo), 0, svalue, slength, NULL, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
[all …]
H A Dformatter_parse.c66 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
67 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()
164 …unum_parseDoubleCurrency(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, currency, &INTL_DATA_E… in PHP_FUNCTION()
172 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.c46 NumberFormatter_object* nfo = php_intl_number_format_fetch_object(object); in NumberFormatter_object_free() local
48 zend_object_std_dtor( &nfo->zo ); in NumberFormatter_object_free()
50 formatter_data_free( &nfo->nf_data ); in NumberFormatter_object_free()
73 NumberFormatter_object *nfo, *new_nfo; in NumberFormatter_object_clone() local
80 zend_objects_clone_members(&new_nfo->zo, &nfo->zo); in NumberFormatter_object_clone()
82 if (FORMATTER_OBJECT(nfo) != NULL) { in NumberFormatter_object_clone()
83 FORMATTER_OBJECT(new_nfo) = unum_clone(FORMATTER_OBJECT(nfo), in NumberFormatter_object_clone()
84 &INTL_DATA_ERROR_CODE(nfo)); in NumberFormatter_object_clone()
85 if (U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { in NumberFormatter_object_clone()
87 intl_errors_set(INTL_DATA_ERROR_P(nfo), INTL_DATA_ERROR_CODE(nfo), in NumberFormatter_object_clone()

Completed in 27 milliseconds