php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
Public Member Functions | |
__construct (string $locale, int $style, ?string $pattern=null) | |
format (int|float $num, int $type=NumberFormatter::TYPE_DEFAULT) | |
parse (string $string, int $type=NumberFormatter::TYPE_DOUBLE, &$offset=null) | |
formatCurrency (float $amount, string $currency) | |
parseCurrency (string $string, &$currency, &$offset=null) | |
setAttribute (int $attribute, int|float $value) | |
getAttribute (int $attribute) | |
setTextAttribute (int $attribute, string $value) | |
getTextAttribute (int $attribute) | |
setSymbol (int $symbol, string $value) | |
getSymbol (int $symbol) | |
setPattern (string $pattern) | |
getPattern () | |
getLocale (int $type=ULOC_ACTUAL_LOCALE) | |
getErrorCode () | |
getErrorMessage () | |
Static Public Member Functions | |
static | create (string $locale, int $style, ?string $pattern=null) |
Data Fields | |
const int | PATTERN_DECIMAL = UNKNOWN |
const int | DECIMAL = UNKNOWN |
const int | CURRENCY = UNKNOWN |
const int | PERCENT = UNKNOWN |
const int | SCIENTIFIC = UNKNOWN |
const int | SPELLOUT = UNKNOWN |
const int | ORDINAL = UNKNOWN |
const int | DURATION = UNKNOWN |
const int | PATTERN_RULEBASED = UNKNOWN |
const int | IGNORE = UNKNOWN |
const int | CURRENCY_ACCOUNTING = UNKNOWN |
const int | DEFAULT_STYLE = UNKNOWN |
const int | ROUND_CEILING = UNKNOWN |
const int | ROUND_FLOOR = UNKNOWN |
const int | ROUND_DOWN = UNKNOWN |
const int | ROUND_UP = UNKNOWN |
const int | ROUND_TOWARD_ZERO = UNKNOWN |
const int | ROUND_AWAY_FROM_ZERO = UNKNOWN |
const int | ROUND_HALFEVEN = UNKNOWN |
const int | ROUND_HALFODD = UNKNOWN |
const int | ROUND_HALFDOWN = UNKNOWN |
const int | ROUND_HALFUP = UNKNOWN |
const int | PAD_BEFORE_PREFIX = UNKNOWN |
const int | PAD_AFTER_PREFIX = UNKNOWN |
const int | PAD_BEFORE_SUFFIX = UNKNOWN |
const int | PAD_AFTER_SUFFIX = UNKNOWN |
const int | PARSE_INT_ONLY = UNKNOWN |
const int | GROUPING_USED = UNKNOWN |
const int | DECIMAL_ALWAYS_SHOWN = UNKNOWN |
const int | MAX_INTEGER_DIGITS = UNKNOWN |
const int | MIN_INTEGER_DIGITS = UNKNOWN |
const int | INTEGER_DIGITS = UNKNOWN |
const int | MAX_FRACTION_DIGITS = UNKNOWN |
const int | MIN_FRACTION_DIGITS = UNKNOWN |
const int | FRACTION_DIGITS = UNKNOWN |
const int | MULTIPLIER = UNKNOWN |
const int | GROUPING_SIZE = UNKNOWN |
const int | ROUNDING_MODE = UNKNOWN |
const int | ROUNDING_INCREMENT = UNKNOWN |
const int | FORMAT_WIDTH = UNKNOWN |
const int | PADDING_POSITION = UNKNOWN |
const int | SECONDARY_GROUPING_SIZE = UNKNOWN |
const int | SIGNIFICANT_DIGITS_USED = UNKNOWN |
const int | MIN_SIGNIFICANT_DIGITS = UNKNOWN |
const int | MAX_SIGNIFICANT_DIGITS = UNKNOWN |
const int | LENIENT_PARSE = UNKNOWN |
const int | POSITIVE_PREFIX = UNKNOWN |
const int | POSITIVE_SUFFIX = UNKNOWN |
const int | NEGATIVE_PREFIX = UNKNOWN |
const int | NEGATIVE_SUFFIX = UNKNOWN |
const int | PADDING_CHARACTER = UNKNOWN |
const int | CURRENCY_CODE = UNKNOWN |
const int | DEFAULT_RULESET = UNKNOWN |
const int | PUBLIC_RULESETS = UNKNOWN |
const int | DECIMAL_SEPARATOR_SYMBOL = UNKNOWN |
const int | GROUPING_SEPARATOR_SYMBOL = UNKNOWN |
const int | PATTERN_SEPARATOR_SYMBOL = UNKNOWN |
const int | PERCENT_SYMBOL = UNKNOWN |
const int | ZERO_DIGIT_SYMBOL = UNKNOWN |
const int | DIGIT_SYMBOL = UNKNOWN |
const int | MINUS_SIGN_SYMBOL = UNKNOWN |
const int | PLUS_SIGN_SYMBOL = UNKNOWN |
const int | CURRENCY_SYMBOL = UNKNOWN |
const int | INTL_CURRENCY_SYMBOL = UNKNOWN |
const int | MONETARY_SEPARATOR_SYMBOL = UNKNOWN |
const int | EXPONENTIAL_SYMBOL = UNKNOWN |
const int | PERMILL_SYMBOL = UNKNOWN |
const int | PAD_ESCAPE_SYMBOL = UNKNOWN |
const int | INFINITY_SYMBOL = UNKNOWN |
const int | NAN_SYMBOL = UNKNOWN |
const int | SIGNIFICANT_DIGIT_SYMBOL = UNKNOWN |
const int | MONETARY_GROUPING_SEPARATOR_SYMBOL = UNKNOWN |
const int | TYPE_DEFAULT = UNKNOWN |
const int | TYPE_INT32 = UNKNOWN |
const int | TYPE_INT64 = UNKNOWN |
const int | TYPE_DOUBLE = UNKNOWN |
const int | TYPE_CURRENCY = UNKNOWN |
@generate-class-entries @not-serializable
Definition at line 6 of file formatter.stub.php.
NumberFormatter::__construct | ( | string | $locale, |
int | $style, | ||
?string | $pattern = null ) |
Definition at line 188 of file formatter.stub.php.
|
static |
@tentative-return-type @alias numfmt_create
Definition at line 194 of file formatter.stub.php.
NumberFormatter::format | ( | int|float | $num, |
int | $type = NumberFormatter::TYPE_DEFAULT ) |
@tentative-return-type @alias numfmt_format
Definition at line 200 of file formatter.stub.php.
NumberFormatter::formatCurrency | ( | float | $amount, |
string | $currency ) |
@tentative-return-type @alias numfmt_format_currency
Definition at line 213 of file formatter.stub.php.
NumberFormatter::getAttribute | ( | int | $attribute | ) |
@tentative-return-type @alias numfmt_get_attribute
Definition at line 233 of file formatter.stub.php.
NumberFormatter::getErrorCode | ( | ) |
@tentative-return-type @alias numfmt_get_error_code
Definition at line 281 of file formatter.stub.php.
NumberFormatter::getErrorMessage | ( | ) |
@tentative-return-type @alias numfmt_get_error_message
Definition at line 287 of file formatter.stub.php.
NumberFormatter::getLocale | ( | int | $type = ULOC_ACTUAL_LOCALE | ) |
@tentative-return-type @alias numfmt_get_locale
Definition at line 275 of file formatter.stub.php.
NumberFormatter::getPattern | ( | ) |
@tentative-return-type @alias numfmt_get_pattern
Definition at line 269 of file formatter.stub.php.
NumberFormatter::getSymbol | ( | int | $symbol | ) |
@tentative-return-type @alias numfmt_get_symbol
Definition at line 257 of file formatter.stub.php.
NumberFormatter::getTextAttribute | ( | int | $attribute | ) |
@tentative-return-type @alias numfmt_get_text_attribute
Definition at line 245 of file formatter.stub.php.
NumberFormatter::parse | ( | string | $string, |
int | $type = NumberFormatter::TYPE_DOUBLE, | ||
& | $offset = null ) |
int | $offset | @tentative-return-type @alias numfmt_parse |
Definition at line 207 of file formatter.stub.php.
NumberFormatter::parseCurrency | ( | string | $string, |
& | $currency, | ||
& | $offset = null ) |
string | $currency | |
int | $offset | @tentative-return-type @alias numfmt_parse_currency |
Definition at line 221 of file formatter.stub.php.
NumberFormatter::setAttribute | ( | int | $attribute, |
int|float | $value ) |
@tentative-return-type @alias numfmt_set_attribute
Definition at line 227 of file formatter.stub.php.
NumberFormatter::setPattern | ( | string | $pattern | ) |
@tentative-return-type @alias numfmt_set_pattern
Definition at line 263 of file formatter.stub.php.
NumberFormatter::setSymbol | ( | int | $symbol, |
string | $value ) |
@tentative-return-type @alias numfmt_set_symbol
Definition at line 251 of file formatter.stub.php.
NumberFormatter::setTextAttribute | ( | int | $attribute, |
string | $value ) |
@tentative-return-type @alias numfmt_set_text_attribute
Definition at line 239 of file formatter.stub.php.
const int NumberFormatter::CURRENCY = UNKNOWN |
@cvalue UNUM_CURRENCY
Definition at line 15 of file formatter.stub.php.
const int NumberFormatter::CURRENCY_ACCOUNTING = UNKNOWN |
@cvalue UNUM_CURRENCY_ACCOUNTING
Definition at line 32 of file formatter.stub.php.
const int NumberFormatter::CURRENCY_CODE = UNKNOWN |
@cvalue UNUM_CURRENCY_CODE
Definition at line 129 of file formatter.stub.php.
const int NumberFormatter::CURRENCY_SYMBOL = UNKNOWN |
@cvalue UNUM_CURRENCY_SYMBOL
Definition at line 154 of file formatter.stub.php.
const int NumberFormatter::DECIMAL = UNKNOWN |
@cvalue UNUM_DECIMAL
Definition at line 13 of file formatter.stub.php.
const int NumberFormatter::DECIMAL_ALWAYS_SHOWN = UNKNOWN |
@cvalue UNUM_DECIMAL_ALWAYS_SHOWN
Definition at line 80 of file formatter.stub.php.
const int NumberFormatter::DECIMAL_SEPARATOR_SYMBOL = UNKNOWN |
@cvalue UNUM_DECIMAL_SEPARATOR_SYMBOL
Definition at line 138 of file formatter.stub.php.
const int NumberFormatter::DEFAULT_RULESET = UNKNOWN |
@cvalue UNUM_DEFAULT_RULESET
Definition at line 131 of file formatter.stub.php.
const int NumberFormatter::DEFAULT_STYLE = UNKNOWN |
@cvalue UNUM_DEFAULT
Definition at line 35 of file formatter.stub.php.
const int NumberFormatter::DIGIT_SYMBOL = UNKNOWN |
@cvalue UNUM_DIGIT_SYMBOL
Definition at line 148 of file formatter.stub.php.
const int NumberFormatter::DURATION = UNKNOWN |
@cvalue UNUM_DURATION
Definition at line 25 of file formatter.stub.php.
const int NumberFormatter::EXPONENTIAL_SYMBOL = UNKNOWN |
@cvalue UNUM_EXPONENTIAL_SYMBOL
Definition at line 160 of file formatter.stub.php.
const int NumberFormatter::FORMAT_WIDTH = UNKNOWN |
@cvalue UNUM_FORMAT_WIDTH
Definition at line 102 of file formatter.stub.php.
const int NumberFormatter::FRACTION_DIGITS = UNKNOWN |
@cvalue UNUM_FRACTION_DIGITS
Definition at line 92 of file formatter.stub.php.
const int NumberFormatter::GROUPING_SEPARATOR_SYMBOL = UNKNOWN |
@cvalue UNUM_GROUPING_SEPARATOR_SYMBOL
Definition at line 140 of file formatter.stub.php.
const int NumberFormatter::GROUPING_SIZE = UNKNOWN |
@cvalue UNUM_GROUPING_SIZE
Definition at line 96 of file formatter.stub.php.
const int NumberFormatter::GROUPING_USED = UNKNOWN |
@cvalue UNUM_GROUPING_USED
Definition at line 78 of file formatter.stub.php.
const int NumberFormatter::IGNORE = UNKNOWN |
@cvalue UNUM_IGNORE
Definition at line 29 of file formatter.stub.php.
const int NumberFormatter::INFINITY_SYMBOL = UNKNOWN |
@cvalue UNUM_INFINITY_SYMBOL
Definition at line 166 of file formatter.stub.php.
const int NumberFormatter::INTEGER_DIGITS = UNKNOWN |
@cvalue UNUM_INTEGER_DIGITS
Definition at line 86 of file formatter.stub.php.
const int NumberFormatter::INTL_CURRENCY_SYMBOL = UNKNOWN |
@cvalue UNUM_INTL_CURRENCY_SYMBOL
Definition at line 156 of file formatter.stub.php.
const int NumberFormatter::LENIENT_PARSE = UNKNOWN |
@cvalue UNUM_LENIENT_PARSE
Definition at line 114 of file formatter.stub.php.
const int NumberFormatter::MAX_FRACTION_DIGITS = UNKNOWN |
@cvalue UNUM_MAX_FRACTION_DIGITS
Definition at line 88 of file formatter.stub.php.
const int NumberFormatter::MAX_INTEGER_DIGITS = UNKNOWN |
@cvalue UNUM_MAX_INTEGER_DIGITS
Definition at line 82 of file formatter.stub.php.
const int NumberFormatter::MAX_SIGNIFICANT_DIGITS = UNKNOWN |
@cvalue UNUM_MAX_SIGNIFICANT_DIGITS
Definition at line 112 of file formatter.stub.php.
const int NumberFormatter::MIN_FRACTION_DIGITS = UNKNOWN |
@cvalue UNUM_MIN_FRACTION_DIGITS
Definition at line 90 of file formatter.stub.php.
const int NumberFormatter::MIN_INTEGER_DIGITS = UNKNOWN |
@cvalue UNUM_MIN_INTEGER_DIGITS
Definition at line 84 of file formatter.stub.php.
const int NumberFormatter::MIN_SIGNIFICANT_DIGITS = UNKNOWN |
@cvalue UNUM_MIN_SIGNIFICANT_DIGITS
Definition at line 110 of file formatter.stub.php.
const int NumberFormatter::MINUS_SIGN_SYMBOL = UNKNOWN |
@cvalue UNUM_MINUS_SIGN_SYMBOL
Definition at line 150 of file formatter.stub.php.
const int NumberFormatter::MONETARY_GROUPING_SEPARATOR_SYMBOL = UNKNOWN |
@cvalue UNUM_MONETARY_GROUPING_SEPARATOR_SYMBOL
Definition at line 172 of file formatter.stub.php.
const int NumberFormatter::MONETARY_SEPARATOR_SYMBOL = UNKNOWN |
@cvalue UNUM_MONETARY_SEPARATOR_SYMBOL
Definition at line 158 of file formatter.stub.php.
const int NumberFormatter::MULTIPLIER = UNKNOWN |
@cvalue UNUM_MULTIPLIER
Definition at line 94 of file formatter.stub.php.
const int NumberFormatter::NAN_SYMBOL = UNKNOWN |
@cvalue UNUM_NAN_SYMBOL
Definition at line 168 of file formatter.stub.php.
const int NumberFormatter::NEGATIVE_PREFIX = UNKNOWN |
@cvalue UNUM_NEGATIVE_PREFIX
Definition at line 123 of file formatter.stub.php.
const int NumberFormatter::NEGATIVE_SUFFIX = UNKNOWN |
@cvalue UNUM_NEGATIVE_SUFFIX
Definition at line 125 of file formatter.stub.php.
const int NumberFormatter::ORDINAL = UNKNOWN |
@cvalue UNUM_ORDINAL
Definition at line 23 of file formatter.stub.php.
const int NumberFormatter::PAD_AFTER_PREFIX = UNKNOWN |
@cvalue UNUM_PAD_AFTER_PREFIX
Definition at line 67 of file formatter.stub.php.
const int NumberFormatter::PAD_AFTER_SUFFIX = UNKNOWN |
@cvalue UNUM_PAD_AFTER_SUFFIX
Definition at line 71 of file formatter.stub.php.
const int NumberFormatter::PAD_BEFORE_PREFIX = UNKNOWN |
@cvalue UNUM_PAD_BEFORE_PREFIX
Definition at line 65 of file formatter.stub.php.
const int NumberFormatter::PAD_BEFORE_SUFFIX = UNKNOWN |
@cvalue UNUM_PAD_BEFORE_SUFFIX
Definition at line 69 of file formatter.stub.php.
const int NumberFormatter::PAD_ESCAPE_SYMBOL = UNKNOWN |
@cvalue UNUM_PAD_ESCAPE_SYMBOL
Definition at line 164 of file formatter.stub.php.
const int NumberFormatter::PADDING_CHARACTER = UNKNOWN |
@cvalue UNUM_PADDING_CHARACTER
Definition at line 127 of file formatter.stub.php.
const int NumberFormatter::PADDING_POSITION = UNKNOWN |
@cvalue UNUM_PADDING_POSITION
Definition at line 104 of file formatter.stub.php.
const int NumberFormatter::PARSE_INT_ONLY = UNKNOWN |
@cvalue UNUM_PARSE_INT_ONLY
Definition at line 76 of file formatter.stub.php.
const int NumberFormatter::PATTERN_DECIMAL = UNKNOWN |
@cvalue UNUM_PATTERN_DECIMAL
Definition at line 11 of file formatter.stub.php.
const int NumberFormatter::PATTERN_RULEBASED = UNKNOWN |
@cvalue UNUM_PATTERN_RULEBASED
Definition at line 27 of file formatter.stub.php.
const int NumberFormatter::PATTERN_SEPARATOR_SYMBOL = UNKNOWN |
@cvalue UNUM_PATTERN_SEPARATOR_SYMBOL
Definition at line 142 of file formatter.stub.php.
const int NumberFormatter::PERCENT = UNKNOWN |
@cvalue UNUM_PERCENT
Definition at line 17 of file formatter.stub.php.
const int NumberFormatter::PERCENT_SYMBOL = UNKNOWN |
@cvalue UNUM_PERCENT_SYMBOL
Definition at line 144 of file formatter.stub.php.
const int NumberFormatter::PERMILL_SYMBOL = UNKNOWN |
@cvalue UNUM_PERMILL_SYMBOL
Definition at line 162 of file formatter.stub.php.
const int NumberFormatter::PLUS_SIGN_SYMBOL = UNKNOWN |
@cvalue UNUM_PLUS_SIGN_SYMBOL
Definition at line 152 of file formatter.stub.php.
const int NumberFormatter::POSITIVE_PREFIX = UNKNOWN |
@cvalue UNUM_POSITIVE_PREFIX
Definition at line 119 of file formatter.stub.php.
const int NumberFormatter::POSITIVE_SUFFIX = UNKNOWN |
@cvalue UNUM_POSITIVE_SUFFIX
Definition at line 121 of file formatter.stub.php.
const int NumberFormatter::PUBLIC_RULESETS = UNKNOWN |
@cvalue UNUM_PUBLIC_RULESETS
Definition at line 133 of file formatter.stub.php.
const int NumberFormatter::ROUND_AWAY_FROM_ZERO = UNKNOWN |
@cvalue UNUM_ROUND_UP
Definition at line 50 of file formatter.stub.php.
const int NumberFormatter::ROUND_CEILING = UNKNOWN |
@cvalue UNUM_ROUND_CEILING
Definition at line 40 of file formatter.stub.php.
const int NumberFormatter::ROUND_DOWN = UNKNOWN |
@cvalue UNUM_ROUND_DOWN
Definition at line 44 of file formatter.stub.php.
const int NumberFormatter::ROUND_FLOOR = UNKNOWN |
@cvalue UNUM_ROUND_FLOOR
Definition at line 42 of file formatter.stub.php.
const int NumberFormatter::ROUND_HALFDOWN = UNKNOWN |
@cvalue UNUM_ROUND_HALFDOWN
Definition at line 58 of file formatter.stub.php.
const int NumberFormatter::ROUND_HALFEVEN = UNKNOWN |
@cvalue UNUM_ROUND_HALFEVEN
Definition at line 52 of file formatter.stub.php.
const int NumberFormatter::ROUND_HALFODD = UNKNOWN |
@cvalue UNUM_ROUND_HALF_ODD
Definition at line 55 of file formatter.stub.php.
const int NumberFormatter::ROUND_HALFUP = UNKNOWN |
@cvalue UNUM_ROUND_HALFUP
Definition at line 60 of file formatter.stub.php.
const int NumberFormatter::ROUND_TOWARD_ZERO = UNKNOWN |
@cvalue UNUM_ROUND_DOWN
Definition at line 48 of file formatter.stub.php.
const int NumberFormatter::ROUND_UP = UNKNOWN |
@cvalue UNUM_ROUND_UP
Definition at line 46 of file formatter.stub.php.
const int NumberFormatter::ROUNDING_INCREMENT = UNKNOWN |
@cvalue UNUM_ROUNDING_INCREMENT
Definition at line 100 of file formatter.stub.php.
const int NumberFormatter::ROUNDING_MODE = UNKNOWN |
@cvalue UNUM_ROUNDING_MODE
Definition at line 98 of file formatter.stub.php.
const int NumberFormatter::SCIENTIFIC = UNKNOWN |
@cvalue UNUM_SCIENTIFIC
Definition at line 19 of file formatter.stub.php.
const int NumberFormatter::SECONDARY_GROUPING_SIZE = UNKNOWN |
@cvalue UNUM_SECONDARY_GROUPING_SIZE
Definition at line 106 of file formatter.stub.php.
const int NumberFormatter::SIGNIFICANT_DIGIT_SYMBOL = UNKNOWN |
@cvalue UNUM_SIGNIFICANT_DIGIT_SYMBOL
Definition at line 170 of file formatter.stub.php.
const int NumberFormatter::SIGNIFICANT_DIGITS_USED = UNKNOWN |
@cvalue UNUM_SIGNIFICANT_DIGITS_USED
Definition at line 108 of file formatter.stub.php.
const int NumberFormatter::SPELLOUT = UNKNOWN |
@cvalue UNUM_SPELLOUT
Definition at line 21 of file formatter.stub.php.
const int NumberFormatter::TYPE_CURRENCY = UNKNOWN |
@cvalue FORMAT_TYPE_CURRENCY
Definition at line 186 of file formatter.stub.php.
const int NumberFormatter::TYPE_DEFAULT = UNKNOWN |
@cvalue FORMAT_TYPE_DEFAULT
Definition at line 175 of file formatter.stub.php.
const int NumberFormatter::TYPE_DOUBLE = UNKNOWN |
@cvalue FORMAT_TYPE_DOUBLE
Definition at line 181 of file formatter.stub.php.
const int NumberFormatter::TYPE_INT32 = UNKNOWN |
@cvalue FORMAT_TYPE_INT32
Definition at line 177 of file formatter.stub.php.
const int NumberFormatter::TYPE_INT64 = UNKNOWN |
@cvalue FORMAT_TYPE_INT64
Definition at line 179 of file formatter.stub.php.
const int NumberFormatter::ZERO_DIGIT_SYMBOL = UNKNOWN |
@cvalue UNUM_ZERO_DIGIT_SYMBOL
Definition at line 146 of file formatter.stub.php.