pspell.stub.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /** @generate-class-entries */
  3. namespace PSpell {
  4. /**
  5. * @strict-properties
  6. * @not-serializable
  7. */
  8. final class Dictionary {}
  9. /**
  10. * @strict-properties
  11. * @not-serializable
  12. */
  13. final class Config {}
  14. }
  15. namespace {
  16. function pspell_new(string $language, string $spelling = "", string $jargon = "", string $encoding = "", int $mode = 0): PSpell\Dictionary|false {}
  17. function pspell_new_personal(
  18. string $filename,
  19. string $language,
  20. string $spelling = "",
  21. string $jargon = "",
  22. string $encoding = "",
  23. int $mode = 0
  24. ): PSpell\Dictionary|false {}
  25. function pspell_new_config(PSpell\Config $config): PSpell\Dictionary|false {}
  26. function pspell_check(PSpell\Dictionary $dictionary, string $word): bool {}
  27. /**
  28. * @return array<int, string>|false
  29. * @refcount 1
  30. */
  31. function pspell_suggest(PSpell\Dictionary $dictionary, string $word): array|false {}
  32. function pspell_store_replacement(PSpell\Dictionary $dictionary, string $misspelled, string $correct): bool {}
  33. function pspell_add_to_personal(PSpell\Dictionary $dictionary, string $word): bool {}
  34. function pspell_add_to_session(PSpell\Dictionary $dictionary, string $word): bool {}
  35. function pspell_clear_session(PSpell\Dictionary $dictionary): bool {}
  36. function pspell_save_wordlist(PSpell\Dictionary $dictionary): bool {}
  37. function pspell_config_create(string $language, string $spelling = "", string $jargon = "", string $encoding = ""): PSpell\Config {}
  38. function pspell_config_runtogether(PSpell\Config $config, bool $allow): bool {}
  39. function pspell_config_mode(PSpell\Config $config, int $mode): bool {}
  40. function pspell_config_ignore(PSpell\Config $config, int $min_length): bool {}
  41. function pspell_config_personal(PSpell\Config $config, string $filename): bool {}
  42. function pspell_config_dict_dir(PSpell\Config $config, string $directory): bool {}
  43. function pspell_config_data_dir(PSpell\Config $config, string $directory): bool {}
  44. function pspell_config_repl(PSpell\Config $config, string $filename): bool {}
  45. function pspell_config_save_repl(PSpell\Config $config, bool $save): bool {}
  46. }