Home
last modified time | relevance | path

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

/PHP-5.4/ext/intl/formatter/
H A Dformatter_format.c81 intl_error_reset(INTL_DATA_ERROR_P(nfo) TSRMLS_CC); 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()
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()
110 …unum_formatDouble(FORMATTER_OBJECT(nfo), Z_DVAL_PP(number), formatted, formatted_len, NULL, &INTL_… in PHP_FUNCTION()
114 …unum_formatDouble(FORMATTER_OBJECT(nfo), Z_DVAL_PP(number), formatted, formatted_len, NULL, &INTL_… in PHP_FUNCTION()
115 if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { in PHP_FUNCTION()
174 intl_error_reset(INTL_DATA_ERROR_P(nfo) TSRMLS_CC); in PHP_FUNCTION()
176 …matDoubleCurrency(FORMATTER_OBJECT(nfo), number, scurrency, formatted, formatted_len, NULL, &INTL_… 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()
83 … val32 = unum_parse(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
87 …val64 = unum_parseInt64(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(n… in PHP_FUNCTION()
95 …val_double = unum_parseDouble(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_… in PHP_FUNCTION()
116 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.h37 #define FORMATTER_METHOD_INIT_VARS INTL_METHOD_INIT_VARS(NumberFormatter, nfo)
38 #define FORMATTER_OBJECT(nfo) (nfo)->nf_data.unum argument
39 #define FORMATTER_METHOD_FETCH_OBJECT_NO_CHECK INTL_METHOD_FETCH_OBJECT(NumberFormatter, nfo)
42 if (FORMATTER_OBJECT(nfo) == NULL) \
44 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()
114 nfo = (NumberFormatter_object *) zend_object_store_get_object( object TSRMLS_CC ); in PHP_FUNCTION()
117 RETURN_LONG( INTL_DATA_ERROR_CODE(nfo) ); in PHP_FUNCTION()
141 nfo = (NumberFormatter_object *) zend_object_store_get_object( object TSRMLS_CC ); in PHP_FUNCTION()
144 message = intl_error_get_message( INTL_DATA_ERROR_P(nfo) TSRMLS_CC ); in PHP_FUNCTION()
H A Dformatter_class.c48 NumberFormatter_object* nfo = (NumberFormatter_object*)object; in NumberFormatter_object_free() local
50 zend_object_std_dtor( &nfo->zo TSRMLS_CC ); in NumberFormatter_object_free()
52 formatter_data_free( &nfo->nf_data TSRMLS_CC ); in NumberFormatter_object_free()
54 efree( nfo ); in NumberFormatter_object_free()
86 NumberFormatter_object *nfo, *new_nfo; in NumberFormatter_object_clone() local
92 zend_objects_clone_members(&new_nfo->zo, new_obj_val, &nfo->zo, handle TSRMLS_CC); in NumberFormatter_object_clone()
94 if (FORMATTER_OBJECT(nfo) != NULL) { in NumberFormatter_object_clone()
95 FORMATTER_OBJECT(new_nfo) = unum_clone(FORMATTER_OBJECT(nfo), in NumberFormatter_object_clone()
96 &INTL_DATA_ERROR_CODE(nfo)); in NumberFormatter_object_clone()
97 if (U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { in NumberFormatter_object_clone()
[all …]

Completed in 17 milliseconds