/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/intl/rangeformatter/rangeformatter.stub.php
61 строка
2 KB
Bogdan Ungureanu
ext/intl: Add IntlNumberRangeFormatter class.
27 сен 2025, 03:58
Не верифицирован
27 сен 2025, 03:58
6ef4a87
Код
Авторство
О чём код?
<?php /** @generate-class-entries */ /** * @not-serializable * @strict-properties */ final class IntlNumberRangeFormatter { #if U_ICU_VERSION_MAJOR_NUM >= 63 /** @cvalue UNUM_RANGE_COLLAPSE_AUTO */ public const int COLLAPSE_AUTO = UNKNOWN; /** @cvalue UNUM_RANGE_COLLAPSE_NONE */ public const int COLLAPSE_NONE = UNKNOWN; /** @cvalue UNUM_RANGE_COLLAPSE_UNIT */ public const int COLLAPSE_UNIT = UNKNOWN; /** @cvalue UNUM_RANGE_COLLAPSE_ALL */ public const int COLLAPSE_ALL = UNKNOWN; /** @cvalue UNUM_IDENTITY_FALLBACK_SINGLE_VALUE */ public const int IDENTITY_FALLBACK_SINGLE_VALUE = UNKNOWN; /** @cvalue UNUM_IDENTITY_FALLBACK_APPROXIMATELY_OR_SINGLE_VALUE */ public const int IDENTITY_FALLBACK_APPROXIMATELY_OR_SINGLE_VALUE = UNKNOWN; /** @cvalue UNUM_IDENTITY_FALLBACK_APPROXIMATELY */ public const int IDENTITY_FALLBACK_APPROXIMATELY = UNKNOWN; /** @cvalue UNUM_IDENTITY_FALLBACK_RANGE */ public const int IDENTITY_FALLBACK_RANGE = UNKNOWN; #else public const int COLLAPSE_AUTO = 0; public const int COLLAPSE_NONE = 1; public const int COLLAPSE_UNIT = 2; public const int COLLAPSE_ALL = 3; public const int IDENTITY_FALLBACK_SINGLE_VALUE = 0; public const int IDENTITY_FALLBACK_APPROXIMATELY_OR_SINGLE_VALUE = 1; public const int IDENTITY_FALLBACK_APPROXIMATELY = 2; public const int IDENTITY_FALLBACK_RANGE = 3; #endif private function __construct() {} public static function createFromSkeleton(string $skeleton, string $locale, int $collapse, int $identityFallback): IntlNumberRangeFormatter {} public function format(float|int $start, float|int $end): string {} public function getErrorCode(): int {} public function getErrorMessage(): string {} }