1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 2a6d8499e1a2d414130e366783a1c084f47a3293 */
3
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_UConverter___construct, 0, 0, 0)
5 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, destination_encoding, IS_STRING, 1, "null")
6 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, source_encoding, IS_STRING, 1, "null")
7 ZEND_END_ARG_INFO()
8
9 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_UConverter_convert, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
10 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
11 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, reverse, _IS_BOOL, 0, "false")
12 ZEND_END_ARG_INFO()
13
14 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_UConverter_fromUCallback, 0, 4, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_ARRAY|MAY_BE_NULL)
15 ZEND_ARG_TYPE_INFO(0, reason, IS_LONG, 0)
16 ZEND_ARG_TYPE_INFO(0, source, IS_ARRAY, 0)
17 ZEND_ARG_TYPE_INFO(0, codePoint, IS_LONG, 0)
18 ZEND_ARG_INFO(1, error)
19 ZEND_END_ARG_INFO()
20
21 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_UConverter_getAliases, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE|MAY_BE_NULL)
22 ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
23 ZEND_END_ARG_INFO()
24
25 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_UConverter_getAvailable, 0, 0, IS_ARRAY, 0)
26 ZEND_END_ARG_INFO()
27
28 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_UConverter_getDestinationEncoding, 0, 0, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL)
29 ZEND_END_ARG_INFO()
30
31 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_UConverter_getDestinationType, 0, 0, MAY_BE_LONG|MAY_BE_FALSE|MAY_BE_NULL)
32 ZEND_END_ARG_INFO()
33
34 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_UConverter_getErrorCode, 0, 0, IS_LONG, 0)
35 ZEND_END_ARG_INFO()
36
37 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_UConverter_getErrorMessage, 0, 0, IS_STRING, 1)
38 ZEND_END_ARG_INFO()
39
40 #define arginfo_class_UConverter_getSourceEncoding arginfo_class_UConverter_getDestinationEncoding
41
42 #define arginfo_class_UConverter_getSourceType arginfo_class_UConverter_getDestinationType
43
44 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_UConverter_getStandards, 0, 0, IS_ARRAY, 1)
45 ZEND_END_ARG_INFO()
46
47 #define arginfo_class_UConverter_getSubstChars arginfo_class_UConverter_getDestinationEncoding
48
49 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_UConverter_reasonText, 0, 1, IS_STRING, 0)
50 ZEND_ARG_TYPE_INFO(0, reason, IS_LONG, 0)
51 ZEND_END_ARG_INFO()
52
53 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_UConverter_setDestinationEncoding, 0, 1, _IS_BOOL, 0)
54 ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
55 ZEND_END_ARG_INFO()
56
57 #define arginfo_class_UConverter_setSourceEncoding arginfo_class_UConverter_setDestinationEncoding
58
59 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_UConverter_setSubstChars, 0, 1, _IS_BOOL, 0)
60 ZEND_ARG_TYPE_INFO(0, chars, IS_STRING, 0)
61 ZEND_END_ARG_INFO()
62
63 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_UConverter_toUCallback, 0, 4, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_ARRAY|MAY_BE_NULL)
64 ZEND_ARG_TYPE_INFO(0, reason, IS_LONG, 0)
65 ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
66 ZEND_ARG_TYPE_INFO(0, codeUnits, IS_STRING, 0)
67 ZEND_ARG_INFO(1, error)
68 ZEND_END_ARG_INFO()
69
70 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_UConverter_transcode, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
71 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
72 ZEND_ARG_TYPE_INFO(0, toEncoding, IS_STRING, 0)
73 ZEND_ARG_TYPE_INFO(0, fromEncoding, IS_STRING, 0)
74 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 1, "null")
75 ZEND_END_ARG_INFO()
76
77
78 ZEND_METHOD(UConverter, __construct);
79 ZEND_METHOD(UConverter, convert);
80 ZEND_METHOD(UConverter, fromUCallback);
81 ZEND_METHOD(UConverter, getAliases);
82 ZEND_METHOD(UConverter, getAvailable);
83 ZEND_METHOD(UConverter, getDestinationEncoding);
84 ZEND_METHOD(UConverter, getDestinationType);
85 ZEND_METHOD(UConverter, getErrorCode);
86 ZEND_METHOD(UConverter, getErrorMessage);
87 ZEND_METHOD(UConverter, getSourceEncoding);
88 ZEND_METHOD(UConverter, getSourceType);
89 ZEND_METHOD(UConverter, getStandards);
90 ZEND_METHOD(UConverter, getSubstChars);
91 ZEND_METHOD(UConverter, reasonText);
92 ZEND_METHOD(UConverter, setDestinationEncoding);
93 ZEND_METHOD(UConverter, setSourceEncoding);
94 ZEND_METHOD(UConverter, setSubstChars);
95 ZEND_METHOD(UConverter, toUCallback);
96 ZEND_METHOD(UConverter, transcode);
97
98
99 static const zend_function_entry class_UConverter_methods[] = {
100 ZEND_ME(UConverter, __construct, arginfo_class_UConverter___construct, ZEND_ACC_PUBLIC)
101 ZEND_ME(UConverter, convert, arginfo_class_UConverter_convert, ZEND_ACC_PUBLIC)
102 ZEND_ME(UConverter, fromUCallback, arginfo_class_UConverter_fromUCallback, ZEND_ACC_PUBLIC)
103 ZEND_ME(UConverter, getAliases, arginfo_class_UConverter_getAliases, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
104 ZEND_ME(UConverter, getAvailable, arginfo_class_UConverter_getAvailable, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
105 ZEND_ME(UConverter, getDestinationEncoding, arginfo_class_UConverter_getDestinationEncoding, ZEND_ACC_PUBLIC)
106 ZEND_ME(UConverter, getDestinationType, arginfo_class_UConverter_getDestinationType, ZEND_ACC_PUBLIC)
107 ZEND_ME(UConverter, getErrorCode, arginfo_class_UConverter_getErrorCode, ZEND_ACC_PUBLIC)
108 ZEND_ME(UConverter, getErrorMessage, arginfo_class_UConverter_getErrorMessage, ZEND_ACC_PUBLIC)
109 ZEND_ME(UConverter, getSourceEncoding, arginfo_class_UConverter_getSourceEncoding, ZEND_ACC_PUBLIC)
110 ZEND_ME(UConverter, getSourceType, arginfo_class_UConverter_getSourceType, ZEND_ACC_PUBLIC)
111 ZEND_ME(UConverter, getStandards, arginfo_class_UConverter_getStandards, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
112 ZEND_ME(UConverter, getSubstChars, arginfo_class_UConverter_getSubstChars, ZEND_ACC_PUBLIC)
113 ZEND_ME(UConverter, reasonText, arginfo_class_UConverter_reasonText, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
114 ZEND_ME(UConverter, setDestinationEncoding, arginfo_class_UConverter_setDestinationEncoding, ZEND_ACC_PUBLIC)
115 ZEND_ME(UConverter, setSourceEncoding, arginfo_class_UConverter_setSourceEncoding, ZEND_ACC_PUBLIC)
116 ZEND_ME(UConverter, setSubstChars, arginfo_class_UConverter_setSubstChars, ZEND_ACC_PUBLIC)
117 ZEND_ME(UConverter, toUCallback, arginfo_class_UConverter_toUCallback, ZEND_ACC_PUBLIC)
118 ZEND_ME(UConverter, transcode, arginfo_class_UConverter_transcode, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
119 ZEND_FE_END
120 };
121
register_class_UConverter(void)122 static zend_class_entry *register_class_UConverter(void)
123 {
124 zend_class_entry ce, *class_entry;
125
126 INIT_CLASS_ENTRY(ce, "UConverter", class_UConverter_methods);
127 class_entry = zend_register_internal_class_ex(&ce, NULL);
128
129 return class_entry;
130 }
131