1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
<?php
/** @generate-class-entries */
/**
* @var int
* @cvalue PHP_ENCHANT_MYSPELL
* @deprecated
*/
const ENCHANT_MYSPELL = UNKNOWN;
/**
* @var int
* @cvalue PHP_ENCHANT_ISPELL
* @deprecated
*/
const ENCHANT_ISPELL = UNKNOWN;
#ifdef HAVE_ENCHANT_GET_VERSION
/**
* @var string
* @cvalue PHP_ENCHANT_GET_VERSION
*/
const LIBENCHANT_VERSION = UNKNOWN;
#endif
/**
* @strict-properties
* @not-serializable
*/
final class EnchantBroker
{
}
/**
* @strict-properties
* @not-serializable
*/
final class EnchantDictionary
{
}
function enchant_broker_init(): EnchantBroker|false {}
#[\Deprecated(since: '8.0', message: 'as EnchantBroker objects are freed automatically')]
function enchant_broker_free(EnchantBroker $broker): bool {}
function enchant_broker_get_error(EnchantBroker $broker): string|false {}
#[\Deprecated(since: '8.0')]
function enchant_broker_set_dict_path(EnchantBroker $broker, int $type, string $path): bool {}
#[\Deprecated(since: '8.0')]
function enchant_broker_get_dict_path(EnchantBroker $broker, int $type): string|false {}
/**
* @return array<int, array>
* @refcount 1
*/
function enchant_broker_list_dicts(EnchantBroker $broker): array {}
function enchant_broker_request_dict(EnchantBroker $broker, string $tag): EnchantDictionary|false {}
function enchant_broker_request_pwl_dict(EnchantBroker $broker, string $filename): EnchantDictionary|false {}
#[\Deprecated(since: '8.0', message: 'as EnchantDictionary objects are freed automatically')]
function enchant_broker_free_dict(EnchantDictionary $dictionary): bool {}
function enchant_broker_dict_exists(EnchantBroker $broker, string $tag): bool {}
function enchant_broker_set_ordering(EnchantBroker $broker, string $tag, string $ordering): bool {}
/**
* @return array<int, array>
* @refcount 1
*/
function enchant_broker_describe(EnchantBroker $broker): array {}
/** @param array $suggestions */
function enchant_dict_quick_check(EnchantDictionary $dictionary, string $word, &$suggestions = null): bool {}
function enchant_dict_check(EnchantDictionary $dictionary, string $word): bool {}
/**
* @return array<int, string>
* @refcount 1
*/
function enchant_dict_suggest(EnchantDictionary $dictionary, string $word): array {}
function enchant_dict_add(EnchantDictionary $dictionary, string $word): void {}
/**
* @alias enchant_dict_add
*/
#[\Deprecated(since: '8.0', message: 'use enchant_dict_add() instead')]
function enchant_dict_add_to_personal(EnchantDictionary $dictionary, string $word): void {}
function enchant_dict_add_to_session(EnchantDictionary $dictionary, string $word): void {}
function enchant_dict_is_added(EnchantDictionary $dictionary, string $word): bool {}
/**
* @alias enchant_dict_is_added
*/
#[\Deprecated(since: '8.0', message: 'use enchant_dict_is_added() instead')]
function enchant_dict_is_in_session(EnchantDictionary $dictionary, string $word): bool {}
function enchant_dict_store_replacement(EnchantDictionary $dictionary, string $misspelled, string $correct): void {}
function enchant_dict_get_error(EnchantDictionary $dictionary): string|false {}
/**
* @return array<string, string>
* @refcount 1
*/
function enchant_dict_describe(EnchantDictionary $dictionary): array {}
|