* create a new broker object capable of requesting * @link https://php.net/manual/en/function.enchant-broker-init.php * @return resource|false|EnchantBroker a broker resource on success or FALSE. */ function enchant_broker_init() {} /** * Free the broker resource and its dictionaries * @link https://php.net/manual/en/function.enchant-broker-free.php * @param resource|EnchantBroker $broker

* Broker resource *

* @return bool TRUE on success or FALSE on failure. * @since 5.3 */ #[Deprecated(reason: "Unset the object instead", since: '8.0')] function enchant_broker_free($broker) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
* Returns the last error of the broker * @link https://php.net/manual/en/function.enchant-broker-get-error.php * @param resource|EnchantBroker $broker

* Broker resource. *

* @return string|false Return the msg string if an error was found or FALSE */ function enchant_broker_get_error($broker) {} /** * Set the directory path for a given backend * @link https://www.php.net/manual/en/function.enchant-broker-set-dict-path.php * @param resource|EnchantBroker $broker * @param int $dict_type * @param string $value * @return bool TRUE on success or FALSE on failure. */ #[Deprecated(since: '8.0', reason: 'Relying on this function is highly discouraged.')] function enchant_broker_set_dict_path($broker, int $dict_type, string $value) {} /** * Get the directory path for a given backend * @link https://www.php.net/manual/en/function.enchant-broker-get-dict-path.php * @param resource|EnchantBroker $broker * @param int $dict_type * @return string|false */ #[Deprecated(since: '8.0', reason: 'Relying on this function is highly discouraged.')] function enchant_broker_get_dict_path($broker, $dict_type) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 1.0.1)
* Returns a list of available dictionaries * @link https://php.net/manual/en/function.enchant-broker-list-dicts.php * @param resource|EnchantBroker $broker

* Broker resource *

* @return array Returns an array of available dictionaries with their details. */ function enchant_broker_list_dicts($broker) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
* create a new dictionary using a tag * @link https://php.net/manual/en/function.enchant-broker-request-dict.php * @param resource|EnchantBroker $broker

* Broker resource *

* @param string $tag

* A tag describing the locale, for example en_US, de_DE *

* @return resource|false|EnchantDictionary a dictionary resource on success or FALSE on failure. */ function enchant_broker_request_dict($broker, $tag) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
* creates a dictionary using a PWL file * @link https://php.net/manual/en/function.enchant-broker-request-pwl-dict.php * @param resource|EnchantBroker $broker

* Broker resource *

* @param string $filename

* Path to the PWL file. *

* @return resource|false|EnchantDictionary a dictionary resource on success or FALSE on failure. */ function enchant_broker_request_pwl_dict($broker, $filename) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
* Free a dictionary resource * @link https://php.net/manual/en/function.enchant-broker-free-dict.php * @param resource|EnchantDictionary $dict

* Dictionary resource. *

* @return bool TRUE on success or FALSE on failure. */ #[Deprecated("Unset the object instead", since: '8.0')] function enchant_broker_free_dict($dict) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
* Whether a dictionary exists or not. Using non-empty tag * @link https://php.net/manual/en/function.enchant-broker-dict-exists.php * @param resource|EnchantBroker $broker

* Broker resource *

* @param string $tag

* non-empty tag in the LOCALE format, ex: us_US, ch_DE, etc. *

* @return bool TRUE when the tag exist or FALSE when not. */ function enchant_broker_dict_exists($broker, $tag) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
* Declares a preference of dictionaries to use for the language * @link https://php.net/manual/en/function.enchant-broker-set-ordering.php * @param resource|EnchantBroker $broker

* Broker resource *

* @param string $tag

* Language tag. The special "*" tag can be used as a language tag * to declare a default ordering for any language that does not * explicitly declare an ordering. *

* @param string $ordering

* Comma delimited list of provider names *

* @return bool TRUE on success or FALSE on failure. */ function enchant_broker_set_ordering($broker, $tag, $ordering) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0)
* Enumerates the Enchant providers * @link https://php.net/manual/en/function.enchant-broker-describe.php * @param resource|EnchantBroker $broker

* Broker resource *

* @return array|false */ function enchant_broker_describe($broker) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
* Check whether a word is correctly spelled or not * @link https://php.net/manual/en/function.enchant-dict-check.php * @param resource|EnchantDictionary $dict

* Dictionary resource *

* @param string $word

