xref: /PHP-8.0/ext/iconv/iconv_arginfo.h (revision a4331a67)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 5d05deb60466c6e1ee73b44ad0b09a032bc8410e */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strlen, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
5 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
6 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
7 ZEND_END_ARG_INFO()
8 
9 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_substr, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
10 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
11 	ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
12 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
13 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
14 ZEND_END_ARG_INFO()
15 
16 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strpos, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
17 	ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
18 	ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
19 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_LONG, 0, "0")
20 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
21 ZEND_END_ARG_INFO()
22 
23 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strrpos, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
24 	ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
25 	ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
26 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
27 ZEND_END_ARG_INFO()
28 
29 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_mime_encode, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
30 	ZEND_ARG_TYPE_INFO(0, field_name, IS_STRING, 0)
31 	ZEND_ARG_TYPE_INFO(0, field_value, IS_STRING, 0)
32 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "[]")
33 ZEND_END_ARG_INFO()
34 
35 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_mime_decode, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
36 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
37 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0")
38 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
39 ZEND_END_ARG_INFO()
40 
41 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_mime_decode_headers, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
42 	ZEND_ARG_TYPE_INFO(0, headers, IS_STRING, 0)
43 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0")
44 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
45 ZEND_END_ARG_INFO()
46 
47 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
48 	ZEND_ARG_TYPE_INFO(0, from_encoding, IS_STRING, 0)
49 	ZEND_ARG_TYPE_INFO(0, to_encoding, IS_STRING, 0)
50 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
51 ZEND_END_ARG_INFO()
52 
53 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_iconv_set_encoding, 0, 2, _IS_BOOL, 0)
54 	ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0)
55 	ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
56 ZEND_END_ARG_INFO()
57 
58 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_get_encoding, 0, 0, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_FALSE)
59 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_STRING, 0, "\"all\"")
60 ZEND_END_ARG_INFO()
61 
62 
63 ZEND_FUNCTION(iconv_strlen);
64 ZEND_FUNCTION(iconv_substr);
65 ZEND_FUNCTION(iconv_strpos);
66 ZEND_FUNCTION(iconv_strrpos);
67 ZEND_FUNCTION(iconv_mime_encode);
68 ZEND_FUNCTION(iconv_mime_decode);
69 ZEND_FUNCTION(iconv_mime_decode_headers);
70 ZEND_FUNCTION(iconv);
71 ZEND_FUNCTION(iconv_set_encoding);
72 ZEND_FUNCTION(iconv_get_encoding);
73 
74 
75 static const zend_function_entry ext_functions[] = {
76 	ZEND_FE(iconv_strlen, arginfo_iconv_strlen)
77 	ZEND_FE(iconv_substr, arginfo_iconv_substr)
78 	ZEND_FE(iconv_strpos, arginfo_iconv_strpos)
79 	ZEND_FE(iconv_strrpos, arginfo_iconv_strrpos)
80 	ZEND_FE(iconv_mime_encode, arginfo_iconv_mime_encode)
81 	ZEND_FE(iconv_mime_decode, arginfo_iconv_mime_decode)
82 	ZEND_FE(iconv_mime_decode_headers, arginfo_iconv_mime_decode_headers)
83 	ZEND_FE(iconv, arginfo_iconv)
84 	ZEND_FE(iconv_set_encoding, arginfo_iconv_set_encoding)
85 	ZEND_FE(iconv_get_encoding, arginfo_iconv_get_encoding)
86 	ZEND_FE_END
87 };
88