nfo 71 ext/intl/formatter/formatter_attr.c value = unum_getAttribute(FORMATTER_OBJECT(nfo), attribute); nfo 73 ext/intl/formatter/formatter_attr.c INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; nfo 80 ext/intl/formatter/formatter_attr.c double value_double = unum_getDoubleAttribute(FORMATTER_OBJECT(nfo), attribute); nfo 82 ext/intl/formatter/formatter_attr.c INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; nfo 89 ext/intl/formatter/formatter_attr.c INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; nfo 93 ext/intl/formatter/formatter_attr.c INTL_METHOD_CHECK_STATUS( nfo, "Error getting attribute value" ); nfo 124 ext/intl/formatter/formatter_attr.c length = unum_getTextAttribute( FORMATTER_OBJECT(nfo), attribute, value, value_buf_size, &INTL_DATA_ERROR_CODE(nfo) ); nfo 125 ext/intl/formatter/formatter_attr.c if(INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR && length >= value_buf_size) { nfo 127 ext/intl/formatter/formatter_attr.c INTL_DATA_ERROR_CODE(nfo) = U_ZERO_ERROR; nfo 129 ext/intl/formatter/formatter_attr.c length = unum_getTextAttribute( FORMATTER_OBJECT(nfo), attribute, value, length, &INTL_DATA_ERROR_CODE(nfo) ); nfo 130 ext/intl/formatter/formatter_attr.c if(U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { nfo 135 ext/intl/formatter/formatter_attr.c INTL_METHOD_CHECK_STATUS( nfo, "Error getting attribute value" ); nfo 137 ext/intl/formatter/formatter_attr.c INTL_METHOD_RETVAL_UTF8( nfo, value, length, ( value != value_buf ) ); nfo 186 ext/intl/formatter/formatter_attr.c unum_setAttribute(FORMATTER_OBJECT(nfo), attribute, Z_LVAL_P(value)); nfo 190 ext/intl/formatter/formatter_attr.c unum_setDoubleAttribute(FORMATTER_OBJECT(nfo), attribute, Z_DVAL_P(value)); nfo 193 ext/intl/formatter/formatter_attr.c INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; nfo 197 ext/intl/formatter/formatter_attr.c INTL_METHOD_CHECK_STATUS( nfo, "Error setting attribute value" ); nfo 231 ext/intl/formatter/formatter_attr.c intl_convert_utf8_to_utf16(&svalue, &slength, value, len, &INTL_DATA_ERROR_CODE(nfo)); nfo 232 ext/intl/formatter/formatter_attr.c INTL_METHOD_CHECK_STATUS( nfo, "Error converting attribute value to UTF-16" ); nfo 235 ext/intl/formatter/formatter_attr.c unum_setTextAttribute(FORMATTER_OBJECT(nfo), attribute, svalue, slength, &INTL_DATA_ERROR_CODE(nfo)); nfo 239 ext/intl/formatter/formatter_attr.c INTL_METHOD_CHECK_STATUS( nfo, "Error setting text attribute" ); nfo 276 ext/intl/formatter/formatter_attr.c length = unum_getSymbol(FORMATTER_OBJECT(nfo), symbol, value_buf, length, &INTL_DATA_ERROR_CODE(nfo)); nfo 277 ext/intl/formatter/formatter_attr.c if(INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR && length >= USIZE( value_buf )) { nfo 279 ext/intl/formatter/formatter_attr.c INTL_DATA_ERROR_CODE(nfo) = U_ZERO_ERROR; nfo 281 ext/intl/formatter/formatter_attr.c length = unum_getSymbol(FORMATTER_OBJECT(nfo), symbol, value, length, &INTL_DATA_ERROR_CODE(nfo)); nfo 282 ext/intl/formatter/formatter_attr.c if(U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { nfo 287 ext/intl/formatter/formatter_attr.c INTL_METHOD_CHECK_STATUS( nfo, "Error getting symbol value" ); nfo 289 ext/intl/formatter/formatter_attr.c INTL_METHOD_RETVAL_UTF8( nfo, value, length, ( value_buf != value ) ); nfo 326 ext/intl/formatter/formatter_attr.c intl_convert_utf8_to_utf16(&svalue, &slength, value, value_len, &INTL_DATA_ERROR_CODE(nfo)); nfo 327 ext/intl/formatter/formatter_attr.c INTL_METHOD_CHECK_STATUS( nfo, "Error converting symbol value to UTF-16" ); nfo 330 ext/intl/formatter/formatter_attr.c unum_setSymbol(FORMATTER_OBJECT(nfo), symbol, svalue, slength, &INTL_DATA_ERROR_CODE(nfo)); nfo 334 ext/intl/formatter/formatter_attr.c INTL_METHOD_CHECK_STATUS( nfo, "Error setting symbol value" ); nfo 365 ext/intl/formatter/formatter_attr.c length = unum_toPattern(FORMATTER_OBJECT(nfo), 0, value, length, &INTL_DATA_ERROR_CODE(nfo)); nfo 366 ext/intl/formatter/formatter_attr.c if(INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR && length >= USIZE( value_buf )) { nfo 368 ext/intl/formatter/formatter_attr.c INTL_DATA_ERROR_CODE(nfo) = U_ZERO_ERROR; nfo 370 ext/intl/formatter/formatter_attr.c length = unum_toPattern( FORMATTER_OBJECT(nfo), 0, value, length, &INTL_DATA_ERROR_CODE(nfo) ); nfo 371 ext/intl/formatter/formatter_attr.c if(U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { nfo 376 ext/intl/formatter/formatter_attr.c INTL_METHOD_CHECK_STATUS( nfo, "Error getting formatter pattern" ); nfo 378 ext/intl/formatter/formatter_attr.c INTL_METHOD_RETVAL_UTF8( nfo, value, length, ( value != value_buf ) ); nfo 408 ext/intl/formatter/formatter_attr.c intl_convert_utf8_to_utf16(&svalue, &slength, value, value_len, &INTL_DATA_ERROR_CODE(nfo)); nfo 409 ext/intl/formatter/formatter_attr.c INTL_METHOD_CHECK_STATUS( nfo, "Error converting pattern to UTF-16" ); nfo 412 ext/intl/formatter/formatter_attr.c unum_applyPattern(FORMATTER_OBJECT(nfo), 0, svalue, slength, NULL, &INTL_DATA_ERROR_CODE(nfo)); nfo 416 ext/intl/formatter/formatter_attr.c INTL_METHOD_CHECK_STATUS( nfo, "Error setting pattern value" ); nfo 446 ext/intl/formatter/formatter_attr.c loc = (char *)unum_getLocaleByType(FORMATTER_OBJECT(nfo), type, &INTL_DATA_ERROR_CODE(nfo)); nfo 447 ext/intl/formatter/formatter_attr.c INTL_METHOD_CHECK_STATUS( nfo, "Error getting locale" ); nfo 46 ext/intl/formatter/formatter_class.c NumberFormatter_object* nfo = php_intl_number_format_fetch_object(object); nfo 48 ext/intl/formatter/formatter_class.c zend_object_std_dtor( &nfo->zo ); nfo 50 ext/intl/formatter/formatter_class.c formatter_data_free( &nfo->nf_data ); nfo 73 ext/intl/formatter/formatter_class.c NumberFormatter_object *nfo, *new_nfo; nfo 80 ext/intl/formatter/formatter_class.c zend_objects_clone_members(&new_nfo->zo, &nfo->zo); nfo 82 ext/intl/formatter/formatter_class.c if (FORMATTER_OBJECT(nfo) != NULL) { nfo 83 ext/intl/formatter/formatter_class.c FORMATTER_OBJECT(new_nfo) = unum_clone(FORMATTER_OBJECT(nfo), nfo 84 ext/intl/formatter/formatter_class.c &INTL_DATA_ERROR_CODE(nfo)); nfo 85 ext/intl/formatter/formatter_class.c if (U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { nfo 87 ext/intl/formatter/formatter_class.c intl_errors_set(INTL_DATA_ERROR_P(nfo), INTL_DATA_ERROR_CODE(nfo), nfo 42 ext/intl/formatter/formatter_class.h #define FORMATTER_METHOD_INIT_VARS INTL_METHOD_INIT_VARS(NumberFormatter, nfo) nfo 43 ext/intl/formatter/formatter_class.h #define FORMATTER_OBJECT(nfo) (nfo)->nf_data.unum nfo 44 ext/intl/formatter/formatter_class.h #define FORMATTER_METHOD_FETCH_OBJECT_NO_CHECK INTL_METHOD_FETCH_OBJECT(INTL_NUMBERFORMATTER, nfo) nfo 47 ext/intl/formatter/formatter_class.h if (FORMATTER_OBJECT(nfo) == NULL) \ nfo 49 ext/intl/formatter/formatter_class.h intl_errors_set(&nfo->nf_data.error, U_ILLEGAL_ARGUMENT_ERROR, \ nfo 77 ext/intl/formatter/formatter_format.c formatted_len = unum_format(FORMATTER_OBJECT(nfo), (int32_t)Z_LVAL_P(number), nfo 78 ext/intl/formatter/formatter_format.c formatted, formatted_len, NULL, &INTL_DATA_ERROR_CODE(nfo)); nfo 79 ext/intl/formatter/formatter_format.c if (INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR) { nfo 80 ext/intl/formatter/formatter_format.c intl_error_reset(INTL_DATA_ERROR_P(nfo)); nfo 82 ext/intl/formatter/formatter_format.c formatted_len = unum_format(FORMATTER_OBJECT(nfo), (int32_t)Z_LVAL_P(number), nfo 83 ext/intl/formatter/formatter_format.c formatted, formatted_len, NULL, &INTL_DATA_ERROR_CODE(nfo)); nfo 84 ext/intl/formatter/formatter_format.c if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { nfo 88 ext/intl/formatter/formatter_format.c INTL_METHOD_CHECK_STATUS( nfo, "Number formatting failed" ); nfo 94 ext/intl/formatter/formatter_format.c formatted_len = unum_formatInt64(FORMATTER_OBJECT(nfo), value, formatted, formatted_len, NULL, &INTL_DATA_ERROR_CODE(nfo)); nfo 95 ext/intl/formatter/formatter_format.c if (INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR) { nfo 96 ext/intl/formatter/formatter_format.c intl_error_reset(INTL_DATA_ERROR_P(nfo)); nfo 98 ext/intl/formatter/formatter_format.c formatted_len = unum_formatInt64(FORMATTER_OBJECT(nfo), value, formatted, formatted_len, NULL, &INTL_DATA_ERROR_CODE(nfo)); nfo 99 ext/intl/formatter/formatter_format.c if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { nfo 103 ext/intl/formatter/formatter_format.c INTL_METHOD_CHECK_STATUS( nfo, "Number formatting failed" ); nfo 109 ext/intl/formatter/formatter_format.c formatted_len = unum_formatDouble(FORMATTER_OBJECT(nfo), Z_DVAL_P(number), formatted, formatted_len, NULL, &INTL_DATA_ERROR_CODE(nfo)); nfo 110 ext/intl/formatter/formatter_format.c if (INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR) { nfo 111 ext/intl/formatter/formatter_format.c intl_error_reset(INTL_DATA_ERROR_P(nfo)); nfo 113 ext/intl/formatter/formatter_format.c unum_formatDouble(FORMATTER_OBJECT(nfo), Z_DVAL_P(number), formatted, formatted_len, NULL, &INTL_DATA_ERROR_CODE(nfo)); nfo 114 ext/intl/formatter/formatter_format.c if (U_FAILURE( INTL_DATA_ERROR_CODE(nfo) ) ) { nfo 118 ext/intl/formatter/formatter_format.c INTL_METHOD_CHECK_STATUS( nfo, "Number formatting failed" ); nfo 127 ext/intl/formatter/formatter_format.c INTL_METHOD_RETVAL_UTF8( nfo, formatted, formatted_len, ( formatted != format_buf ) ); nfo 162 ext/intl/formatter/formatter_format.c intl_convert_utf8_to_utf16(&scurrency, &scurrency_len, currency, currency_len, &INTL_DATA_ERROR_CODE(nfo)); nfo 163 ext/intl/formatter/formatter_format.c INTL_METHOD_CHECK_STATUS( nfo, "Currency conversion to UTF-16 failed" ); nfo 166 ext/intl/formatter/formatter_format.c formatted_len = unum_formatDoubleCurrency(FORMATTER_OBJECT(nfo), number, scurrency, formatted, formatted_len, NULL, &INTL_DATA_ERROR_CODE(nfo)); nfo 172 ext/intl/formatter/formatter_format.c if (INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR) { nfo 173 ext/intl/formatter/formatter_format.c intl_error_reset(INTL_DATA_ERROR_P(nfo)); nfo 175 ext/intl/formatter/formatter_format.c unum_formatDoubleCurrency(FORMATTER_OBJECT(nfo), number, scurrency, formatted, formatted_len, NULL, &INTL_DATA_ERROR_CODE(nfo)); nfo 178 ext/intl/formatter/formatter_format.c if( U_FAILURE( INTL_DATA_ERROR_CODE((nfo)) ) ) { nfo 179 ext/intl/formatter/formatter_format.c intl_error_set_code( NULL, INTL_DATA_ERROR_CODE((nfo)) ); nfo 180 ext/intl/formatter/formatter_format.c intl_errors_set_custom_msg( INTL_DATA_ERROR_P(nfo), "Number formatting failed", 0 ); nfo 186 ext/intl/formatter/formatter_format.c INTL_METHOD_RETVAL_UTF8( nfo, formatted, formatted_len, ( formatted != format_buf ) ); nfo 54 ext/intl/formatter/formatter_main.c intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(nfo)); nfo 55 ext/intl/formatter/formatter_main.c INTL_CTOR_CHECK_STATUS(nfo, "numfmt_create: error converting pattern to UTF-16"); nfo 63 ext/intl/formatter/formatter_main.c FORMATTER_OBJECT(nfo) = unum_open(style, spattern, spattern_len, locale, NULL, &INTL_DATA_ERROR_CODE(nfo)); nfo 69 ext/intl/formatter/formatter_main.c INTL_CTOR_CHECK_STATUS(nfo, "numfmt_create: number formatter creation failed"); nfo 126 ext/intl/formatter/formatter_main.c nfo = Z_INTL_NUMBERFORMATTER_P(object); nfo 129 ext/intl/formatter/formatter_main.c RETURN_LONG( INTL_DATA_ERROR_CODE(nfo) ); nfo 153 ext/intl/formatter/formatter_main.c nfo = Z_INTL_NUMBERFORMATTER_P(object); nfo 156 ext/intl/formatter/formatter_main.c message = intl_error_get_message( INTL_DATA_ERROR_P(nfo) ); nfo 66 ext/intl/formatter/formatter_parse.c intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); nfo 67 ext/intl/formatter/formatter_parse.c INTL_METHOD_CHECK_STATUS( nfo, "String conversion to UTF-16 failed" ); nfo 84 ext/intl/formatter/formatter_parse.c val32 = unum_parse(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(nfo)); nfo 88 ext/intl/formatter/formatter_parse.c val64 = unum_parseInt64(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(nfo)); nfo 96 ext/intl/formatter/formatter_parse.c val_double = unum_parseDouble(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, &INTL_DATA_ERROR_CODE(nfo)); nfo 117 ext/intl/formatter/formatter_parse.c INTL_METHOD_CHECK_STATUS( nfo, "Number parsing failed" ); nfo 154 ext/intl/formatter/formatter_parse.c intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); nfo 155 ext/intl/formatter/formatter_parse.c INTL_METHOD_CHECK_STATUS( nfo, "String conversion to UTF-16 failed" ); nfo 164 ext/intl/formatter/formatter_parse.c number = unum_parseDoubleCurrency(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, currency, &INTL_DATA_ERROR_CODE(nfo)); nfo 172 ext/intl/formatter/formatter_parse.c INTL_METHOD_CHECK_STATUS( nfo, "Number parsing failed" ); nfo 175 ext/intl/formatter/formatter_parse.c u8str = intl_convert_utf16_to_utf8(currency, u_strlen(currency), &INTL_DATA_ERROR_CODE(nfo)); nfo 176 ext/intl/formatter/formatter_parse.c INTL_METHOD_CHECK_STATUS( nfo, "Currency conversion to UTF-8 failed" );