xref: /PHP-8.0/ext/tidy/tidy_arginfo.h (revision 44ccccdf)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: c4bbc901ca156da7cf0cbcc3c4019c7d3886959f */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_tidy_parse_string, 0, 1, tidy, MAY_BE_FALSE)
5 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
6 	ZEND_ARG_TYPE_MASK(0, config, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
7 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
8 ZEND_END_ARG_INFO()
9 
10 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_tidy_get_error_buffer, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
11 	ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
12 ZEND_END_ARG_INFO()
13 
14 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_tidy_get_output, 0, 1, IS_STRING, 0)
15 	ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
16 ZEND_END_ARG_INFO()
17 
18 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_tidy_parse_file, 0, 1, tidy, MAY_BE_FALSE)
19 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
20 	ZEND_ARG_TYPE_MASK(0, config, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
21 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
22 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, useIncludePath, _IS_BOOL, 0, "false")
23 ZEND_END_ARG_INFO()
24 
25 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_tidy_clean_repair, 0, 1, _IS_BOOL, 0)
26 	ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
27 ZEND_END_ARG_INFO()
28 
29 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_tidy_repair_string, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
30 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
31 	ZEND_ARG_TYPE_MASK(0, config, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
32 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
33 ZEND_END_ARG_INFO()
34 
35 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_tidy_repair_file, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
36 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
37 	ZEND_ARG_TYPE_MASK(0, config, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
38 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
39 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, useIncludePath, _IS_BOOL, 0, "false")
40 ZEND_END_ARG_INFO()
41 
42 #define arginfo_tidy_diagnose arginfo_tidy_clean_repair
43 
44 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_tidy_get_release, 0, 0, IS_STRING, 0)
45 ZEND_END_ARG_INFO()
46 
47 #if defined(HAVE_TIDYOPTGETDOC)
48 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_tidy_get_opt_doc, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
49 	ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
50 	ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)
51 ZEND_END_ARG_INFO()
52 #endif
53 
54 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_tidy_get_config, 0, 1, IS_ARRAY, 0)
55 	ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
56 ZEND_END_ARG_INFO()
57 
58 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_tidy_get_status, 0, 1, IS_LONG, 0)
59 	ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
60 ZEND_END_ARG_INFO()
61 
62 #define arginfo_tidy_get_html_ver arginfo_tidy_get_status
63 
64 #define arginfo_tidy_is_xhtml arginfo_tidy_clean_repair
65 
66 #define arginfo_tidy_is_xml arginfo_tidy_clean_repair
67 
68 #define arginfo_tidy_error_count arginfo_tidy_get_status
69 
70 #define arginfo_tidy_warning_count arginfo_tidy_get_status
71 
72 #define arginfo_tidy_access_count arginfo_tidy_get_status
73 
74 #define arginfo_tidy_config_count arginfo_tidy_get_status
75 
76 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_tidy_getopt, 0, 2, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_BOOL)
77 	ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
78 	ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)
79 ZEND_END_ARG_INFO()
80 
81 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_tidy_get_root, 0, 1, tidyNode, 1)
82 	ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
83 ZEND_END_ARG_INFO()
84 
85 #define arginfo_tidy_get_html arginfo_tidy_get_root
86 
87 #define arginfo_tidy_get_head arginfo_tidy_get_root
88 
89 #define arginfo_tidy_get_body arginfo_tidy_get_root
90 
91 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_tidy___construct, 0, 0, 0)
92 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null")
93 	ZEND_ARG_TYPE_MASK(0, config, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
94 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
95 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, useIncludePath, _IS_BOOL, 0, "false")
96 ZEND_END_ARG_INFO()
97 
98 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_tidy_getOpt, 0, 0, 1)
99 	ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)
100 ZEND_END_ARG_INFO()
101 
102 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_tidy_cleanRepair, 0, 0, 0)
103 ZEND_END_ARG_INFO()
104 
105 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_tidy_parseFile, 0, 0, 1)
106 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
107 	ZEND_ARG_TYPE_MASK(0, config, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
108 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
109 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, useIncludePath, _IS_BOOL, 0, "false")
110 ZEND_END_ARG_INFO()
111 
112 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_tidy_parseString, 0, 0, 1)
113 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
114 	ZEND_ARG_TYPE_MASK(0, config, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
115 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
116 ZEND_END_ARG_INFO()
117 
118 #define arginfo_class_tidy_repairString arginfo_class_tidy_parseString
119 
120 #define arginfo_class_tidy_repairFile arginfo_class_tidy_parseFile
121 
122 #define arginfo_class_tidy_diagnose arginfo_class_tidy_cleanRepair
123 
124 #define arginfo_class_tidy_getRelease arginfo_class_tidy_cleanRepair
125 
126 #define arginfo_class_tidy_getConfig arginfo_class_tidy_cleanRepair
127 
128 #define arginfo_class_tidy_getStatus arginfo_class_tidy_cleanRepair
129 
130 #define arginfo_class_tidy_getHtmlVer arginfo_class_tidy_cleanRepair
131 
132 #if defined(HAVE_TIDYOPTGETDOC)
133 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_tidy_getOptDoc, 0, 0, 1)
134 	ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)
135 ZEND_END_ARG_INFO()
136 #endif
137 
138 #define arginfo_class_tidy_isXhtml arginfo_class_tidy_cleanRepair
139 
140 #define arginfo_class_tidy_isXml arginfo_class_tidy_cleanRepair
141 
142 #define arginfo_class_tidy_root arginfo_class_tidy_cleanRepair
143 
144 #define arginfo_class_tidy_head arginfo_class_tidy_cleanRepair
145 
146 #define arginfo_class_tidy_html arginfo_class_tidy_cleanRepair
147 
148 #define arginfo_class_tidy_body arginfo_class_tidy_cleanRepair
149 
150 #define arginfo_class_tidyNode___construct arginfo_class_tidy_cleanRepair
151 
152 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_tidyNode_hasChildren, 0, 0, _IS_BOOL, 0)
153 ZEND_END_ARG_INFO()
154 
155 #define arginfo_class_tidyNode_hasSiblings arginfo_class_tidyNode_hasChildren
156 
157 #define arginfo_class_tidyNode_isComment arginfo_class_tidyNode_hasChildren
158 
159 #define arginfo_class_tidyNode_isHtml arginfo_class_tidyNode_hasChildren
160 
161 #define arginfo_class_tidyNode_isText arginfo_class_tidyNode_hasChildren
162 
163 #define arginfo_class_tidyNode_isJste arginfo_class_tidyNode_hasChildren
164 
165 #define arginfo_class_tidyNode_isAsp arginfo_class_tidyNode_hasChildren
166 
167 #define arginfo_class_tidyNode_isPhp arginfo_class_tidyNode_hasChildren
168 
169 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_tidyNode_getParent, 0, 0, tidyNode, 1)
170 ZEND_END_ARG_INFO()
171 
172 
173 ZEND_FUNCTION(tidy_parse_string);
174 ZEND_FUNCTION(tidy_get_error_buffer);
175 ZEND_FUNCTION(tidy_get_output);
176 ZEND_FUNCTION(tidy_parse_file);
177 ZEND_FUNCTION(tidy_clean_repair);
178 ZEND_FUNCTION(tidy_repair_string);
179 ZEND_FUNCTION(tidy_repair_file);
180 ZEND_FUNCTION(tidy_diagnose);
181 ZEND_FUNCTION(tidy_get_release);
182 #if defined(HAVE_TIDYOPTGETDOC)
183 ZEND_FUNCTION(tidy_get_opt_doc);
184 #endif
185 ZEND_FUNCTION(tidy_get_config);
186 ZEND_FUNCTION(tidy_get_status);
187 ZEND_FUNCTION(tidy_get_html_ver);
188 ZEND_FUNCTION(tidy_is_xhtml);
189 ZEND_FUNCTION(tidy_is_xml);
190 ZEND_FUNCTION(tidy_error_count);
191 ZEND_FUNCTION(tidy_warning_count);
192 ZEND_FUNCTION(tidy_access_count);
193 ZEND_FUNCTION(tidy_config_count);
194 ZEND_FUNCTION(tidy_getopt);
195 ZEND_FUNCTION(tidy_get_root);
196 ZEND_FUNCTION(tidy_get_html);
197 ZEND_FUNCTION(tidy_get_head);
198 ZEND_FUNCTION(tidy_get_body);
199 ZEND_METHOD(tidy, __construct);
200 ZEND_METHOD(tidy, parseFile);
201 ZEND_METHOD(tidy, parseString);
202 ZEND_METHOD(tidyNode, __construct);
203 ZEND_METHOD(tidyNode, hasChildren);
204 ZEND_METHOD(tidyNode, hasSiblings);
205 ZEND_METHOD(tidyNode, isComment);
206 ZEND_METHOD(tidyNode, isHtml);
207 ZEND_METHOD(tidyNode, isText);
208 ZEND_METHOD(tidyNode, isJste);
209 ZEND_METHOD(tidyNode, isAsp);
210 ZEND_METHOD(tidyNode, isPhp);
211 ZEND_METHOD(tidyNode, getParent);
212 
213 
214 static const zend_function_entry ext_functions[] = {
215 	ZEND_FE(tidy_parse_string, arginfo_tidy_parse_string)
216 	ZEND_FE(tidy_get_error_buffer, arginfo_tidy_get_error_buffer)
217 	ZEND_FE(tidy_get_output, arginfo_tidy_get_output)
218 	ZEND_FE(tidy_parse_file, arginfo_tidy_parse_file)
219 	ZEND_FE(tidy_clean_repair, arginfo_tidy_clean_repair)
220 	ZEND_FE(tidy_repair_string, arginfo_tidy_repair_string)
221 	ZEND_FE(tidy_repair_file, arginfo_tidy_repair_file)
222 	ZEND_FE(tidy_diagnose, arginfo_tidy_diagnose)
223 	ZEND_FE(tidy_get_release, arginfo_tidy_get_release)
224 #if defined(HAVE_TIDYOPTGETDOC)
225 	ZEND_FE(tidy_get_opt_doc, arginfo_tidy_get_opt_doc)
226 #endif
227 	ZEND_FE(tidy_get_config, arginfo_tidy_get_config)
228 	ZEND_FE(tidy_get_status, arginfo_tidy_get_status)
229 	ZEND_FE(tidy_get_html_ver, arginfo_tidy_get_html_ver)
230 	ZEND_FE(tidy_is_xhtml, arginfo_tidy_is_xhtml)
231 	ZEND_FE(tidy_is_xml, arginfo_tidy_is_xml)
232 	ZEND_FE(tidy_error_count, arginfo_tidy_error_count)
233 	ZEND_FE(tidy_warning_count, arginfo_tidy_warning_count)
234 	ZEND_FE(tidy_access_count, arginfo_tidy_access_count)
235 	ZEND_FE(tidy_config_count, arginfo_tidy_config_count)
236 	ZEND_FE(tidy_getopt, arginfo_tidy_getopt)
237 	ZEND_FE(tidy_get_root, arginfo_tidy_get_root)
238 	ZEND_FE(tidy_get_html, arginfo_tidy_get_html)
239 	ZEND_FE(tidy_get_head, arginfo_tidy_get_head)
240 	ZEND_FE(tidy_get_body, arginfo_tidy_get_body)
241 	ZEND_FE_END
242 };
243 
244 
245 static const zend_function_entry class_tidy_methods[] = {
246 	ZEND_ME(tidy, __construct, arginfo_class_tidy___construct, ZEND_ACC_PUBLIC)
247 	ZEND_ME_MAPPING(getOpt, tidy_getopt, arginfo_class_tidy_getOpt, ZEND_ACC_PUBLIC)
248 	ZEND_ME_MAPPING(cleanRepair, tidy_clean_repair, arginfo_class_tidy_cleanRepair, ZEND_ACC_PUBLIC)
249 	ZEND_ME(tidy, parseFile, arginfo_class_tidy_parseFile, ZEND_ACC_PUBLIC)
250 	ZEND_ME(tidy, parseString, arginfo_class_tidy_parseString, ZEND_ACC_PUBLIC)
251 	ZEND_ME_MAPPING(repairString, tidy_repair_string, arginfo_class_tidy_repairString, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
252 	ZEND_ME_MAPPING(repairFile, tidy_repair_file, arginfo_class_tidy_repairFile, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
253 	ZEND_ME_MAPPING(diagnose, tidy_diagnose, arginfo_class_tidy_diagnose, ZEND_ACC_PUBLIC)
254 	ZEND_ME_MAPPING(getRelease, tidy_get_release, arginfo_class_tidy_getRelease, ZEND_ACC_PUBLIC)
255 	ZEND_ME_MAPPING(getConfig, tidy_get_config, arginfo_class_tidy_getConfig, ZEND_ACC_PUBLIC)
256 	ZEND_ME_MAPPING(getStatus, tidy_get_status, arginfo_class_tidy_getStatus, ZEND_ACC_PUBLIC)
257 	ZEND_ME_MAPPING(getHtmlVer, tidy_get_html_ver, arginfo_class_tidy_getHtmlVer, ZEND_ACC_PUBLIC)
258 #if defined(HAVE_TIDYOPTGETDOC)
259 	ZEND_ME_MAPPING(getOptDoc, tidy_get_opt_doc, arginfo_class_tidy_getOptDoc, ZEND_ACC_PUBLIC)
260 #endif
261 	ZEND_ME_MAPPING(isXhtml, tidy_is_xhtml, arginfo_class_tidy_isXhtml, ZEND_ACC_PUBLIC)
262 	ZEND_ME_MAPPING(isXml, tidy_is_xml, arginfo_class_tidy_isXml, ZEND_ACC_PUBLIC)
263 	ZEND_ME_MAPPING(root, tidy_get_root, arginfo_class_tidy_root, ZEND_ACC_PUBLIC)
264 	ZEND_ME_MAPPING(head, tidy_get_head, arginfo_class_tidy_head, ZEND_ACC_PUBLIC)
265 	ZEND_ME_MAPPING(html, tidy_get_html, arginfo_class_tidy_html, ZEND_ACC_PUBLIC)
266 	ZEND_ME_MAPPING(body, tidy_get_body, arginfo_class_tidy_body, ZEND_ACC_PUBLIC)
267 	ZEND_FE_END
268 };
269 
270 
271 static const zend_function_entry class_tidyNode_methods[] = {
272 	ZEND_ME(tidyNode, __construct, arginfo_class_tidyNode___construct, ZEND_ACC_PRIVATE)
273 	ZEND_ME(tidyNode, hasChildren, arginfo_class_tidyNode_hasChildren, ZEND_ACC_PUBLIC)
274 	ZEND_ME(tidyNode, hasSiblings, arginfo_class_tidyNode_hasSiblings, ZEND_ACC_PUBLIC)
275 	ZEND_ME(tidyNode, isComment, arginfo_class_tidyNode_isComment, ZEND_ACC_PUBLIC)
276 	ZEND_ME(tidyNode, isHtml, arginfo_class_tidyNode_isHtml, ZEND_ACC_PUBLIC)
277 	ZEND_ME(tidyNode, isText, arginfo_class_tidyNode_isText, ZEND_ACC_PUBLIC)
278 	ZEND_ME(tidyNode, isJste, arginfo_class_tidyNode_isJste, ZEND_ACC_PUBLIC)
279 	ZEND_ME(tidyNode, isAsp, arginfo_class_tidyNode_isAsp, ZEND_ACC_PUBLIC)
280 	ZEND_ME(tidyNode, isPhp, arginfo_class_tidyNode_isPhp, ZEND_ACC_PUBLIC)
281 	ZEND_ME(tidyNode, getParent, arginfo_class_tidyNode_getParent, ZEND_ACC_PUBLIC)
282 	ZEND_FE_END
283 };
284