21#include <unicode/ustring.h>
33 UChar* formatted = format_buf;
34 int32_t formatted_len =
USIZE(format_buf);
111 "use %s%sformatCurrency() method instead", class_name, space);
113 zend_argument_value_error(3,
"cannot be NumberFormatter::TYPE_CURRENCY constant, use numfmt_format_currency() function instead");
129 UChar format_buf[32];
130 UChar* formatted = format_buf;
131 int32_t formatted_len =
USIZE(format_buf);
132 char* currency =
NULL;
133 size_t currency_len = 0;
134 UChar* scurrency =
NULL;
135 int32_t scurrency_len = 0;
161 formatted =
eumalloc(formatted_len);
169 if (formatted != format_buf) {
const U_BUFFER_OVERFLOW_ERROR
void intl_convert_utf8_to_utf16(UChar **target, int32_t *target_len, const char *src, size_t src_len, UErrorCode *status)
#define INTL_DATA_ERROR_P(obj)
#define INTL_DATA_ERROR_CODE(obj)
#define INTL_METHOD_CHECK_STATUS(obj, msg)
#define INTL_METHOD_RETVAL_UTF8(obj, ustring, ulen, free_it)
void intl_errors_set_custom_msg(intl_error *err, const char *msg, int copyMsg)
void intl_error_reset(intl_error *err)
void intl_error_set_code(intl_error *err, UErrorCode err_code)
numfmt_format_currency(NumberFormatter $formatter, float $amount, string $currency)
numfmt_format(NumberFormatter $formatter, int|float $num, int $type=NumberFormatter::TYPE_DEFAULT)
ZEND_API zend_result zend_parse_method_parameters(uint32_t num_args, zval *this_ptr, const char *type_spec,...)
ZEND_API ZEND_COLD void zend_argument_value_error(uint32_t arg_num, const char *format,...)
ZEND_API const char * get_active_class_name(const char **space)
ZEND_API void ZEND_FASTCALL convert_to_double(zval *op)
ZEND_API void ZEND_FASTCALL convert_to_long(zval *op)
#define EMPTY_SWITCH_DEFAULT_CASE()