Results of 1 - 10 of about 18 for resourcebundle (0.001 sec.)
- ResourceBundle::create — リソースバンドルを作成する | PHP 8.3 10964
- ResourceBundle::create resourcebundle_create ResourceBundle::__construct (PHP 5 >= 5.3.2, PHP 7, PHP 8, PECL intl >= 2.0.0) ResourceBundle::create -- resourcebundle_create -- ResourceBundle::__construct — リソースバンドルを作成する 説明 オブ
... ジェクト指向型 (メソッド) public static function ResourceBundle::create ( ? string $locale , ? string $bundle , bool $fallback = true ): ? ResourceBundle 手続き型 function resourcebundle ... _create ( ? string $locale , ? string $bundle , bool $fallback = true ): ? ResourceBundle オブジェクト指向型 (コンストラクタ): public function ResourceBundle::__construct ( ? string $locale , ? string $bundle , b ... あるいは .dat ファイル名。 fallback ロケールを完全一致とするか、あるいは代替として親ロケールを使うことを許可するか。 戻り値 ResourceBundle オブジェクト、あるいはエラー時に null を返します。 例 例1 resourcebundle_create() の例 <?php $r = resourcebundle_create ( ...
-
https://man.mtool.work/php/8.3/resourcebundle.create.html
- ResourceBundle::getErrorMessage — バンドルの直近のエラーメッセージを取得する | ... 10912
- ResourceBundle::getErrorMessage resourcebundle_get_error_message (PHP 5 >= 5.3.2, PHP 7, PHP 8, PECL intl >= 2.0.0) ResourceBundle::getErrorMessage -- resourcebundle_get_error_message — バンドルの直近のエラーメッセージを取得する 説明 オブジ
... ェクト指向型 public function ResourceBundle::getErrorMessage (): string 手続き型 function resourcebundle_get_error_message ( ResourceBundle $bundle ): string バンドル ... オブジェクトが最後に実行した関数のエラーメッセージを取得します。 パラメータ bundle ResourceBundle オブジェクト。 戻り値 バンドルオブジェクトの最後の関数コールからのエラーメッセージを返します。 例 例1 resourcebundle_get_e ... rror_message() の例 <?php $r = resourcebundle_create ( 'es' , "/usr/share/data/myapp" ); echo $r [ 'somestring' ]; if( intl_is_failure ( resourcebundle_get_error_code ( ...
-
https://man.mtool.work/php/8.3/resourcebundle.geterrormessage.html
- ResourceBundle::count — バンドル内の要素数を取得する | PHP 8.3 10878
- ResourceBundle::count resourcebundle_count (PHP 5 >= 5.3.2, PHP 7, PHP 8, PECL intl >= 2.0.0) ResourceBundle::count -- resourcebundle_count — バンドル内の要素数を取得する 説明 オブジェクト指向型 public function ResourceBundle::count (): int
... 手続き型 function resourcebundle_count ( ResourceBundle $bundle ): int バンドル内の要素数を取得します。 パラメータ bundle ResourceBundle オブジェクト。 戻り ... 値 バンドル内の要素数を返します。 例 例1 resourcebundle_count() の例 <?php $r = resourcebundle_create ( 'es' , "/usr/share/data/myapp" ); echo resourcebundle_count ( $r ); ?> 例2 ... オブジェクト指向の例 <?php $r = new ResourceBundle ( 'es' , "/usr/share/data/myapp" ); echo $r -> count (); ?> 上の例の出力は以下となります。 42 参考 resourcebundle_get() - ...
-
https://man.mtool.work/php/8.3/resourcebundle.count.html
- ResourceBundle::getErrorCode — バンドルの直近のエラーコードを取得する | PHP 8.3 10758
- ResourceBundle::getErrorCode resourcebundle_get_error_code (PHP 5 >= 5.3.2, PHP 7, PHP 8, PECL intl >= 2.0.0) ResourceBundle::getErrorCode -- resourcebundle_get_error_code — バンドルの直近のエラーコードを取得する 説明 オブジェクト指向型 pub
... lic function ResourceBundle::getErrorCode (): int 手続き型 function resourcebundle_get_error_code ( ResourceBundle $bundle ): int バンドルオブジェクト ... が最後に実行した関数のエラーコードを取得します。 パラメータ bundle ResourceBundle オブジェクト。 戻り値 バンドルオブジェクトの最後の関数コールからのエラーコードを返します。 例 例1 resourcebundle_get_error ... _code() の例 <?php $r = resourcebundle_create ( 'es' , "/usr/share/data/myapp" ); echo $r [ 'somestring' ]; if( intl_is_failure ( resourcebundle_get_error_code ( ...
-
https://man.mtool.work/php/8.3/resourcebundle.geterrorcode.html
- ResourceBundle::get — バンドルからデータを取得する | PHP 8.3 10723
- ResourceBundle::get resourcebundle_get (PHP 5 >= 5.3.2, PHP 7, PHP 8, PECL intl >= 2.0.0) ResourceBundle::get -- resourcebundle_get — バンドルからデータを取得する 説明 オブジェクト指向型 public function ResourceBundle::get ( string | int $i
... ndex , bool $fallback = true ): ResourceBundle | array | string | int | null 手続き型 function resourcebundle_get ( ResourceBundle $bundle , string | int $index , bool $ ... fallback = true ): ResourceBundle | array | string | int | null インデックスあるいは文字列キーを指定して、バンドルからデータを取得します。 パラメータ bundle ... ResourceBundle オブジェクト。 index データのインデックス。文字列あるいは整数値となります。 fallback ロケールが正確にマッチしなければ、 親 ...
-
https://man.mtool.work/php/8.3/resourcebundle.get.html
- ResourceBundle::getLocales — サポートするロケールを取得する | PHP 8.3 10586
- ResourceBundle::getLocales resourcebundle_locales (PHP 5 >= 5.3.2, PHP 7, PHP 8, PECL intl >= 2.0.0) ResourceBundle::getLocales -- resourcebundle_locales — サポートするロケールを取得する 説明 オブジェクト指向型 public static function ResourceBundle
... ceBundle::getLocales ( string $bundle ): array | false 手続き型 function resourcebundle_locales ( string $bundle ): array | false ResourceBundle 名を指定して、サポートするロケールを取得します。 パラメータ bundl ... e ロケールを取得したい ResourceBundle のパス、あるいは 空文字列を指定するとデフォルトのロケール一覧を取得できます。 戻り値 このバンドルがサポートするロケールの一 ... 覧を返します。 失敗した場合は false を返します。 例 例1 resourcebundle_locales() の例 <?php $bundle = "/user/share/data/myapp" ; echo join ( PHP_EOL , resourcebundle_locales ( $bundle )); ?> 上 ...
-
https://man.mtool.work/php/8.3/resourcebundle.locales.html
- ResourceBundle クラス | PHP 8.3 10089
- ResourceBundle クラス (PHP 5 >= 5.3.2, PHP 7, PHP 8, PECL intl >= 2.0.0) はじめに ローカライズしたソフトウェア製品には、 現在のロケールによって切り替えるデータのセットが必要となることがよくあります。 たとえばメッセージやラベル、書式パターン
... いずれかの形式になります。シンプルなリソースは 文字列、整数、バイナリデータフィールド、整数の配列 のいずれかの型となります。 ResourceBundle からデータにアクセスするには、 配列を使う方法と foreach を使う方法、そしてクラスメソッドを使う方法があります。 シンプルなリ ... ソースの場合は PHP の値、複雑なリソースの場合は ResourceBundle オブジェクトとして取得できます。 リソースはすべて読み込み専用となります。 クラス概要 class ResourceBundle implements Itera ... ic function count (): int public static function create ( ? string $locale , ? string $bundle , bool $fallback = true ): ? ResourceBundle public function get ( string | int $index , bool $fallback = true ): ResourceBundle | array | string | int | null public f ...
-
https://man.mtool.work/php/8.3/class.resourcebundle.html
- 国際化関数 | PHP 8.3 7549
- 国際化関数 はじめに 国際化用拡張モジュール (これ以降では Intl と略します) は » ICU ライブラリのラッパーです。 PHP プログラマが、ロケール関連のさまざまな操作を行えるようにします。 フォーマット、音訳、エンコード変換、カレンダーの処理、 » UCA
... atter::setPattern — IntlDateFormatter が使用するパターンを設定する IntlDateFormatter::setTimeZone — タイムゾーンを設定する ResourceBundle — ResourceBundle クラス ResourceBundle::count — バンドル内の要素数を取得する ResourceBundle::create — リソースバンドルを作 ... 成する ResourceBundle::get — バンドルからデータを取得する ResourceBundle::getErrorCode — バンドルの直近のエラーコードを取得する ResourceBundle:: ... getErrorMessage — バンドルの直近のエラーメッセージを取得する ResourceBundle::getLocales — サポートするロケールを取得する Spoofchecker — Spoofchecker クラス Spoofchecker::areConfusable — 指定された文 ...
-
https://man.mtool.work/php/8.3/book.intl.html
- intl_get_error_message — 直近のエラーの説明を取得する | PHP 8.3 7515
- intl_get_error_message (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) intl_get_error_message — 直近のエラーの説明を取得する 説明 function intl_get_error_message (): string 直近の国際化関数のコールによるエラーメッセージを取得します。 パラ
... せん。 戻り値 直近の API 関数のコールで発生したエラーの説明を返します。 例 例1 intl_get_error_message() の例 <?php $bundle = resourcebundle_create ( 'en_US' , __DIR__ . '/does-not-exist' , false ); if ( $bundle === null ) { $errorCode = intl_get_error_code (); p ... : %s\n" , intl_get_error_message ()); } 上の例の出力は以下となります。 Error name: U_MISSING_RESOURCE_ERROR Error message: resourcebundle_create(): Cannot load libICU resource bundle: U_MISSING_RESOURCE_ERROR 参考 intl_error_name() - 指定したエラーコードに対応 ...
-
https://man.mtool.work/php/8.3/function.intl-get-error-message.html
- 自然言語および文字エンコーディング | PHP 8.3 7515
- 自然言語および文字エンコーディング Enchant — Enchant スペリングライブラリ インストール/設定 定義済み定数 例 Enchant 関数 EnchantBroker — EnchantBroker クラス EnchantDictionary — EnchantDictionary クラス Gender — 名前の性別の判別 インストール
... ianCalendar — IntlGregorianCalendar クラス IntlTimeZone — IntlTimeZone クラス IntlDateFormatter — IntlDateFormatter クラス ResourceBundle — ResourceBundle クラス Spoofchecker — Spoofchecker クラス Transliterator — Transliterator クラス IntlBreakIterator — Intl ...
-
https://man.mtool.work/php/8.3/refs.international.html