« enchant_dict_add_to_session
enchant_dict_describe »

enchant_dict_check

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL enchant >= 0.1.0 )

enchant_dict_check — 単語のスペルが正しいかどうかを調べる

説明

function enchant_dict_check(EnchantDictionary $dictionary, string $word): bool

単語のスペルが正しい場合に true、 そうでない場合に false を返します。

パラメータ

dictionary

enchant_broker_request_dict() または enchant_broker_request_pwl_dict() によって返される Enchant 辞書。

word

調べる単語。

戻り値

単語のスペルが正しい場合に true、 そうでない場合に false を返します。

エラー / 例外

dictionary が初期化されていないか、 enchant_broker_free_dict() で既に解放されているなどの理由で使用できない場合、 ValueError がスローされます。

変更履歴

バージョン 説明
8.0.0 dictionary は、EnchantDictionary クラスのインスタンスを期待するようになりました。 これより前のバージョンでは、resource が期待されていました。
関連キーワード:
enchant   dict   スペル   dictionary   check   broker   Enchant   EnchantDictionary   request   session   辞書   初期化   理由   ValueError   インスタンス   resource
関連する関数・ページ:
function.enchant-dict-add-to-session   function.enchant-dict-quick-check   function.enchant-dict-is-added   function.enchant-dict-get-error   function.enchant-dict-suggest   function.enchant-dict-add

他のマニュアルの関連ページ