pspell_arginfo.h 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. /* This is a generated file, edit the .stub.php file instead.
  2. * Stub hash: 54253af8d28520254e062171733c753d7104ec6b */
  3. ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pspell_new, 0, 1, PSpell\\Dictionary, MAY_BE_FALSE)
  4. ZEND_ARG_TYPE_INFO(0, language, IS_STRING, 0)
  5. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, spelling, IS_STRING, 0, "\"\"")
  6. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, jargon, IS_STRING, 0, "\"\"")
  7. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 0, "\"\"")
  8. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0")
  9. ZEND_END_ARG_INFO()
  10. ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pspell_new_personal, 0, 2, PSpell\\Dictionary, MAY_BE_FALSE)
  11. ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
  12. ZEND_ARG_TYPE_INFO(0, language, IS_STRING, 0)
  13. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, spelling, IS_STRING, 0, "\"\"")
  14. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, jargon, IS_STRING, 0, "\"\"")
  15. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 0, "\"\"")
  16. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0")
  17. ZEND_END_ARG_INFO()
  18. ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pspell_new_config, 0, 1, PSpell\\Dictionary, MAY_BE_FALSE)
  19. ZEND_ARG_OBJ_INFO(0, config, PSpell\\Config, 0)
  20. ZEND_END_ARG_INFO()
  21. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pspell_check, 0, 2, _IS_BOOL, 0)
  22. ZEND_ARG_OBJ_INFO(0, dictionary, PSpell\\Dictionary, 0)
  23. ZEND_ARG_TYPE_INFO(0, word, IS_STRING, 0)
  24. ZEND_END_ARG_INFO()
  25. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pspell_suggest, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
  26. ZEND_ARG_OBJ_INFO(0, dictionary, PSpell\\Dictionary, 0)
  27. ZEND_ARG_TYPE_INFO(0, word, IS_STRING, 0)
  28. ZEND_END_ARG_INFO()
  29. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pspell_store_replacement, 0, 3, _IS_BOOL, 0)
  30. ZEND_ARG_OBJ_INFO(0, dictionary, PSpell\\Dictionary, 0)
  31. ZEND_ARG_TYPE_INFO(0, misspelled, IS_STRING, 0)
  32. ZEND_ARG_TYPE_INFO(0, correct, IS_STRING, 0)
  33. ZEND_END_ARG_INFO()
  34. #define arginfo_pspell_add_to_personal arginfo_pspell_check
  35. #define arginfo_pspell_add_to_session arginfo_pspell_check
  36. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pspell_clear_session, 0, 1, _IS_BOOL, 0)
  37. ZEND_ARG_OBJ_INFO(0, dictionary, PSpell\\Dictionary, 0)
  38. ZEND_END_ARG_INFO()
  39. #define arginfo_pspell_save_wordlist arginfo_pspell_clear_session
  40. ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_pspell_config_create, 0, 1, PSpell\\Config, 0)
  41. ZEND_ARG_TYPE_INFO(0, language, IS_STRING, 0)
  42. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, spelling, IS_STRING, 0, "\"\"")
  43. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, jargon, IS_STRING, 0, "\"\"")
  44. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 0, "\"\"")
  45. ZEND_END_ARG_INFO()
  46. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pspell_config_runtogether, 0, 2, _IS_BOOL, 0)
  47. ZEND_ARG_OBJ_INFO(0, config, PSpell\\Config, 0)
  48. ZEND_ARG_TYPE_INFO(0, allow, _IS_BOOL, 0)
  49. ZEND_END_ARG_INFO()
  50. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pspell_config_mode, 0, 2, _IS_BOOL, 0)
  51. ZEND_ARG_OBJ_INFO(0, config, PSpell\\Config, 0)
  52. ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
  53. ZEND_END_ARG_INFO()
  54. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pspell_config_ignore, 0, 2, _IS_BOOL, 0)
  55. ZEND_ARG_OBJ_INFO(0, config, PSpell\\Config, 0)
  56. ZEND_ARG_TYPE_INFO(0, min_length, IS_LONG, 0)
  57. ZEND_END_ARG_INFO()
  58. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pspell_config_personal, 0, 2, _IS_BOOL, 0)
  59. ZEND_ARG_OBJ_INFO(0, config, PSpell\\Config, 0)
  60. ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
  61. ZEND_END_ARG_INFO()
  62. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pspell_config_dict_dir, 0, 2, _IS_BOOL, 0)
  63. ZEND_ARG_OBJ_INFO(0, config, PSpell\\Config, 0)
  64. ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0)
  65. ZEND_END_ARG_INFO()
  66. #define arginfo_pspell_config_data_dir arginfo_pspell_config_dict_dir
  67. #define arginfo_pspell_config_repl arginfo_pspell_config_personal
  68. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pspell_config_save_repl, 0, 2, _IS_BOOL, 0)
  69. ZEND_ARG_OBJ_INFO(0, config, PSpell\\Config, 0)
  70. ZEND_ARG_TYPE_INFO(0, save, _IS_BOOL, 0)
  71. ZEND_END_ARG_INFO()
  72. ZEND_FUNCTION(pspell_new);
  73. ZEND_FUNCTION(pspell_new_personal);
  74. ZEND_FUNCTION(pspell_new_config);
  75. ZEND_FUNCTION(pspell_check);
  76. ZEND_FUNCTION(pspell_suggest);
  77. ZEND_FUNCTION(pspell_store_replacement);
  78. ZEND_FUNCTION(pspell_add_to_personal);
  79. ZEND_FUNCTION(pspell_add_to_session);
  80. ZEND_FUNCTION(pspell_clear_session);
  81. ZEND_FUNCTION(pspell_save_wordlist);
  82. ZEND_FUNCTION(pspell_config_create);
  83. ZEND_FUNCTION(pspell_config_runtogether);
  84. ZEND_FUNCTION(pspell_config_mode);
  85. ZEND_FUNCTION(pspell_config_ignore);
  86. ZEND_FUNCTION(pspell_config_personal);
  87. ZEND_FUNCTION(pspell_config_dict_dir);
  88. ZEND_FUNCTION(pspell_config_data_dir);
  89. ZEND_FUNCTION(pspell_config_repl);
  90. ZEND_FUNCTION(pspell_config_save_repl);
  91. static const zend_function_entry ext_functions[] = {
  92. ZEND_FE(pspell_new, arginfo_pspell_new)
  93. ZEND_FE(pspell_new_personal, arginfo_pspell_new_personal)
  94. ZEND_FE(pspell_new_config, arginfo_pspell_new_config)
  95. ZEND_FE(pspell_check, arginfo_pspell_check)
  96. ZEND_FE(pspell_suggest, arginfo_pspell_suggest)
  97. ZEND_FE(pspell_store_replacement, arginfo_pspell_store_replacement)
  98. ZEND_FE(pspell_add_to_personal, arginfo_pspell_add_to_personal)
  99. ZEND_FE(pspell_add_to_session, arginfo_pspell_add_to_session)
  100. ZEND_FE(pspell_clear_session, arginfo_pspell_clear_session)
  101. ZEND_FE(pspell_save_wordlist, arginfo_pspell_save_wordlist)
  102. ZEND_FE(pspell_config_create, arginfo_pspell_config_create)
  103. ZEND_FE(pspell_config_runtogether, arginfo_pspell_config_runtogether)
  104. ZEND_FE(pspell_config_mode, arginfo_pspell_config_mode)
  105. ZEND_FE(pspell_config_ignore, arginfo_pspell_config_ignore)
  106. ZEND_FE(pspell_config_personal, arginfo_pspell_config_personal)
  107. ZEND_FE(pspell_config_dict_dir, arginfo_pspell_config_dict_dir)
  108. ZEND_FE(pspell_config_data_dir, arginfo_pspell_config_data_dir)
  109. ZEND_FE(pspell_config_repl, arginfo_pspell_config_repl)
  110. ZEND_FE(pspell_config_save_repl, arginfo_pspell_config_save_repl)
  111. ZEND_FE_END
  112. };
  113. static const zend_function_entry class_PSpell_Dictionary_methods[] = {
  114. ZEND_FE_END
  115. };
  116. static const zend_function_entry class_PSpell_Config_methods[] = {
  117. ZEND_FE_END
  118. };
  119. static zend_class_entry *register_class_PSpell_Dictionary(void)
  120. {
  121. zend_class_entry ce, *class_entry;
  122. INIT_NS_CLASS_ENTRY(ce, "PSpell", "Dictionary", class_PSpell_Dictionary_methods);
  123. class_entry = zend_register_internal_class_ex(&ce, NULL);
  124. class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
  125. return class_entry;
  126. }
  127. static zend_class_entry *register_class_PSpell_Config(void)
  128. {
  129. zend_class_entry ce, *class_entry;
  130. INIT_NS_CLASS_ENTRY(ce, "PSpell", "Config", class_PSpell_Config_methods);
  131. class_entry = zend_register_internal_class_ex(&ce, NULL);
  132. class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
  133. return class_entry;
  134. }