* The word to check *

* @return bool TRUE if the word is spelled correctly, FALSE if not. */ function enchant_dict_check($dict, $word) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
* Will return a list of values if any of those pre-conditions are not met * @link https://php.net/manual/en/function.enchant-dict-suggest.php * @param resource|EnchantDictionary $dict

* Dictionary resource *

* @param string $word

* Word to use for the suggestions. *

* @return array|false Will returns an array of suggestions if the word is bad spelled. */ function enchant_dict_suggest($dict, $word) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
* add a word to personal word list * @link https://php.net/manual/en/function.enchant-dict-add-to-personal.php * @param resource $dict

* Dictionary resource *

* @param string $word

* The word to add *

* @return void * @see enchant_dict_add() */ #[Deprecated( reason: 'Use enchant_dict_add instead', replacement: 'enchant_dict_add(%parameter0%, %parameter1%)', since: '8.0' )] function enchant_dict_add_to_personal($dict, $word) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
* add 'word' to this spell-checking session * @link https://php.net/manual/en/function.enchant-dict-add-to-session.php * @param resource|EnchantDictionary $dict

* Dictionary resource *

* @param string $word

* The word to add *

* @return void */ function enchant_dict_add_to_session($dict, $word) {} /** * (PHP 8)
* Add a word to personal word list * @link https://php.net/manual/en/function.enchant-dict-add.php * @param EnchantDictionary $dictionary

* An Enchant dictionary returned by enchant_broker_request_dict() or enchant_broker_request_pwl_dict(). *

* @param string $word

* The word to add *

* @return void * @since 8.0 */ function enchant_dict_add($dictionary, $word) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
* whether or not 'word' exists in this spelling-session * @link https://php.net/manual/en/function.enchant-dict-is-in-session.php * @param resource $dict

* Dictionary resource *

* @param string $word

* The word to lookup *

* @return bool TRUE if the word exists or FALSE * @see enchant_dict_is_added */ #[Deprecated( reason: 'Use enchant_dict_is_added instead', replacement: 'enchant_dict_is_added(%parameter0%, %parameter1%)', since: '8.0' )] function enchant_dict_is_in_session($dict, $word) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
* Add a correction for a word * @link https://php.net/manual/en/function.enchant-dict-store-replacement.php * @param resource|EnchantDictionary $dict

* Dictionary resource *

* @param string $mis

* The work to fix *

* @param string $cor

* The correct word *

* @return void */ function enchant_dict_store_replacement($dict, $mis, $cor) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
* Returns the last error of the current spelling-session * @link https://php.net/manual/en/function.enchant-dict-get-error.php * @param resource|EnchantDictionary $dict

* Dictinaray resource *

* @return string|false the error message as string or FALSE if no error occurred. */ function enchant_dict_get_error($dict) {} /** * (PHP 8)
* Whether or not 'word' exists in this spelling-session * @link https://php.net/manual/en/function.enchant-dict-is-added.php * @param EnchantDictionary $dictionary

* An Enchant dictionary returned by enchant_broker_request_dict() or enchant_broker_request_pwl_dict(). *

* @param string $word

* The word to lookup *

* @return bool TRUE if the word exists or FALSE * @since 8.0 */ function enchant_dict_is_added($dictionary, $word) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
* Describes an individual dictionary * @link https://php.net/manual/en/function.enchant-dict-describe.php * @param resource|EnchantDictionary $dict

* Dictionary resource *

* @return array Returns the details of the dictionary. */ function enchant_dict_describe($dict) {} /** * (PHP 5 >= 5.3.0, PECL enchant:0.2.0-1.0.1)
* Check the word is correctly spelled and provide suggestions * @link https://php.net/manual/en/function.enchant-dict-quick-check.php * @param resource|EnchantDictionary $dict

* Dictionary resource *

* @param string $word

* The word to check *

* @param null|array &$suggestions [optional]

* If the word is not correctly spelled, this variable will * contain an array of suggestions. *

* @return bool TRUE if the word is correctly spelled or FALSE */ function enchant_dict_quick_check($dict, $word, ?array &$suggestions = null) {} /** * @deprecated 8.0 */ define('ENCHANT_MYSPELL', 1); /** * @deprecated 8.0 */ define('ENCHANT_ISPELL', 2); final class EnchantBroker {} final class EnchantDictionary {} // End of enchant v.1.1.0