(No version information available, might only be in Git)
IntlListFormatter::__construct — 新しい IntlListFormatter のインスタンスを作成する
$locale, int $type = IntlListFormatter::TYPE_AND, int $width = IntlListFormatter::WIDTH_WIDE)指定したロケール用の新しい IntlListFormatter のインスタンスを作成します。
localetypeIntlListFormatter::TYPE_* 定数
(IntlListFormatter::TYPE_AND,
IntlListFormatter::TYPE_OR,
IntlListFormatter::TYPE_UNITS) のいずれかです。
widthIntlListFormatter::WIDTH_* 定数
(IntlListFormatter::WIDTH_WIDE,
IntlListFormatter::WIDTH_SHORT,
IntlListFormatter::WIDTH_NARROW) のいずれかです。
フォーマッタを作成できない場合 (ロケールが不正な場合や、ICU のバージョンが 67 未満の場合など)、 IntlException をスローします。
| バージョン | 説明 |
|---|---|
| 8.5.0 | このクラスが追加されました。 |