xref: /PHP-8.1/ext/enchant/enchant_arginfo.h (revision d02b9b95)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 751d42c599a97854a00ddae296e9b20efeee6a3e */
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_class_EnchantBroker(void)161 static zend_class_entry *register_class_EnchantBroker(void)
162 {
163 	zend_class_entry ce, *class_entry;
164 
165 	INIT_CLASS_ENTRY(ce, "EnchantBroker", class_EnchantBroker_methods);
166 	class_entry = zend_register_internal_class_ex(&ce, NULL);
167 	class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
168 
169 	return class_entry;
170 }
171 
register_class_EnchantDictionary(void)172 static zend_class_entry *register_class_EnchantDictionary(void)
173 {
174 	zend_class_entry ce, *class_entry;
175 
176 	INIT_CLASS_ENTRY(ce, "EnchantDictionary", class_EnchantDictionary_methods);
177 	class_entry = zend_register_internal_class_ex(&ce, NULL);
178 	class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
179 
180 	return class_entry;
181 }
182