1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: c198614563ff0b54d21c7572fe747ddc3191afa3 */
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 ZEND_FUNCTION(normalizer_normalize);
22 ZEND_FUNCTION(normalizer_is_normalized);
23 #if U_ICU_VERSION_MAJOR_NUM >= 56
24 ZEND_FUNCTION(normalizer_get_raw_decomposition);
25 #endif
26 
27 static const zend_function_entry class_Normalizer_methods[] = {
28 	ZEND_RAW_FENTRY("normalize", zif_normalizer_normalize, arginfo_class_Normalizer_normalize, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
29 	ZEND_RAW_FENTRY("isNormalized", zif_normalizer_is_normalized, arginfo_class_Normalizer_isNormalized, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
30 #if U_ICU_VERSION_MAJOR_NUM >= 56
31 	ZEND_RAW_FENTRY("getRawDecomposition", zif_normalizer_get_raw_decomposition, arginfo_class_Normalizer_getRawDecomposition, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
32 #endif
33 	ZEND_FE_END
34 };
35 
register_class_Normalizer(void)36 static zend_class_entry *register_class_Normalizer(void)
37 {
38 	zend_class_entry ce, *class_entry;
39 
40 	INIT_CLASS_ENTRY(ce, "Normalizer", class_Normalizer_methods);
41 	class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
42 
43 	zval const_FORM_D_value;
44 	ZVAL_LONG(&const_FORM_D_value, NORMALIZER_FORM_D);
45 	zend_string *const_FORM_D_name = zend_string_init_interned("FORM_D", sizeof("FORM_D") - 1, 1);
46 	zend_declare_typed_class_constant(class_entry, const_FORM_D_name, &const_FORM_D_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
47 	zend_string_release(const_FORM_D_name);
48 
49 	zval const_NFD_value;
50 	ZVAL_LONG(&const_NFD_value, NORMALIZER_NFD);
51 	zend_string *const_NFD_name = zend_string_init_interned("NFD", sizeof("NFD") - 1, 1);
52 	zend_declare_typed_class_constant(class_entry, const_NFD_name, &const_NFD_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
53 	zend_string_release(const_NFD_name);
54 
55 	zval const_FORM_KD_value;
56 	ZVAL_LONG(&const_FORM_KD_value, NORMALIZER_FORM_KD);
57 	zend_string *const_FORM_KD_name = zend_string_init_interned("FORM_KD", sizeof("FORM_KD") - 1, 1);
58 	zend_declare_typed_class_constant(class_entry, const_FORM_KD_name, &const_FORM_KD_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
59 	zend_string_release(const_FORM_KD_name);
60 
61 	zval const_NFKD_value;
62 	ZVAL_LONG(&const_NFKD_value, NORMALIZER_NFKD);
63 	zend_string *const_NFKD_name = zend_string_init_interned("NFKD", sizeof("NFKD") - 1, 1);
64 	zend_declare_typed_class_constant(class_entry, const_NFKD_name, &const_NFKD_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
65 	zend_string_release(const_NFKD_name);
66 
67 	zval const_FORM_C_value;
68 	ZVAL_LONG(&const_FORM_C_value, NORMALIZER_FORM_C);
69 	zend_string *const_FORM_C_name = zend_string_init_interned("FORM_C", sizeof("FORM_C") - 1, 1);
70 	zend_declare_typed_class_constant(class_entry, const_FORM_C_name, &const_FORM_C_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
71 	zend_string_release(const_FORM_C_name);
72 
73 	zval const_NFC_value;
74 	ZVAL_LONG(&const_NFC_value, NORMALIZER_NFC);
75 	zend_string *const_NFC_name = zend_string_init_interned("NFC", sizeof("NFC") - 1, 1);
76 	zend_declare_typed_class_constant(class_entry, const_NFC_name, &const_NFC_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
77 	zend_string_release(const_NFC_name);
78 
79 	zval const_FORM_KC_value;
80 	ZVAL_LONG(&const_FORM_KC_value, NORMALIZER_FORM_KC);
81 	zend_string *const_FORM_KC_name = zend_string_init_interned("FORM_KC", sizeof("FORM_KC") - 1, 1);
82 	zend_declare_typed_class_constant(class_entry, const_FORM_KC_name, &const_FORM_KC_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
83 	zend_string_release(const_FORM_KC_name);
84 
85 	zval const_NFKC_value;
86 	ZVAL_LONG(&const_NFKC_value, NORMALIZER_NFKC);
87 	zend_string *const_NFKC_name = zend_string_init_interned("NFKC", sizeof("NFKC") - 1, 1);
88 	zend_declare_typed_class_constant(class_entry, const_NFKC_name, &const_NFKC_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
89 	zend_string_release(const_NFKC_name);
90 #if U_ICU_VERSION_MAJOR_NUM >= 56
91 
92 	zval const_FORM_KC_CF_value;
93 	ZVAL_LONG(&const_FORM_KC_CF_value, NORMALIZER_FORM_KC_CF);
94 	zend_string *const_FORM_KC_CF_name = zend_string_init_interned("FORM_KC_CF", sizeof("FORM_KC_CF") - 1, 1);
95 	zend_declare_typed_class_constant(class_entry, const_FORM_KC_CF_name, &const_FORM_KC_CF_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
96 	zend_string_release(const_FORM_KC_CF_name);
97 #endif
98 #if U_ICU_VERSION_MAJOR_NUM >= 56
99 
100 	zval const_NFKC_CF_value;
101 	ZVAL_LONG(&const_NFKC_CF_value, NORMALIZER_NFKC_CF);
102 	zend_string *const_NFKC_CF_name = zend_string_init_interned("NFKC_CF", sizeof("NFKC_CF") - 1, 1);
103 	zend_declare_typed_class_constant(class_entry, const_NFKC_CF_name, &const_NFKC_CF_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
104 	zend_string_release(const_NFKC_CF_name);
105 #endif
106 
107 	return class_entry;
108 }
109