enchant.stub.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. /** @generate-class-entries */
  3. /**
  4. * @strict-properties
  5. * @not-serializable
  6. */
  7. final class EnchantBroker
  8. {
  9. }
  10. /**
  11. * @strict-properties
  12. * @not-serializable
  13. */
  14. final class EnchantDictionary
  15. {
  16. }
  17. function enchant_broker_init(): EnchantBroker|false {}
  18. /** @deprecated */
  19. function enchant_broker_free(EnchantBroker $broker): bool {}
  20. function enchant_broker_get_error(EnchantBroker $broker): string|false {}
  21. /** @deprecated */
  22. function enchant_broker_set_dict_path(EnchantBroker $broker, int $type, string $path): bool {}
  23. /** @deprecated */
  24. function enchant_broker_get_dict_path(EnchantBroker $broker, int $type): string|false {}
  25. /**
  26. * @return array<int, array>
  27. * @refcount 1
  28. */
  29. function enchant_broker_list_dicts(EnchantBroker $broker): array {}
  30. function enchant_broker_request_dict(EnchantBroker $broker, string $tag): EnchantDictionary|false {}
  31. function enchant_broker_request_pwl_dict(EnchantBroker $broker, string $filename): EnchantDictionary|false {}
  32. /** @deprecated */
  33. function enchant_broker_free_dict(EnchantDictionary $dictionary): bool {}
  34. function enchant_broker_dict_exists(EnchantBroker $broker, string $tag): bool {}
  35. function enchant_broker_set_ordering(EnchantBroker $broker, string $tag, string $ordering): bool {}
  36. /**
  37. * @return array<int, array>
  38. * @refcount 1
  39. */
  40. function enchant_broker_describe(EnchantBroker $broker): array {}
  41. /** @param array $suggestions */
  42. function enchant_dict_quick_check(EnchantDictionary $dictionary, string $word, &$suggestions = null): bool {}
  43. function enchant_dict_check(EnchantDictionary $dictionary, string $word): bool {}
  44. /**
  45. * @return array<int, string>
  46. * @refcount 1
  47. */
  48. function enchant_dict_suggest(EnchantDictionary $dictionary, string $word): array {}
  49. function enchant_dict_add(EnchantDictionary $dictionary, string $word): void {}
  50. /**
  51. * @alias enchant_dict_add
  52. * @deprecated
  53. */
  54. function enchant_dict_add_to_personal(EnchantDictionary $dictionary, string $word): void {}
  55. function enchant_dict_add_to_session(EnchantDictionary $dictionary, string $word): void {}
  56. function enchant_dict_is_added(EnchantDictionary $dictionary, string $word): bool {}
  57. /**
  58. * @alias enchant_dict_is_added
  59. * @deprecated
  60. */
  61. function enchant_dict_is_in_session(EnchantDictionary $dictionary, string $word): bool {}
  62. function enchant_dict_store_replacement(EnchantDictionary $dictionary, string $misspelled, string $correct): void {}
  63. function enchant_dict_get_error(EnchantDictionary $dictionary): string|false {}
  64. /**
  65. * @return array<string, string>
  66. * @refcount 1
  67. */
  68. function enchant_dict_describe(EnchantDictionary $dictionary): array {}