1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499
|
<?php
/** @generate-class-entries */
/** @not-serializable */
class NumberFormatter
{
/* UNumberFormatStyle constants */
/**
* @var int
* @cvalue UNUM_PATTERN_DECIMAL
*/
public const PATTERN_DECIMAL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_DECIMAL
*/
public const DECIMAL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_CURRENCY
*/
public const CURRENCY = UNKNOWN;
/**
* @var int
* @cvalue UNUM_PERCENT
*/
public const PERCENT = UNKNOWN;
/**
* @var int
* @cvalue UNUM_SCIENTIFIC
*/
public const SCIENTIFIC = UNKNOWN;
/**
* @var int
* @cvalue UNUM_SPELLOUT
*/
public const SPELLOUT = UNKNOWN;
/**
* @var int
* @cvalue UNUM_ORDINAL
*/
public const ORDINAL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_DURATION
*/
public const DURATION = UNKNOWN;
/**
* @var int
* @cvalue UNUM_PATTERN_RULEBASED
*/
public const PATTERN_RULEBASED = UNKNOWN;
/**
* @var int
* @cvalue UNUM_IGNORE
*/
public const IGNORE = UNKNOWN;
#if U_ICU_VERSION_MAJOR_NUM >= 53
/**
* @var int
* @cvalue UNUM_CURRENCY_ACCOUNTING
*/
public const CURRENCY_ACCOUNTING = UNKNOWN;
#endif
/**
* @var int
* @cvalue UNUM_DEFAULT
*/
public const DEFAULT_STYLE = UNKNOWN;
/* UNumberFormatRoundingMode */
/**
* @var int
* @cvalue UNUM_ROUND_CEILING
*/
public const ROUND_CEILING = UNKNOWN;
/**
* @var int
* @cvalue UNUM_ROUND_FLOOR
*/
public const ROUND_FLOOR = UNKNOWN;
/**
* @var int
* @cvalue UNUM_ROUND_DOWN
*/
public const ROUND_DOWN = UNKNOWN;
/**
* @var int
* @cvalue UNUM_ROUND_UP
*/
public const ROUND_UP = UNKNOWN;
/**
* @var int
* @cvalue UNUM_ROUND_HALFEVEN
*/
public const ROUND_HALFEVEN = UNKNOWN;
/**
* @var int
* @cvalue UNUM_ROUND_HALFDOWN
*/
public const ROUND_HALFDOWN = UNKNOWN;
/**
* @var int
* @cvalue UNUM_ROUND_HALFUP
*/
public const ROUND_HALFUP = UNKNOWN;
/* UNumberFormatPadPosition */
/**
* @var int
* @cvalue UNUM_PAD_BEFORE_PREFIX
*/
public const PAD_BEFORE_PREFIX = UNKNOWN;
/**
* @var int
* @cvalue UNUM_PAD_AFTER_PREFIX
*/
public const PAD_AFTER_PREFIX = UNKNOWN;
/**
* @var int
* @cvalue UNUM_PAD_BEFORE_SUFFIX
*/
public const PAD_BEFORE_SUFFIX = UNKNOWN;
/**
* @var int
* @cvalue UNUM_PAD_AFTER_SUFFIX
*/
public const PAD_AFTER_SUFFIX = UNKNOWN;
/* UNumberFormatAttribute */
/**
* @var int
* @cvalue UNUM_PARSE_INT_ONLY
*/
public const PARSE_INT_ONLY = UNKNOWN;
/**
* @var int
* @cvalue UNUM_GROUPING_USED
*/
public const GROUPING_USED = UNKNOWN;
/**
* @var int
* @cvalue UNUM_DECIMAL_ALWAYS_SHOWN
*/
public const DECIMAL_ALWAYS_SHOWN = UNKNOWN;
/**
* @var int
* @cvalue UNUM_MAX_INTEGER_DIGITS
*/
public const MAX_INTEGER_DIGITS = UNKNOWN;
/**
* @var int
* @cvalue UNUM_MIN_INTEGER_DIGITS
*/
public const MIN_INTEGER_DIGITS = UNKNOWN;
/**
* @var int
* @cvalue UNUM_INTEGER_DIGITS
*/
public const INTEGER_DIGITS = UNKNOWN;
/**
* @var int
* @cvalue UNUM_MAX_FRACTION_DIGITS
*/
public const MAX_FRACTION_DIGITS = UNKNOWN;
/**
* @var int
* @cvalue UNUM_MIN_FRACTION_DIGITS
*/
public const MIN_FRACTION_DIGITS = UNKNOWN;
/**
* @var int
* @cvalue UNUM_FRACTION_DIGITS
*/
public const FRACTION_DIGITS = UNKNOWN;
/**
* @var int
* @cvalue UNUM_MULTIPLIER
*/
public const MULTIPLIER = UNKNOWN;
/**
* @var int
* @cvalue UNUM_GROUPING_SIZE
*/
public const GROUPING_SIZE = UNKNOWN;
/**
* @var int
* @cvalue UNUM_ROUNDING_MODE
*/
public const ROUNDING_MODE = UNKNOWN;
/**
* @var int
* @cvalue UNUM_ROUNDING_INCREMENT
*/
public const ROUNDING_INCREMENT = UNKNOWN;
/**
* @var int
* @cvalue UNUM_FORMAT_WIDTH
*/
public const FORMAT_WIDTH = UNKNOWN;
/**
* @var int
* @cvalue UNUM_PADDING_POSITION
*/
public const PADDING_POSITION = UNKNOWN;
/**
* @var int
* @cvalue UNUM_SECONDARY_GROUPING_SIZE
*/
public const SECONDARY_GROUPING_SIZE = UNKNOWN;
/**
* @var int
* @cvalue UNUM_SIGNIFICANT_DIGITS_USED
*/
public const SIGNIFICANT_DIGITS_USED = UNKNOWN;
/**
* @var int
* @cvalue UNUM_MIN_SIGNIFICANT_DIGITS
*/
public const MIN_SIGNIFICANT_DIGITS = UNKNOWN;
/**
* @var int
* @cvalue UNUM_MAX_SIGNIFICANT_DIGITS
*/
public const MAX_SIGNIFICANT_DIGITS = UNKNOWN;
/**
* @var int
* @cvalue UNUM_LENIENT_PARSE
*/
public const LENIENT_PARSE = UNKNOWN;
/* UNumberFormatTextAttribute */
/**
* @var int
* @cvalue UNUM_POSITIVE_PREFIX
*/
public const POSITIVE_PREFIX = UNKNOWN;
/**
* @var int
* @cvalue UNUM_POSITIVE_SUFFIX
*/
public const POSITIVE_SUFFIX = UNKNOWN;
/**
* @var int
* @cvalue UNUM_NEGATIVE_PREFIX
*/
public const NEGATIVE_PREFIX = UNKNOWN;
/**
* @var int
* @cvalue UNUM_NEGATIVE_SUFFIX
*/
public const NEGATIVE_SUFFIX = UNKNOWN;
/**
* @var int
* @cvalue UNUM_PADDING_CHARACTER
*/
public const PADDING_CHARACTER = UNKNOWN;
/**
* @var int
* @cvalue UNUM_CURRENCY_CODE
*/
public const CURRENCY_CODE = UNKNOWN;
/**
* @var int
* @cvalue UNUM_DEFAULT_RULESET
*/
public const DEFAULT_RULESET = UNKNOWN;
/**
* @var int
* @cvalue UNUM_PUBLIC_RULESETS
*/
public const PUBLIC_RULESETS = UNKNOWN;
/* UNumberFormatSymbol */
/**
* @var int
* @cvalue UNUM_DECIMAL_SEPARATOR_SYMBOL
*/
public const DECIMAL_SEPARATOR_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_GROUPING_SEPARATOR_SYMBOL
*/
public const GROUPING_SEPARATOR_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_PATTERN_SEPARATOR_SYMBOL
*/
public const PATTERN_SEPARATOR_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_PERCENT_SYMBOL
*/
public const PERCENT_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_ZERO_DIGIT_SYMBOL
*/
public const ZERO_DIGIT_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_DIGIT_SYMBOL
*/
public const DIGIT_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_MINUS_SIGN_SYMBOL
*/
public const MINUS_SIGN_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_PLUS_SIGN_SYMBOL
*/
public const PLUS_SIGN_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_CURRENCY_SYMBOL
*/
public const CURRENCY_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_INTL_CURRENCY_SYMBOL
*/
public const INTL_CURRENCY_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_MONETARY_SEPARATOR_SYMBOL
*/
public const MONETARY_SEPARATOR_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_EXPONENTIAL_SYMBOL
*/
public const EXPONENTIAL_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_PERMILL_SYMBOL
*/
public const PERMILL_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_PAD_ESCAPE_SYMBOL
*/
public const PAD_ESCAPE_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_INFINITY_SYMBOL
*/
public const INFINITY_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_NAN_SYMBOL
*/
public const NAN_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_SIGNIFICANT_DIGIT_SYMBOL
*/
public const SIGNIFICANT_DIGIT_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue UNUM_MONETARY_GROUPING_SEPARATOR_SYMBOL
*/
public const MONETARY_GROUPING_SEPARATOR_SYMBOL = UNKNOWN;
/**
* @var int
* @cvalue FORMAT_TYPE_DEFAULT
*/
public const TYPE_DEFAULT = UNKNOWN;
/**
* @var int
* @cvalue FORMAT_TYPE_INT32
*/
public const TYPE_INT32 = UNKNOWN;
/**
* @var int
* @cvalue FORMAT_TYPE_INT64
*/
public const TYPE_INT64 = UNKNOWN;
/**
* @var int
* @cvalue FORMAT_TYPE_DOUBLE
*/
public const TYPE_DOUBLE = UNKNOWN;
/**
* @var int
* @cvalue FORMAT_TYPE_CURRENCY
*/
public const TYPE_CURRENCY = UNKNOWN;
public function __construct(string $locale, int $style, ?string $pattern = null) {}
/**
* @tentative-return-type
* @alias numfmt_create
*/
public static function create(string $locale, int $style, ?string $pattern = null): ?NumberFormatter {}
/**
* @tentative-return-type
* @alias numfmt_format
*/
public function format(int|float $num, int $type = NumberFormatter::TYPE_DEFAULT): string|false {}
/**
* @param int $offset
* @tentative-return-type
* @alias numfmt_parse
*/
public function parse(string $string, int $type = NumberFormatter::TYPE_DOUBLE, &$offset = null): int|float|false {}
/**
* @tentative-return-type
* @alias numfmt_format_currency
*/
public function formatCurrency(float $amount, string $currency): string|false {}
/**
* @param string $currency
* @param int $offset
* @tentative-return-type
* @alias numfmt_parse_currency
*/
public function parseCurrency(string $string, &$currency, &$offset = null): float|false {}
/**
* @tentative-return-type
* @alias numfmt_set_attribute
*/
public function setAttribute(int $attribute, int|float $value): bool {}
/**
* @tentative-return-type
* @alias numfmt_get_attribute
*/
public function getAttribute(int $attribute): int|float|false {}
/**
* @tentative-return-type
* @alias numfmt_set_text_attribute
*/
public function setTextAttribute(int $attribute, string $value): bool {}
/**
* @tentative-return-type
* @alias numfmt_get_text_attribute
*/
public function getTextAttribute(int $attribute): string|false {}
/**
* @tentative-return-type
* @alias numfmt_set_symbol
*/
public function setSymbol(int $symbol, string $value): bool {}
/**
* @tentative-return-type
* @alias numfmt_get_symbol
*/
public function getSymbol(int $symbol): string|false {}
/**
* @tentative-return-type
* @alias numfmt_set_pattern
*/
public function setPattern(string $pattern): bool {}
/**
* @tentative-return-type
* @alias numfmt_get_pattern
*/
public function getPattern(): string|false {}
/**
* @tentative-return-type
* @alias numfmt_get_locale
*/
public function getLocale(int $type = ULOC_ACTUAL_LOCALE): string|false {}
/**
* @tentative-return-type
* @alias numfmt_get_error_code
*/
public function getErrorCode(): int {}
/**
* @tentative-return-type
* @alias numfmt_get_error_message
*/
public function getErrorMessage(): string {}
}
|