-
Notifications
You must be signed in to change notification settings - Fork 8k
Expand file tree
/
Copy pathmbstring.stub.php
More file actions
270 lines (202 loc) · 9.62 KB
/
mbstring.stub.php
File metadata and controls
270 lines (202 loc) · 9.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<?php
/** @generate-class-entries */
#ifdef HAVE_MBREGEX
/**
* @var string
* @cvalue php_mb_oniguruma_version
*/
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
const MB_ONIGURUMA_VERSION = UNKNOWN;
#endif
/**
* @var int
* @cvalue PHP_UNICODE_CASE_UPPER
*/
const MB_CASE_UPPER = UNKNOWN;
/**
* @var int
* @cvalue PHP_UNICODE_CASE_LOWER
*/
const MB_CASE_LOWER = UNKNOWN;
/**
* @var int
* @cvalue PHP_UNICODE_CASE_TITLE
*/
const MB_CASE_TITLE = UNKNOWN;
/**
* @var int
* @cvalue PHP_UNICODE_CASE_FOLD
*/
const MB_CASE_FOLD = UNKNOWN;
/**
* @var int
* @cvalue PHP_UNICODE_CASE_UPPER_SIMPLE
*/
const MB_CASE_UPPER_SIMPLE = UNKNOWN;
/**
* @var int
* @cvalue PHP_UNICODE_CASE_LOWER_SIMPLE
*/
const MB_CASE_LOWER_SIMPLE = UNKNOWN;
/**
* @var int
* @cvalue PHP_UNICODE_CASE_TITLE_SIMPLE
*/
const MB_CASE_TITLE_SIMPLE = UNKNOWN;
/**
* @var int
* @cvalue PHP_UNICODE_CASE_FOLD_SIMPLE
*/
const MB_CASE_FOLD_SIMPLE = UNKNOWN;
/** @refcount 1 */
function mb_language(?string $language = null): string|bool {}
/** @refcount 1 */
function mb_internal_encoding(?string $encoding = null): string|bool {}
/**
* @return array<int, string>|string|false
* @refcount 1
*/
function mb_http_input(?string $type = null): array|string|false {}
/** @refcount 1 */
function mb_http_output(?string $encoding = null): string|bool {}
/**
* @return array<int, string>|true
* @refcount 1
*/
function mb_detect_order(array|string|null $encoding = null): array|bool {}
/** @refcount 1 */
function mb_substitute_character(string|int|null $substitute_character = null): string|int|bool {}
/** @refcount 1 */
function mb_preferred_mime_name(string $encoding): string|false {}
/** @param array $result */
function mb_parse_str(string $string, &$result): bool {}
/** @refcount 1 */
function mb_output_handler(string $string, int $status): string {}
function mb_str_split(string $string, int $length = 1, ?string $encoding = null): array {}
function mb_strlen(string $string, ?string $encoding = null): int {}
function mb_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
function mb_strrpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
function mb_stripos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
function mb_strripos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
/** @refcount 1 */
function mb_strstr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding = null): string|false {}
/** @refcount 1 */
function mb_strrchr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding = null): string|false {}
/** @refcount 1 */
function mb_stristr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding = null): string|false {}
/** @refcount 1 */
function mb_strrichr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding = null): string|false {}
function mb_substr_count(string $haystack, string $needle, ?string $encoding = null): int {}
/** @refcount 1 */
function mb_substr(string $string, int $start, ?int $length = null, ?string $encoding = null): string {}
/** @refcount 1 */
function mb_strcut(string $string, int $start, ?int $length = null, ?string $encoding = null): string {}
function mb_strwidth(string $string, ?string $encoding = null): int {}
function mb_strimwidth(string $string, int $start, int $width, string $trim_marker = "", ?string $encoding = null): string {}
/**
* @return array<int|string, mixed>|string|false
* @refcount 1
*/
function mb_convert_encoding(array|string $string, string $to_encoding, array|string|null $from_encoding = null): array|string|false {}
/** @refcount 1 */
function mb_convert_case(string $string, int $mode, ?string $encoding = null): string {}
/** @refcount 1 */
function mb_strtoupper(string $string, ?string $encoding = null): string {}
/** @refcount 1 */
function mb_strtolower(string $string, ?string $encoding = null): string {}
function mb_ucfirst(string $string, ?string $encoding = null): string {}
function mb_lcfirst(string $string, ?string $encoding = null): string {}
function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string {}
function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string {}
function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string {}
/** @refcount 1 */
function mb_detect_encoding(string $string, array|string|null $encodings = null, bool $strict = false): string|false {}
/**
* @return array<int, string>
*/
function mb_list_encodings(): array {}
/**
* @return array<int, string>
* @refcount 1
*/
function mb_encoding_aliases(string $encoding): array {}
/** @refcount 1 */
function mb_encode_mimeheader(string $string, ?string $charset = null, ?string $transfer_encoding = null, string $newline = "\r\n", int $indent = 0): string {}
/** @refcount 1 */
function mb_decode_mimeheader(string $string): string {}
/** @refcount 1 */
function mb_convert_kana(string $string, string $mode = "KV", ?string $encoding = null): string {}
/** @refcount 1 */
function mb_convert_variables(string $to_encoding, array|string $from_encoding, mixed &$var, mixed &...$vars): string|false {}
/** @refcount 1 */
function mb_encode_numericentity(string $string, array $map, ?string $encoding = null, bool $hex = false): string {}
/** @refcount 1 */
function mb_decode_numericentity(string $string, array $map, ?string $encoding = null): string {}
function mb_send_mail(string $to, string $subject, string $message, array|string $additional_headers = [], ?string $additional_params = null): bool {}
/**
* @return array<int|string, int|string|array>|string|int|false|null
* @refcount 1
*/
function mb_get_info(string $type = "all"): array|string|int|false|null {}
function mb_check_encoding(array|string|null $value = null, ?string $encoding = null): bool {}
function mb_scrub(string $string, ?string $encoding = null): string {}
function mb_ord(string $string, ?string $encoding = null): int|false {}
function mb_chr(int $codepoint, ?string $encoding = null): string|false {}
function mb_str_pad(string $string, int $length, string $pad_string = " ", int $pad_type = STR_PAD_RIGHT, ?string $encoding = null): string {}
#ifdef HAVE_MBREGEX
/** @refcount 1 */
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_regex_encoding(?string $encoding = null): string|bool {}
/** @param array $matches */
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_ereg(string $pattern, string $string, &$matches = null): bool {}
/** @param array $matches */
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_eregi(string $pattern, string $string, &$matches = null): bool {}
/** @refcount 1 */
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_ereg_replace(string $pattern, string $replacement, string $string, ?string $options = null): string|false|null {}
/** @refcount 1 */
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_eregi_replace(string $pattern, string $replacement, string $string, ?string $options = null): string|false|null {}
/** @refcount 1 */
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, ?string $options = null): string|false|null {}
/**
* @return array<int, string>|false
* @refcount 1
*/
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_split(string $pattern, string $string, int $limit = -1): array|false {}
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_ereg_match(string $pattern, string $string, ?string $options = null): bool {}
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_ereg_search(?string $pattern = null, ?string $options = null): bool {}
/**
* @return array<int, int>|false
* @refcount 1
*/
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_ereg_search_pos(?string $pattern = null, ?string $options = null): array|false {}
/**
* @return array<int|string, string|false>|false
* @refcount 1
*/
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_ereg_search_regs(?string $pattern = null, ?string $options = null): array|false {}
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_ereg_search_init(string $string, ?string $pattern = null, ?string $options = null): bool {}
/**
* @return array<int|string, string|false>|false
* @refcount 1
*/
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_ereg_search_getregs(): array|false {}
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_ereg_search_getpos(): int {}
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_ereg_search_setpos(int $offset): bool {}
/** @refcount 1 */
#[\Deprecated(since: '8.6', message: "because the underlying library is no longer maintained")]
function mb_regex_set_options(?string $options = null): string {}
#endif