php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
locale_arginfo.h
Go to the documentation of this file.
1/* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 59861342e0075231d2a576afb2d5df6973d70684 */
3
4ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Locale_getDefault, 0, 0, IS_STRING, 0)
6
7ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Locale_setDefault, 0, 1, IS_TRUE, 0)
8 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
10
11ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Locale_getPrimaryLanguage, 0, 1, IS_STRING, 1)
12 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
14
15#define arginfo_class_Locale_getScript arginfo_class_Locale_getPrimaryLanguage
16
17#define arginfo_class_Locale_getRegion arginfo_class_Locale_getPrimaryLanguage
18
20 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
22
23ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_Locale_getDisplayScript, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
24 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
25 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, displayLocale, IS_STRING, 1, "null")
27
28#define arginfo_class_Locale_getDisplayRegion arginfo_class_Locale_getDisplayScript
29
30#define arginfo_class_Locale_getDisplayName arginfo_class_Locale_getDisplayScript
31
32#define arginfo_class_Locale_getDisplayLanguage arginfo_class_Locale_getDisplayScript
33
34#define arginfo_class_Locale_getDisplayVariant arginfo_class_Locale_getDisplayScript
35
37 ZEND_ARG_TYPE_INFO(0, subtags, IS_ARRAY, 0)
39
40ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Locale_parseLocale, 0, 1, IS_ARRAY, 1)
41 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
43
44#define arginfo_class_Locale_getAllVariants arginfo_class_Locale_parseLocale
45
46ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Locale_filterMatches, 0, 2, _IS_BOOL, 1)
47 ZEND_ARG_TYPE_INFO(0, languageTag, IS_STRING, 0)
48 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
49 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, canonicalize, _IS_BOOL, 0, "false")
51
52ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Locale_lookup, 0, 2, IS_STRING, 1)
53 ZEND_ARG_TYPE_INFO(0, languageTag, IS_ARRAY, 0)
54 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
55 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, canonicalize, _IS_BOOL, 0, "false")
56 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, defaultLocale, IS_STRING, 1, "null")
58
59#define arginfo_class_Locale_canonicalize arginfo_class_Locale_getPrimaryLanguage
60
64
83
84static const zend_function_entry class_Locale_methods[] = {
85 ZEND_RAW_FENTRY("getDefault", zif_locale_get_default, arginfo_class_Locale_getDefault, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
86 ZEND_RAW_FENTRY("setDefault", zif_locale_set_default, arginfo_class_Locale_setDefault, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
87 ZEND_RAW_FENTRY("getPrimaryLanguage", zif_locale_get_primary_language, arginfo_class_Locale_getPrimaryLanguage, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
90 ZEND_RAW_FENTRY("getKeywords", zif_locale_get_keywords, arginfo_class_Locale_getKeywords, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
91 ZEND_RAW_FENTRY("getDisplayScript", zif_locale_get_display_script, arginfo_class_Locale_getDisplayScript, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
92 ZEND_RAW_FENTRY("getDisplayRegion", zif_locale_get_display_region, arginfo_class_Locale_getDisplayRegion, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
93 ZEND_RAW_FENTRY("getDisplayName", zif_locale_get_display_name, arginfo_class_Locale_getDisplayName, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
94 ZEND_RAW_FENTRY("getDisplayLanguage", zif_locale_get_display_language, arginfo_class_Locale_getDisplayLanguage, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
95 ZEND_RAW_FENTRY("getDisplayVariant", zif_locale_get_display_variant, arginfo_class_Locale_getDisplayVariant, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
96 ZEND_RAW_FENTRY("composeLocale", zif_locale_compose, arginfo_class_Locale_composeLocale, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
97 ZEND_RAW_FENTRY("parseLocale", zif_locale_parse, arginfo_class_Locale_parseLocale, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
98 ZEND_RAW_FENTRY("getAllVariants", zif_locale_get_all_variants, arginfo_class_Locale_getAllVariants, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
99 ZEND_RAW_FENTRY("filterMatches", zif_locale_filter_matches, arginfo_class_Locale_filterMatches, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
100 ZEND_RAW_FENTRY("lookup", zif_locale_lookup, arginfo_class_Locale_lookup, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
102 ZEND_RAW_FENTRY("acceptFromHttp", zif_locale_accept_from_http, arginfo_class_Locale_acceptFromHttp, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
104};
105
106static zend_class_entry *register_class_Locale(void)
107{
108 zend_class_entry ce, *class_entry;
109
110 INIT_CLASS_ENTRY(ce, "Locale", class_Locale_methods);
111 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
112
113 zval const_ACTUAL_LOCALE_value;
114 ZVAL_LONG(&const_ACTUAL_LOCALE_value, ULOC_ACTUAL_LOCALE);
115 zend_string *const_ACTUAL_LOCALE_name = zend_string_init_interned("ACTUAL_LOCALE", sizeof("ACTUAL_LOCALE") - 1, 1);
116 zend_declare_typed_class_constant(class_entry, const_ACTUAL_LOCALE_name, &const_ACTUAL_LOCALE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
117 zend_string_release(const_ACTUAL_LOCALE_name);
118
119 zval const_VALID_LOCALE_value;
120 ZVAL_LONG(&const_VALID_LOCALE_value, ULOC_VALID_LOCALE);
121 zend_string *const_VALID_LOCALE_name = zend_string_init_interned("VALID_LOCALE", sizeof("VALID_LOCALE") - 1, 1);
122 zend_declare_typed_class_constant(class_entry, const_VALID_LOCALE_name, &const_VALID_LOCALE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
123 zend_string_release(const_VALID_LOCALE_name);
124
125 zval const_DEFAULT_LOCALE_value;
126 ZVAL_NULL(&const_DEFAULT_LOCALE_value);
127 zend_string *const_DEFAULT_LOCALE_name = zend_string_init_interned("DEFAULT_LOCALE", sizeof("DEFAULT_LOCALE") - 1, 1);
128 zend_declare_typed_class_constant(class_entry, const_DEFAULT_LOCALE_name, &const_DEFAULT_LOCALE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_NULL));
129 zend_string_release(const_DEFAULT_LOCALE_name);
130
131 zval const_LANG_TAG_value;
132 zend_string *const_LANG_TAG_value_str = zend_string_init(LOC_LANG_TAG, strlen(LOC_LANG_TAG), 1);
133 ZVAL_STR(&const_LANG_TAG_value, const_LANG_TAG_value_str);
134 zend_string *const_LANG_TAG_name = zend_string_init_interned("LANG_TAG", sizeof("LANG_TAG") - 1, 1);
135 zend_declare_typed_class_constant(class_entry, const_LANG_TAG_name, &const_LANG_TAG_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
136 zend_string_release(const_LANG_TAG_name);
137
138 zval const_EXTLANG_TAG_value;
139 zend_string *const_EXTLANG_TAG_value_str = zend_string_init(LOC_EXTLANG_TAG, strlen(LOC_EXTLANG_TAG), 1);
140 ZVAL_STR(&const_EXTLANG_TAG_value, const_EXTLANG_TAG_value_str);
141 zend_string *const_EXTLANG_TAG_name = zend_string_init_interned("EXTLANG_TAG", sizeof("EXTLANG_TAG") - 1, 1);
142 zend_declare_typed_class_constant(class_entry, const_EXTLANG_TAG_name, &const_EXTLANG_TAG_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
143 zend_string_release(const_EXTLANG_TAG_name);
144
145 zval const_SCRIPT_TAG_value;
146 zend_string *const_SCRIPT_TAG_value_str = zend_string_init(LOC_SCRIPT_TAG, strlen(LOC_SCRIPT_TAG), 1);
147 ZVAL_STR(&const_SCRIPT_TAG_value, const_SCRIPT_TAG_value_str);
148 zend_string *const_SCRIPT_TAG_name = zend_string_init_interned("SCRIPT_TAG", sizeof("SCRIPT_TAG") - 1, 1);
149 zend_declare_typed_class_constant(class_entry, const_SCRIPT_TAG_name, &const_SCRIPT_TAG_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
150 zend_string_release(const_SCRIPT_TAG_name);
151
152 zval const_REGION_TAG_value;
153 zend_string *const_REGION_TAG_value_str = zend_string_init(LOC_REGION_TAG, strlen(LOC_REGION_TAG), 1);
154 ZVAL_STR(&const_REGION_TAG_value, const_REGION_TAG_value_str);
155 zend_string *const_REGION_TAG_name = zend_string_init_interned("REGION_TAG", sizeof("REGION_TAG") - 1, 1);
156 zend_declare_typed_class_constant(class_entry, const_REGION_TAG_name, &const_REGION_TAG_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
157 zend_string_release(const_REGION_TAG_name);
158
159 zval const_VARIANT_TAG_value;
160 zend_string *const_VARIANT_TAG_value_str = zend_string_init(LOC_VARIANT_TAG, strlen(LOC_VARIANT_TAG), 1);
161 ZVAL_STR(&const_VARIANT_TAG_value, const_VARIANT_TAG_value_str);
162 zend_string *const_VARIANT_TAG_name = zend_string_init_interned("VARIANT_TAG", sizeof("VARIANT_TAG") - 1, 1);
163 zend_declare_typed_class_constant(class_entry, const_VARIANT_TAG_name, &const_VARIANT_TAG_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
164 zend_string_release(const_VARIANT_TAG_name);
165
166 zval const_GRANDFATHERED_LANG_TAG_value;
167 zend_string *const_GRANDFATHERED_LANG_TAG_value_str = zend_string_init(LOC_GRANDFATHERED_LANG_TAG, strlen(LOC_GRANDFATHERED_LANG_TAG), 1);
168 ZVAL_STR(&const_GRANDFATHERED_LANG_TAG_value, const_GRANDFATHERED_LANG_TAG_value_str);
169 zend_string *const_GRANDFATHERED_LANG_TAG_name = zend_string_init_interned("GRANDFATHERED_LANG_TAG", sizeof("GRANDFATHERED_LANG_TAG") - 1, 1);
170 zend_declare_typed_class_constant(class_entry, const_GRANDFATHERED_LANG_TAG_name, &const_GRANDFATHERED_LANG_TAG_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
171 zend_string_release(const_GRANDFATHERED_LANG_TAG_name);
172
173 zval const_PRIVATE_TAG_value;
174 zend_string *const_PRIVATE_TAG_value_str = zend_string_init(LOC_PRIVATE_TAG, strlen(LOC_PRIVATE_TAG), 1);
175 ZVAL_STR(&const_PRIVATE_TAG_value, const_PRIVATE_TAG_value_str);
176 zend_string *const_PRIVATE_TAG_name = zend_string_init_interned("PRIVATE_TAG", sizeof("PRIVATE_TAG") - 1, 1);
177 zend_declare_typed_class_constant(class_entry, const_PRIVATE_TAG_name, &const_PRIVATE_TAG_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
178 zend_string_release(const_PRIVATE_TAG_name);
179
180 return class_entry;
181}
header(string $header, bool $replace=true, int $response_code=0)
const ULOC_ACTUAL_LOCALE
const ULOC_VALID_LOCALE
#define NULL
Definition gdcache.h:45
#define LOC_PRIVATE_TAG
Definition locale.h:27
#define LOC_LANG_TAG
Definition locale.h:21
#define LOC_EXTLANG_TAG
Definition locale.h:25
#define LOC_REGION_TAG
Definition locale.h:23
#define LOC_VARIANT_TAG
Definition locale.h:24
#define LOC_GRANDFATHERED_LANG_TAG
Definition locale.h:26
#define LOC_SCRIPT_TAG
Definition locale.h:22
#define arginfo_class_Locale_getScript
#define arginfo_class_Locale_getDisplayName
#define arginfo_class_Locale_getDisplayVariant
#define arginfo_class_Locale_getRegion
#define arginfo_class_Locale_getDisplayRegion
#define arginfo_class_Locale_getAllVariants
#define arginfo_class_Locale_canonicalize
#define arginfo_class_Locale_getDisplayLanguage
locale_get_keywords(string $locale)
locale_get_region(string $locale)
locale_canonicalize(string $locale)
locale_get_primary_language(string $locale)
locale_accept_from_http(string $header)
locale_lookup(array $languageTag, string $locale, bool $canonicalize=false, ?string $defaultLocale=null)
locale_get_all_variants(string $locale)
locale_get_script(string $locale)
locale_filter_matches(string $languageTag, string $locale, bool $canonicalize=false)
locale_get_display_region(string $locale, ?string $displayLocale=null)
locale_get_display_name(string $locale, ?string $displayLocale=null)
locale_get_default()
locale_get_display_script(string $locale, ?string $displayLocale=null)
locale_get_display_variant(string $locale, ?string $displayLocale=null)
locale_get_display_language(string $locale, ?string $displayLocale=null)
locale_compose(array $subtags)
locale_set_default(string $locale)
locale_parse(string $locale)
ZEND_API zend_class_constant * zend_declare_typed_class_constant(zend_class_entry *ce, zend_string *name, zval *value, int flags, zend_string *doc_comment, zend_type type)
Definition zend_API.c:4859
ZEND_API zend_class_entry * zend_register_internal_class_with_flags(zend_class_entry *class_entry, zend_class_entry *parent_ce, uint32_t ce_flags)
Definition zend_API.c:3512
#define ZEND_FE_END
Definition zend_API.h:124
struct _zend_function_entry zend_function_entry
#define INIT_CLASS_ENTRY(class_container, class_name, functions)
Definition zend_API.h:279
#define ZEND_RAW_FENTRY(zend_name, name, arg_info, flags, frameless_function_infos, doc_comment)
Definition zend_API.h:80
#define ZEND_END_ARG_INFO()
Definition zend_API.h:219
#define ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, type_hint, allow_null, default_value)
Definition zend_API.h:140
#define ZEND_ARG_TYPE_INFO(pass_by_ref, name, type_hint, allow_null)
Definition zend_API.h:138
#define ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
Definition zend_API.h:208
#define ZEND_FUNCTION(name)
Definition zend_API.h:75
#define ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(name, return_reference, required_num_args, type)
Definition zend_API.h:188
struct _zval_struct zval
strlen(string $string)
#define ZEND_ACC_STATIC
#define ZEND_ACC_PUBLIC
struct _zend_string zend_string
struct _zend_class_entry zend_class_entry
ZEND_API zend_string_init_interned_func_t zend_string_init_interned
Definition zend_string.c:31
#define MAY_BE_STRING
#define MAY_BE_FALSE
#define MAY_BE_NULL
#define MAY_BE_LONG
#define MAY_BE_ARRAY
#define IS_TRUE
Definition zend_types.h:603
#define ZVAL_STR(z, s)
#define ZEND_TYPE_INIT_MASK(_type_mask)
Definition zend_types.h:283
#define ZVAL_NULL(z)
#define ZVAL_LONG(z, l)
#define IS_STRING
Definition zend_types.h:606
#define IS_ARRAY
Definition zend_types.h:607
#define _IS_BOOL
Definition zend_types.h:629