pspell_config_mode

(PHP 4 >= 4.0.2)

pspell_config_mode -- 返される提案の数のモードを変更する

説明

int pspell_config_mode ( int dictionary_link, int mode)

pspell_config_mode() は、 pspell_new_config()をコールする前に設定するた めに使用する必要があります。この関数は、 pspell_suggest()により返される修正候補の数を定 義します。

パラメータmodeは、スペルチェッカの動作モー ドです。以下に示す複数のモードを使用可能です。

例 1pspell_config_mode()

$pspell_config = pspell_config_create ("en");
pspell_config_mode($pspell_config, PSPELL_FAST);
$pspell_link = pspell_new_config($pspell_config);
pspell_check($pspell_link, "thecat");