xref: /PHP-8.3/ext/enchant/enchant_arginfo.h (revision b4ec3e9b)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 42bb5a4488d254e87d763c75ccff62e283e63335 */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_enchant_broker_init, 0, 0, EnchantBroker, MAY_BE_FALSE)
5 ZEND_END_ARG_INFO()
6 
7 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_free, 0, 1, _IS_BOOL, 0)
8 	ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
9 ZEND_END_ARG_INFO()
10 
11 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_enchant_broker_get_error, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
12 	ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
13 ZEND_END_ARG_INFO()
14 
15 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_set_dict_path, 0, 3, _IS_BOOL, 0)
16 	ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
17 	ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
18 	ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0)
19 ZEND_END_ARG_INFO()
20 
21 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_enchant_broker_get_dict_path, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
22 	ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
23 	ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
24 ZEND_END_ARG_INFO()
25 
26 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_list_dicts, 0, 1, IS_ARRAY, 0)
27 	ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
28 ZEND_END_ARG_INFO()
29 
30 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_enchant_broker_request_dict, 0, 2, EnchantDictionary, MAY_BE_FALSE)
31 	ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
32 	ZEND_ARG_TYPE_INFO(0, tag, IS_STRING, 0)
33 ZEND_END_ARG_INFO()
34 
35 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_enchant_broker_request_pwl_dict, 0, 2, EnchantDictionary, MAY_BE_FALSE)
36 	ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
37 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
38 ZEND_END_ARG_INFO()
39 
40 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_free_dict, 0, 1, _IS_BOOL, 0)
41 	ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
42 ZEND_END_ARG_INFO()
43 
44 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_dict_exists, 0, 2, _IS_BOOL, 0)
45 	ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
46 	ZEND_ARG_TYPE_INFO(0, tag, IS_STRING, 0)
47 ZEND_END_ARG_INFO()
48 
49 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_set_ordering, 0, 3, _IS_BOOL, 0)
50 	ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
51 	ZEND_ARG_TYPE_INFO(0, tag, IS_STRING, 0)
52 	ZEND_ARG_TYPE_INFO(0, ordering, IS_STRING, 0)
53 ZEND_END_ARG_INFO()
54 
55 #define arginfo_enchant_broker_describe arginfo_enchant_broker_list_dicts
56 
57 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_dict_quick_check, 0, 2, _IS_BOOL, 0)
58 	ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
59 	ZEND_ARG_TYPE_INFO(0, word, IS_STRING, 0)
60 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, suggestions, "null")
61 ZEND_END_ARG_INFO()
62 
63 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_dict_check, 0, 2, _IS_BOOL, 0)
64 	ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
65 	ZEND_ARG_TYPE_INFO(0, word, IS_STRING, 0)
66 ZEND_END_ARG_INFO()
67 
68 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_dict_suggest, 0, 2, IS_ARRAY, 0)
69 	ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
70 	ZEND_ARG_TYPE_INFO(0, word, IS_STRING, 0)
71 ZEND_END_ARG_INFO()
72 
73 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_dict_add, 0, 2, IS_VOID, 0)
74 	ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
75 	ZEND_ARG_TYPE_INFO(0, word, IS_STRING, 0)
76 ZEND_END_ARG_INFO()
77 
78 #define arginfo_enchant_dict_add_to_personal arginfo_enchant_dict_add
79 
80 #define arginfo_enchant_dict_add_to_session arginfo_enchant_dict_add
81 
82 #define arginfo_enchant_dict_is_added arginfo_enchant_dict_check
83 
84 #define arginfo_enchant_dict_is_in_session arginfo_enchant_dict_check
85 
86 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_dict_store_replacement, 0, 3, IS_VOID, 0)
87 	ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
88 	ZEND_ARG_TYPE_INFO(0, misspelled, IS_STRING, 0)
89 	ZEND_ARG_TYPE_INFO(0, correct, IS_STRING, 0)
90 ZEND_END_ARG_INFO()
91 
92 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_enchant_dict_get_error, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
93 	ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
94 ZEND_END_ARG_INFO()
95 
96 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_dict_describe, 0, 1, IS_ARRAY, 0)
97 	ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
98 ZEND_END_ARG_INFO()
99 
100 
101 ZEND_FUNCTION(enchant_broker_init);
102 ZEND_FUNCTION(enchant_broker_free);
103 ZEND_FUNCTION(enchant_broker_get_error);
104 ZEND_FUNCTION(enchant_broker_set_dict_path);
105 ZEND_FUNCTION(enchant_broker_get_dict_path);
106 ZEND_FUNCTION(enchant_broker_list_dicts);
107 ZEND_FUNCTION(enchant_broker_request_dict);
108 ZEND_FUNCTION(enchant_broker_request_pwl_dict);
109 ZEND_FUNCTION(enchant_broker_free_dict);
110 ZEND_FUNCTION(enchant_broker_dict_exists);
111 ZEND_FUNCTION(enchant_broker_set_ordering);
112 ZEND_FUNCTION(enchant_broker_describe);
113 ZEND_FUNCTION(enchant_dict_quick_check);
114 ZEND_FUNCTION(enchant_dict_check);
115 ZEND_FUNCTION(enchant_dict_suggest);
116 ZEND_FUNCTION(enchant_dict_add);
117 ZEND_FUNCTION(enchant_dict_add_to_session);
118 ZEND_FUNCTION(enchant_dict_is_added);
119 ZEND_FUNCTION(enchant_dict_store_replacement);
120 ZEND_FUNCTION(enchant_dict_get_error);
121 ZEND_FUNCTION(enchant_dict_describe);
122 
123 
124 static const zend_function_entry ext_functions[] = {
125 	ZEND_FE(enchant_broker_init, arginfo_enchant_broker_init)
126 	ZEND_DEP_FE(enchant_broker_free, arginfo_enchant_broker_free)
127 	ZEND_FE(enchant_broker_get_error, arginfo_enchant_broker_get_error)
128 	ZEND_DEP_FE(enchant_broker_set_dict_path, arginfo_enchant_broker_set_dict_path)
129 	ZEND_DEP_FE(enchant_broker_get_dict_path, arginfo_enchant_broker_get_dict_path)
130 	ZEND_FE(enchant_broker_list_dicts, arginfo_enchant_broker_list_dicts)
131 	ZEND_FE(enchant_broker_request_dict, arginfo_enchant_broker_request_dict)
132 	ZEND_FE(enchant_broker_request_pwl_dict, arginfo_enchant_broker_request_pwl_dict)
133 	ZEND_DEP_FE(enchant_broker_free_dict, arginfo_enchant_broker_free_dict)
134 	ZEND_FE(enchant_broker_dict_exists, arginfo_enchant_broker_dict_exists)
135 	ZEND_FE(enchant_broker_set_ordering, arginfo_enchant_broker_set_ordering)
136 	ZEND_FE(enchant_broker_describe, arginfo_enchant_broker_describe)
137 	ZEND_FE(enchant_dict_quick_check, arginfo_enchant_dict_quick_check)
138 	ZEND_FE(enchant_dict_check, arginfo_enchant_dict_check)
139 	ZEND_FE(enchant_dict_suggest, arginfo_enchant_dict_suggest)
140 	ZEND_FE(enchant_dict_add, arginfo_enchant_dict_add)
141 	ZEND_DEP_FALIAS(enchant_dict_add_to_personal, enchant_dict_add, arginfo_enchant_dict_add_to_personal)
142 	ZEND_FE(enchant_dict_add_to_session, arginfo_enchant_dict_add_to_session)
143 	ZEND_FE(enchant_dict_is_added, arginfo_enchant_dict_is_added)
144 	ZEND_DEP_FALIAS(enchant_dict_is_in_session, enchant_dict_is_added, arginfo_enchant_dict_is_in_session)
145 	ZEND_FE(enchant_dict_store_replacement, arginfo_enchant_dict_store_replacement)
146 	ZEND_FE(enchant_dict_get_error, arginfo_enchant_dict_get_error)
147 	ZEND_FE(enchant_dict_describe, arginfo_enchant_dict_describe)
148 	ZEND_FE_END
149 };
150 
151 
152 static const zend_function_entry class_EnchantBroker_methods[] = {
153 	ZEND_FE_END
154 };
155 
156 
157 static const zend_function_entry class_EnchantDictionary_methods[] = {
158 	ZEND_FE_END
159 };
160 
register_enchant_symbols(int module_number)161 static void register_enchant_symbols(int module_number)
162 {
163 	REGISTER_LONG_CONSTANT("ENCHANT_MYSPELL", PHP_ENCHANT_MYSPELL, CONST_PERSISTENT | CONST_DEPRECATED);
164 	REGISTER_LONG_CONSTANT("ENCHANT_ISPELL", PHP_ENCHANT_ISPELL, CONST_PERSISTENT | CONST_DEPRECATED);
165 #if defined(HAVE_ENCHANT_GET_VERSION)
166 	REGISTER_STRING_CONSTANT("LIBENCHANT_VERSION", PHP_ENCHANT_GET_VERSION, CONST_PERSISTENT);
167 #endif
168 }
169 
register_class_EnchantBroker(void)170 static zend_class_entry *register_class_EnchantBroker(void)
171 {
172 	zend_class_entry ce, *class_entry;
173 
174 	INIT_CLASS_ENTRY(ce, "EnchantBroker", class_EnchantBroker_methods);
175 	class_entry = zend_register_internal_class_ex(&ce, NULL);
176 	class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
177 
178 	return class_entry;
179 }
180 
register_class_EnchantDictionary(void)181 static zend_class_entry *register_class_EnchantDictionary(void)
182 {
183 	zend_class_entry ce, *class_entry;
184 
185 	INIT_CLASS_ENTRY(ce, "EnchantDictionary", class_EnchantDictionary_methods);
186 	class_entry = zend_register_internal_class_ex(&ce, NULL);
187 	class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
188 
189 	return class_entry;
190 }
191