23#include <unicode/ustring.h>
42 case UNUM_PARSE_INT_ONLY:
43 case UNUM_GROUPING_USED:
44 case UNUM_DECIMAL_ALWAYS_SHOWN:
45 case UNUM_MAX_INTEGER_DIGITS:
46 case UNUM_MIN_INTEGER_DIGITS:
47 case UNUM_INTEGER_DIGITS:
48 case UNUM_MAX_FRACTION_DIGITS:
49 case UNUM_MIN_FRACTION_DIGITS:
50 case UNUM_FRACTION_DIGITS:
52 case UNUM_GROUPING_SIZE:
53 case UNUM_ROUNDING_MODE:
54 case UNUM_FORMAT_WIDTH:
55 case UNUM_PADDING_POSITION:
56 case UNUM_SECONDARY_GROUPING_SIZE:
57 case UNUM_SIGNIFICANT_DIGITS_USED:
58 case UNUM_MIN_SIGNIFICANT_DIGITS:
59 case UNUM_MAX_SIGNIFICANT_DIGITS:
60 case UNUM_LENIENT_PARSE:
68 case UNUM_ROUNDING_INCREMENT:
70 double value_double = unum_getDoubleAttribute(
FORMATTER_OBJECT(nfo), attribute);
71 if(value_double == -1) {
92 int32_t value_buf_size =
USIZE( value_buf );
93 UChar*
value = value_buf;
142 case UNUM_PARSE_INT_ONLY:
143 case UNUM_GROUPING_USED:
144 case UNUM_DECIMAL_ALWAYS_SHOWN:
145 case UNUM_MAX_INTEGER_DIGITS:
146 case UNUM_MIN_INTEGER_DIGITS:
147 case UNUM_INTEGER_DIGITS:
148 case UNUM_MAX_FRACTION_DIGITS:
149 case UNUM_MIN_FRACTION_DIGITS:
150 case UNUM_FRACTION_DIGITS:
151 case UNUM_MULTIPLIER:
152 case UNUM_GROUPING_SIZE:
153 case UNUM_ROUNDING_MODE:
154 case UNUM_FORMAT_WIDTH:
155 case UNUM_PADDING_POSITION:
156 case UNUM_SECONDARY_GROUPING_SIZE:
157 case UNUM_SIGNIFICANT_DIGITS_USED:
158 case UNUM_MIN_SIGNIFICANT_DIGITS:
159 case UNUM_MAX_SIGNIFICANT_DIGITS:
160 case UNUM_LENIENT_PARSE:
163 case UNUM_ROUNDING_INCREMENT:
217 UChar *
value = value_buf;
218 uint32_t length =
USIZE(value_buf);
228 if(symbol >= UNUM_FORMAT_SYMBOL_COUNT || symbol < 0) {
258 size_t value_len = 0;
270 if (symbol >= UNUM_FORMAT_SYMBOL_COUNT || symbol < 0) {
297 uint32_t length =
USIZE( value_buf );
298 UChar*
value = value_buf;
332 size_t value_len = 0;
335 UParseError spattern_error = {0};
357 spprintf(&
msg, 0,
"Error setting pattern value at line %d, offset %d", spattern_error.line, spattern_error.offset);
const U_BUFFER_OVERFLOW_ERROR
const U_ILLEGAL_ARGUMENT_ERROR
const U_UNSUPPORTED_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_set(intl_error *err, UErrorCode code, const char *msg, int copyMsg)
numfmt_set_pattern(NumberFormatter $formatter, string $pattern)
numfmt_get_locale(NumberFormatter $formatter, int $type=ULOC_ACTUAL_LOCALE)
numfmt_set_symbol(NumberFormatter $formatter, int $symbol, string $value)
numfmt_get_text_attribute(NumberFormatter $formatter, int $attribute)
numfmt_get_symbol(NumberFormatter $formatter, int $symbol)
numfmt_get_pattern(NumberFormatter $formatter)
numfmt_get_attribute(NumberFormatter $formatter, int $attribute)
numfmt_set_attribute(NumberFormatter $formatter, int $attribute, int|float $value)
numfmt_set_text_attribute(NumberFormatter $formatter, int $attribute, string $value)
ZEND_API zend_result zend_parse_method_parameters(uint32_t num_args, zval *this_ptr, const char *type_spec,...)