1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 8a6aaab7dd89a014726bd1fdf1f40f7b6fa98ea5 */
3 
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Transliterator___construct, 0, 0, 0)
5 ZEND_END_ARG_INFO()
6 
7 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_Transliterator_create, 0, 1, Transliterator, 1)
8 	ZEND_ARG_TYPE_INFO(0, id, IS_STRING, 0)
9 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, direction, IS_LONG, 0, "Transliterator::FORWARD")
10 ZEND_END_ARG_INFO()
11 
12 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_Transliterator_createFromRules, 0, 1, Transliterator, 1)
13 	ZEND_ARG_TYPE_INFO(0, rules, IS_STRING, 0)
14 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, direction, IS_LONG, 0, "Transliterator::FORWARD")
15 ZEND_END_ARG_INFO()
16 
17 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_Transliterator_createInverse, 0, 0, Transliterator, 1)
18 ZEND_END_ARG_INFO()
19 
20 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_Transliterator_listIDs, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
21 ZEND_END_ARG_INFO()
22 
23 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_Transliterator_transliterate, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
24 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
25 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, start, IS_LONG, 0, "0")
26 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, end, IS_LONG, 0, "-1")
27 ZEND_END_ARG_INFO()
28 
29 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_Transliterator_getErrorCode, 0, 0, MAY_BE_LONG|MAY_BE_FALSE)
30 ZEND_END_ARG_INFO()
31 
32 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_Transliterator_getErrorMessage, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
33 ZEND_END_ARG_INFO()
34 
35 
36 ZEND_METHOD(Transliterator, __construct);
37 ZEND_FUNCTION(transliterator_create);
38 ZEND_FUNCTION(transliterator_create_from_rules);
39 ZEND_FUNCTION(transliterator_create_inverse);
40 ZEND_FUNCTION(transliterator_list_ids);
41 ZEND_FUNCTION(transliterator_transliterate);
42 ZEND_FUNCTION(transliterator_get_error_code);
43 ZEND_FUNCTION(transliterator_get_error_message);
44 
45 
46 static const zend_function_entry class_Transliterator_methods[] = {
47 	ZEND_ME(Transliterator, __construct, arginfo_class_Transliterator___construct, ZEND_ACC_PRIVATE|ZEND_ACC_FINAL)
48 	ZEND_ME_MAPPING(create, transliterator_create, arginfo_class_Transliterator_create, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
49 	ZEND_ME_MAPPING(createFromRules, transliterator_create_from_rules, arginfo_class_Transliterator_createFromRules, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
50 	ZEND_ME_MAPPING(createInverse, transliterator_create_inverse, arginfo_class_Transliterator_createInverse, ZEND_ACC_PUBLIC)
51 	ZEND_ME_MAPPING(listIDs, transliterator_list_ids, arginfo_class_Transliterator_listIDs, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
52 	ZEND_ME_MAPPING(transliterate, transliterator_transliterate, arginfo_class_Transliterator_transliterate, ZEND_ACC_PUBLIC)
53 	ZEND_ME_MAPPING(getErrorCode, transliterator_get_error_code, arginfo_class_Transliterator_getErrorCode, ZEND_ACC_PUBLIC)
54 	ZEND_ME_MAPPING(getErrorMessage, transliterator_get_error_message, arginfo_class_Transliterator_getErrorMessage, ZEND_ACC_PUBLIC)
55 	ZEND_FE_END
56 };
57 
register_class_Transliterator(void)58 static zend_class_entry *register_class_Transliterator(void)
59 {
60 	zend_class_entry ce, *class_entry;
61 
62 	INIT_CLASS_ENTRY(ce, "Transliterator", class_Transliterator_methods);
63 	class_entry = zend_register_internal_class_ex(&ce, NULL);
64 
65 	zval property_id_default_value;
66 	ZVAL_UNDEF(&property_id_default_value);
67 	zend_string *property_id_name = zend_string_init("id", sizeof("id") - 1, 1);
68 	zend_declare_typed_property(class_entry, property_id_name, &property_id_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
69 	zend_string_release(property_id_name);
70 
71 	return class_entry;
72 }
73