Results of 1 - 10 of about 180 for Locale (0.002 sec.)
- Locale クラス | PHP 8.3 9295
- Locale クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) はじめに "ロケール" とは、言語や文化等の地域固有の内容を API で取得する際に使用する識別子のことです。PHP で使用しているロケールは、 ICU (そして他の多くの Unix 系 OS や Mac、Ja
... す。 en-US (英語、米国) zh-Hant-TW (中国語、繁体字、台湾 ) fr-CA, fr-FR (それぞれ、カナダのフランス語とフランスのフランス語) Locale クラス (そしてそれに対応する手続き型の関数) を使用して、ロケール識別子に対する操作を行います。 たとえばその識別子が妥当な形 ... うかを調べたりします。 CLDR が UAX #35 で使用している (そして ICU も継承している) 拡張は、ICU で普通に用いることができます。 Locale クラスのインスタンスを作成することはできません。 すべての関数/メソッドは :: を付けて呼び出します。 ICU が使用するデフォルト ... のロケールを読み書きするには、 Locale::getDefault() と Locale::setDefault() を使用します。 null や空文字列は "root" ロケールとなります。 この "root" ロケールは、 ...
-
https://man.mtool.work/php/8.3/class.locale.html
- Locale::getDisplayName — 入力ロケールの表示名を、適切に地域化して返す | PHP 8.3 8452
- Locale::getDisplayName locale_get_display_name (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Locale::getDisplayName -- locale_get_display_name — 入力ロケールの表示名を、適切に地域化して返す 説明 オブジェクト指向型 public static functio
... n Locale::getDisplayName ( string $locale , ? string $displayLocale = null ): string | false 手続き型 function locale_get_display_n ... ame ( string $locale , ? string $displayLocale = null ): string | false 入力ロケールの表示名を、適切に地域化して返します。 locale が null の場合 ... はデフォルトのロケールを使用します。 説明 オブジェクト指向型 public static function Locale::getDisplayName ( string $locale , string $in_locale = ? ): string 手続き型 function locale_get_display_name ( string $loc ...
-
https://man.mtool.work/php/8.3/locale.getdisplayname.html
- Locale::setDefault — デフォルトの実行時ロケールを設定する | PHP 8.3 8375
- Locale::setDefault locale_set_default (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Locale::setDefault -- locale_set_default — デフォルトの実行時ロケールを設定する 説明 オブジェクト指向型 public static function Locale::setDefault ( str
... ing $locale ): true 手続き型 function locale_set_default ( string $locale ): true デフォルトの実行時ロケールを locale に設定します。 こ ... れは INTL のグローバル 'default_locale' のロケール ID となります。UAX #35 拡張も使用可能です。 パラメータ locale BCP 47 準拠の言語タグ。 戻り値 常に true を返しま ... す。 例 例1 locale_set_default() の例 <?php locale_set_default ( 'de-DE' ); echo locale_get_default (); ?> 例2 オブジェクト指向の例 <?php Loc ...
-
https://man.mtool.work/php/8.3/locale.setdefault.html
- NumberFormatter::getLocale — フォーマッタのロケールを取得する | PHP 8.3 8375
- NumberFormatter::getLocale numfmt_get_locale (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) NumberFormatter::getLocale -- numfmt_get_locale — フォーマッタのロケールを取得する 説明 オブジェクト指向型 public function NumberFormatter::getLocale
... ocale ( int $type = ULOC_ACTUAL_LOCALE ): string | false 手続き型 function numfmt_get_locale ( NumberFormatter $formatter , int $type = ULOC_ACTUAL_LOCALE ): str ... ル名を取得します。 パラメータ formatter NumberFormatter オブジェクト。 type 妥当なロケールあるいは正確なロケールのいずれか ( Locale::VALID_LOCALE , Locale::ACTUAL_LOCALE , respectively) を選択します。デフォルトは実際のロケールです。 戻り値 フォーマッタの ... 作成時に使用したロケールを返します。 失敗した場合は false を返します。 例 例1 numfmt_get_locale() の例 <?php $req = 'fr_FR_PARIS' ; $fmt = numfmt_create ( $req , NumberFormatter :: DECIMAL ); $res_val = numfmt_get_loca ...
-
https://man.mtool.work/php/8.3/numberformatter.getlocale.html
- Locale::getDefault — INTL のグローバル 'default_locale' からデフォルトのロケー... 8308
- Locale::getDefault locale_get_default (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Locale::getDefault -- locale_get_default — INTL のグローバル 'default_locale' からデフォルトのロケールを取得する 説明 オブジェクト指向型 public static
... function Locale::getDefault (): string 手続き型 function locale_get_default (): string デフォルトのロケールの値を取得します。PHP の国際化に ... おいては、 この値は php.ini の 'intl.default_locale' の値となります。 この値が存在しない場合は ICU の関数 uloc_getDefault() で取得します。 パラメータ 戻り値 現在の実行時ロケー ... ルを返します。 例 例1 locale_get_default() の例 <?php ini_set ( 'intl.default_locale' , 'de-DE' ); echo locale_get_default (); echo '; ' ; locale_set_d ...
-
https://man.mtool.work/php/8.3/locale.getdefault.html
- Collator::getLocale — collator のロケール名を取得する | PHP 8.3 8275
- Collator::getLocale collator_get_locale (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::getLocale -- collator_get_locale — collator のロケール名を取得する 説明 オブジェクト指向型 public function Collator::getLocale ( int $type
... ): string | false 手続き型 function collator_get_locale ( Collator $object , int $type ): string | false collector のロケール名を取得します。 パラメータ object Collator オブジェク ... ト。 type 妥当なロケールか実際のロケール (それぞれ Locale::VALID_LOCALE および Locale::ACTUAL_LOCALE )。 戻り値 照合データの実際のロケール名を返します。ルールベースの collator のイ ... ンスタンスの場合やエラーが発生した場合は false を返します。 例 例1 collator_get_locale() の例 <?php $coll = collator_create ( 'en_US_California' ); $res_val = collator_get_locale ( $coll , Locale :: VALID_LOCA ...
-
https://man.mtool.work/php/8.3/collator.getlocale.html
- Locale::getKeywords — 入力ロケールのキーワードを取得する | PHP 8.3 8253
- Locale::getKeywords locale_get_keywords (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Locale::getKeywords -- locale_get_keywords — 入力ロケールのキーワードを取得する 説明 オブジェクト指向型 public static function Locale::getKeywords (
... string $locale ): array | false | null 手続き型 function locale_get_keywords ( string $locale ): array | false | null 入力ロケールのキーワ ... ードを取得します。 パラメータ locale キーワードを取り出したいロケール。 空文字列を渡した場合は、代わりに locale_get_default() が返す値を使います。 戻り値 このロ ... ケールのキーワードと値のペアを連想配列で返します。 キーワードがない場合は null 、失敗した場合は false を返します。 locale の長さが INTL_MAX_LOCALE_LEN を超えた場合、 null を返します。 例 例1 locale_get_keywords() の例 <?php $keywords_arr = loca ...
-
https://man.mtool.work/php/8.3/locale.getkeywords.html
- Locale::getPrimaryLanguage — 入力ロケールのプライマリ言語を取得する | PHP 8.3 8253
- Locale::getPrimaryLanguage locale_get_primary_language (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Locale::getPrimaryLanguage -- locale_get_primary_language — 入力ロケールのプライマリ言語を取得する 説明 オブジェクト指向型 public stat
... ic function Locale::getPrimaryLanguage ( string $locale ): ? string 手続き型 function locale_get_primary_language ( string $locale ): ? strin ... g 入力ロケールのプライマリ言語を取得します。 パラメータ locale プライマリ言語コードを取り出したいロケール。 戻り値 このロケールの言語コードを返します。 locale の長さが INTL_MAX_LOCALE_L ... EN を超えた場合、 null を返します。 例 例1 locale_get_primary_language() の例 <?php echo locale_get_primary_language ( 'zh-Hant' ); ?> 例2 オブジェクト指向の例 <?php echo L ...
-
https://man.mtool.work/php/8.3/locale.getprimarylanguage.html
- Locale::getRegion — 入力ロケールの地域を取得する | PHP 8.3 8230
- Locale::getRegion locale_get_region (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Locale::getRegion -- locale_get_region — 入力ロケールの地域を取得する 説明 オブジェクト指向型 public static function Locale::getRegion ( string $locale )
... : ? string 手続き型 function locale_get_region ( string $locale ): ? string 入力ロケールの地域を取得します。 パラメータ locale 地域コードを取り出したいロケール ... 。 戻り値 このロケールの地域サブタグを返します。 地域サブタグが存在しない場合は null を返します。 locale の長さが INTL_MAX_LOCALE_LEN を超えた場合、 null を返します。 例 例1 locale_get_region() の例 <?php echo locale_get_region ... ( 'de-CH-1901' ); ?> 例2 オブジェクト指向の例 <?php echo Locale :: getRegion ( 'de-CH-1901' ); ?> 上の例の出力は以下となります。 CH 参考 locale_get_primary_language() - 入力ロケールのプラ ...
-
https://man.mtool.work/php/8.3/locale.getregion.html
- Locale::getAllVariants — 入力ロケールの変化系を取得する | PHP 8.3 8175
- Locale::getAllVariants locale_get_all_variants (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Locale::getAllVariants -- locale_get_all_variants — 入力ロケールの変化系を取得する 説明 オブジェクト指向型 public static function Locale::getA
... llVariants ( string $locale ): ? array 手続き型 function locale_get_all_variants ( string $locale ): ? array 入力ロケールの変化系を取得します。 パラメ ... ータ locale 変化系を取得したいロケール。 戻り値 そのロケールのすべての variant サブタグを含む配列、あるいは存在しない場合に null を返し ... ます。 locale の長さが INTL_MAX_LOCALE_LEN を超えた場合、 null を返します。 例 例1 locale_get_all_variants() の例 <?php $arr = locale_ge ...
-
https://man.mtool.work/php/8.3/locale.getallvariants.html