Php/docs/function.enchant-dict-store-replacement

提供:Dev Guides
< Php
移動先:案内検索

enchant_dict_store_replacement

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

enchant_dict_store_replacement単語の修正候補を追加する


説明

enchant_dict_store_replacement ( EnchantDictionary $dictionary , string $misspelled , string $correct ) : void

'mis' の修正候補として 'cor' を使用します。 @mis が @cor に置き換えられることに注意しましょう。 今後 @mis が登場すると、それは @cor で置き換えられます。 そのため、@cor が修正候補の中で衝突するかもしれません。


パラメータ

dictionary
enchant_broker_request_dict() または enchant_broker_request_pwl_dict() によって返される Enchant 辞書。
misspelled
修正する単語。
correct
正しい単語。


返り値

成功した場合に true を、失敗した場合に false を返します。


変更履歴

バージョン 説明
8.0.0 dictionary は、EnchantDictionary クラスのインスタンスを期待するようになりました。

これより前のバージョンでは、リソース が期待されていました。