1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 451d8875edd23e737c147fb9aab37aa8220d731d */
3 
4 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_Normalizer_normalize, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
5 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
6 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, form, IS_LONG, 0, "Normalizer::FORM_C")
7 ZEND_END_ARG_INFO()
8 
9 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Normalizer_isNormalized, 0, 1, _IS_BOOL, 0)
10 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
11 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, form, IS_LONG, 0, "Normalizer::FORM_C")
12 ZEND_END_ARG_INFO()
13 
14 #if U_ICU_VERSION_MAJOR_NUM >= 56
15 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Normalizer_getRawDecomposition, 0, 1, IS_STRING, 1)
16 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
17 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, form, IS_LONG, 0, "Normalizer::FORM_C")
18 ZEND_END_ARG_INFO()
19 #endif
20 
21 
22 ZEND_FUNCTION(normalizer_normalize);
23 ZEND_FUNCTION(normalizer_is_normalized);
24 #if U_ICU_VERSION_MAJOR_NUM >= 56
25 ZEND_FUNCTION(normalizer_get_raw_decomposition);
26 #endif
27 
28 
29 static const zend_function_entry class_Normalizer_methods[] = {
30 	ZEND_ME_MAPPING(normalize, normalizer_normalize, arginfo_class_Normalizer_normalize, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
31 	ZEND_ME_MAPPING(isNormalized, normalizer_is_normalized, arginfo_class_Normalizer_isNormalized, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
32 #if U_ICU_VERSION_MAJOR_NUM >= 56
33 	ZEND_ME_MAPPING(getRawDecomposition, normalizer_get_raw_decomposition, arginfo_class_Normalizer_getRawDecomposition, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
34 #endif
35 	ZEND_FE_END
36 };
37 
register_class_Normalizer(void)38 static zend_class_entry *register_class_Normalizer(void)
39 {
40 	zend_class_entry ce, *class_entry;
41 
42 	INIT_CLASS_ENTRY(ce, "Normalizer", class_Normalizer_methods);
43 	class_entry = zend_register_internal_class_ex(&ce, NULL);
44 
45 	zval const_FORM_D_value;
46 	ZVAL_LONG(&const_FORM_D_value, NORMALIZER_FORM_D);
47 	zend_string *const_FORM_D_name = zend_string_init_interned("FORM_D", sizeof("FORM_D") - 1, 1);
48 	zend_declare_class_constant_ex(class_entry, const_FORM_D_name, &const_FORM_D_value, ZEND_ACC_PUBLIC, NULL);
49 	zend_string_release(const_FORM_D_name);
50 
51 	zval const_NFD_value;
52 	ZVAL_LONG(&const_NFD_value, NORMALIZER_NFD);
53 	zend_string *const_NFD_name = zend_string_init_interned("NFD", sizeof("NFD") - 1, 1);
54 	zend_declare_class_constant_ex(class_entry, const_NFD_name, &const_NFD_value, ZEND_ACC_PUBLIC, NULL);
55 	zend_string_release(const_NFD_name);
56 
57 	zval const_FORM_KD_value;
58 	ZVAL_LONG(&const_FORM_KD_value, NORMALIZER_FORM_KD);
59 	zend_string *const_FORM_KD_name = zend_string_init_interned("FORM_KD", sizeof("FORM_KD") - 1, 1);
60 	zend_declare_class_constant_ex(class_entry, const_FORM_KD_name, &const_FORM_KD_value, ZEND_ACC_PUBLIC, NULL);
61 	zend_string_release(const_FORM_KD_name);
62 
63 	zval const_NFKD_value;
64 	ZVAL_LONG(&const_NFKD_value, NORMALIZER_NFKD);
65 	zend_string *const_NFKD_name = zend_string_init_interned("NFKD", sizeof("NFKD") - 1, 1);
66 	zend_declare_class_constant_ex(class_entry, const_NFKD_name, &const_NFKD_value, ZEND_ACC_PUBLIC, NULL);
67 	zend_string_release(const_NFKD_name);
68 
69 	zval const_FORM_C_value;
70 	ZVAL_LONG(&const_FORM_C_value, NORMALIZER_FORM_C);
71 	zend_string *const_FORM_C_name = zend_string_init_interned("FORM_C", sizeof("FORM_C") - 1, 1);
72 	zend_declare_class_constant_ex(class_entry, const_FORM_C_name, &const_FORM_C_value, ZEND_ACC_PUBLIC, NULL);
73 	zend_string_release(const_FORM_C_name);
74 
75 	zval const_NFC_value;
76 	ZVAL_LONG(&const_NFC_value, NORMALIZER_NFC);
77 	zend_string *const_NFC_name = zend_string_init_interned("NFC", sizeof("NFC") - 1, 1);
78 	zend_declare_class_constant_ex(class_entry, const_NFC_name, &const_NFC_value, ZEND_ACC_PUBLIC, NULL);
79 	zend_string_release(const_NFC_name);
80 
81 	zval const_FORM_KC_value;
82 	ZVAL_LONG(&const_FORM_KC_value, NORMALIZER_FORM_KC);
83 	zend_string *const_FORM_KC_name = zend_string_init_interned("FORM_KC", sizeof("FORM_KC") - 1, 1);
84 	zend_declare_class_constant_ex(class_entry, const_FORM_KC_name, &const_FORM_KC_value, ZEND_ACC_PUBLIC, NULL);
85 	zend_string_release(const_FORM_KC_name);
86 
87 	zval const_NFKC_value;
88 	ZVAL_LONG(&const_NFKC_value, NORMALIZER_NFKC);
89 	zend_string *const_NFKC_name = zend_string_init_interned("NFKC", sizeof("NFKC") - 1, 1);
90 	zend_declare_class_constant_ex(class_entry, const_NFKC_name, &const_NFKC_value, ZEND_ACC_PUBLIC, NULL);
91 	zend_string_release(const_NFKC_name);
92 #if U_ICU_VERSION_MAJOR_NUM >= 56
93 
94 	zval const_FORM_KC_CF_value;
95 	ZVAL_LONG(&const_FORM_KC_CF_value, NORMALIZER_FORM_KC_CF);
96 	zend_string *const_FORM_KC_CF_name = zend_string_init_interned("FORM_KC_CF", sizeof("FORM_KC_CF") - 1, 1);
97 	zend_declare_class_constant_ex(class_entry, const_FORM_KC_CF_name, &const_FORM_KC_CF_value, ZEND_ACC_PUBLIC, NULL);
98 	zend_string_release(const_FORM_KC_CF_name);
99 #endif
100 #if U_ICU_VERSION_MAJOR_NUM >= 56
101 
102 	zval const_NFKC_CF_value;
103 	ZVAL_LONG(&const_NFKC_CF_value, NORMALIZER_NFKC_CF);
104 	zend_string *const_NFKC_CF_name = zend_string_init_interned("NFKC_CF", sizeof("NFKC_CF") - 1, 1);
105 	zend_declare_class_constant_ex(class_entry, const_NFKC_CF_name, &const_NFKC_CF_value, ZEND_ACC_PUBLIC, NULL);
106 	zend_string_release(const_NFKC_CF_name);
107 #endif
108 
109 	return class_entry;
110 }
111