PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.0-dev3
Elementor Website Builder – more than just a page builder v3.35.0-dev3
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
elementor / vendor_prefixed / twig / symfony / polyfill-mbstring / bootstrap80.php

bootstrap80.php in Elementor Website Builder – more than just a page builder 3.35.0-dev3, at vendor_prefixed/twig/symfony/polyfill-mbstring/bootstrap80.php

292 lines 10.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace ElementorDeps;
4
5 /*
6 * This file is part of the Symfony package.
7 *
8 * (c) Fabien Potencier <fabien@symfony.com>
9 *
10 * For the full copyright and license information, please view the LICENSE
11 * file that was distributed with this source code.
12 */
13 use ElementorDeps\Symfony\Polyfill\Mbstring as p;
14 if (!\function_exists('mb_convert_encoding')) {
15 function mb_convert_encoding(array|string|null $string, ?string $to_encoding, array|string|null $from_encoding = null) : array|string|false
16 {
17 return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding);
18 }
19 }
20 if (!\function_exists('mb_decode_mimeheader')) {
21 function mb_decode_mimeheader(?string $string) : string
22 {
23 return p\Mbstring::mb_decode_mimeheader((string) $string);
24 }
25 }
26 if (!\function_exists('mb_encode_mimeheader')) {
27 function mb_encode_mimeheader(?string $string, ?string $charset = null, ?string $transfer_encoding = null, ?string $newline = "\r\n", ?int $indent = 0) : string
28 {
29 return p\Mbstring::mb_encode_mimeheader((string) $string, $charset, $transfer_encoding, (string) $newline, (int) $indent);
30 }
31 }
32 if (!\function_exists('mb_decode_numericentity')) {
33 function mb_decode_numericentity(?string $string, array $map, ?string $encoding = null) : string
34 {
35 return p\Mbstring::mb_decode_numericentity((string) $string, $map, $encoding);
36 }
37 }
38 if (!\function_exists('mb_encode_numericentity')) {
39 function mb_encode_numericentity(?string $string, array $map, ?string $encoding = null, ?bool $hex = \false) : string
40 {
41 return p\Mbstring::mb_encode_numericentity((string) $string, $map, $encoding, (bool) $hex);
42 }
43 }
44 if (!\function_exists('mb_convert_case')) {
45 function mb_convert_case(?string $string, ?int $mode, ?string $encoding = null) : string
46 {
47 return p\Mbstring::mb_convert_case((string) $string, (int) $mode, $encoding);
48 }
49 }
50 if (!\function_exists('mb_internal_encoding')) {
51 function mb_internal_encoding(?string $encoding = null) : string|bool
52 {
53 return p\Mbstring::mb_internal_encoding($encoding);
54 }
55 }
56 if (!\function_exists('mb_language')) {
57 function mb_language(?string $language = null) : string|bool
58 {
59 return p\Mbstring::mb_language($language);
60 }
61 }
62 if (!\function_exists('mb_list_encodings')) {
63 function mb_list_encodings() : array
64 {
65 return p\Mbstring::mb_list_encodings();
66 }
67 }
68 if (!\function_exists('mb_encoding_aliases')) {
69 function mb_encoding_aliases(?string $encoding) : array
70 {
71 return p\Mbstring::mb_encoding_aliases((string) $encoding);
72 }
73 }
74 if (!\function_exists('mb_check_encoding')) {
75 function mb_check_encoding(array|string|null $value = null, ?string $encoding = null) : bool
76 {
77 return p\Mbstring::mb_check_encoding($value, $encoding);
78 }
79 }
80 if (!\function_exists('mb_detect_encoding')) {
81 function mb_detect_encoding(?string $string, array|string|null $encodings = null, ?bool $strict = \false) : string|false
82 {
83 return p\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict);
84 }
85 }
86 if (!\function_exists('mb_detect_order')) {
87 function mb_detect_order(array|string|null $encoding = null) : array|bool
88 {
89 return p\Mbstring::mb_detect_order($encoding);
90 }
91 }
92 if (!\function_exists('mb_parse_str')) {
93 function mb_parse_str(?string $string, &$result = []) : bool
94 {
95 \parse_str((string) $string, $result);
96 return (bool) $result;
97 }
98 }
99 if (!\function_exists('mb_strlen')) {
100 function mb_strlen(?string $string, ?string $encoding = null) : int
101 {
102 return p\Mbstring::mb_strlen((string) $string, $encoding);
103 }
104 }
105 if (!\function_exists('mb_strpos')) {
106 function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) : int|false
107 {
108 return p\Mbstring::mb_strpos((string) $haystack, (string) $needle, (int) $offset, $encoding);
109 }
110 }
111 if (!\function_exists('mb_strtolower')) {
112 function mb_strtolower(?string $string, ?string $encoding = null) : string
113 {
114 return p\Mbstring::mb_strtolower((string) $string, $encoding);
115 }
116 }
117 if (!\function_exists('mb_strtoupper')) {
118 function mb_strtoupper(?string $string, ?string $encoding = null) : string
119 {
120 return p\Mbstring::mb_strtoupper((string) $string, $encoding);
121 }
122 }
123 if (!\function_exists('mb_substitute_character')) {
124 function mb_substitute_character(string|int|null $substitute_character = null) : string|int|bool
125 {
126 return p\Mbstring::mb_substitute_character($substitute_character);
127 }
128 }
129 if (!\function_exists('mb_substr')) {
130 function mb_substr(?string $string, ?int $start, ?int $length = null, ?string $encoding = null) : string
131 {
132 return p\Mbstring::mb_substr((string) $string, (int) $start, $length, $encoding);
133 }
134 }
135 if (!\function_exists('mb_stripos')) {
136 function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) : int|false
137 {
138 return p\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding);
139 }
140 }
141 if (!\function_exists('mb_stristr')) {
142 function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null) : string|false
143 {
144 return p\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
145 }
146 }
147 if (!\function_exists('mb_strrchr')) {
148 function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null) : string|false
149 {
150 return p\Mbstring::mb_strrchr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
151 }
152 }
153 if (!\function_exists('mb_strrichr')) {
154 function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null) : string|false
155 {
156 return p\Mbstring::mb_strrichr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
157 }
158 }
159 if (!\function_exists('mb_strripos')) {
160 function mb_strripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) : int|false
161 {
162 return p\Mbstring::mb_strripos((string) $haystack, (string) $needle, (int) $offset, $encoding);
163 }
164 }
165 if (!\function_exists('mb_strrpos')) {
166 function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) : int|false
167 {
168 return p\Mbstring::mb_strrpos((string) $haystack, (string) $needle, (int) $offset, $encoding);
169 }
170 }
171 if (!\function_exists('mb_strstr')) {
172 function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null) : string|false
173 {
174 return p\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
175 }
176 }
177 if (!\function_exists('mb_get_info')) {
178 function mb_get_info(?string $type = 'all') : array|string|int|false|null
179 {
180 return p\Mbstring::mb_get_info((string) $type);
181 }
182 }
183 if (!\function_exists('mb_http_output')) {
184 function mb_http_output(?string $encoding = null) : string|bool
185 {
186 return p\Mbstring::mb_http_output($encoding);
187 }
188 }
189 if (!\function_exists('mb_strwidth')) {
190 function mb_strwidth(?string $string, ?string $encoding = null) : int
191 {
192 return p\Mbstring::mb_strwidth((string) $string, $encoding);
193 }
194 }
195 if (!\function_exists('mb_substr_count')) {
196 function mb_substr_count(?string $haystack, ?string $needle, ?string $encoding = null) : int
197 {
198 return p\Mbstring::mb_substr_count((string) $haystack, (string) $needle, $encoding);
199 }
200 }
201 if (!\function_exists('mb_output_handler')) {
202 function mb_output_handler(?string $string, ?int $status) : string
203 {
204 return p\Mbstring::mb_output_handler((string) $string, (int) $status);
205 }
206 }
207 if (!\function_exists('mb_http_input')) {
208 function mb_http_input(?string $type = null) : array|string|false
209 {
210 return p\Mbstring::mb_http_input($type);
211 }
212 }
213 if (!\function_exists('mb_convert_variables')) {
214 function mb_convert_variables(?string $to_encoding, array|string|null $from_encoding, mixed &$var, mixed &...$vars) : string|false
215 {
216 return p\Mbstring::mb_convert_variables((string) $to_encoding, $from_encoding ?? '', $var, ...$vars);
217 }
218 }
219 if (!\function_exists('mb_ord')) {
220 function mb_ord(?string $string, ?string $encoding = null) : int|false
221 {
222 return p\Mbstring::mb_ord((string) $string, $encoding);
223 }
224 }
225 if (!\function_exists('mb_chr')) {
226 function mb_chr(?int $codepoint, ?string $encoding = null) : string|false
227 {
228 return p\Mbstring::mb_chr((int) $codepoint, $encoding);
229 }
230 }
231 if (!\function_exists('mb_scrub')) {
232 function mb_scrub(?string $string, ?string $encoding = null) : string
233 {
234 $encoding ??= \mb_internal_encoding();
235 return \mb_convert_encoding((string) $string, $encoding, $encoding);
236 }
237 }
238 if (!\function_exists('mb_str_split')) {
239 function mb_str_split(?string $string, ?int $length = 1, ?string $encoding = null) : array
240 {
241 return p\Mbstring::mb_str_split((string) $string, (int) $length, $encoding);
242 }
243 }
244 if (!\function_exists('ElementorDeps\\mb_str_pad')) {
245 function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = \STR_PAD_RIGHT, ?string $encoding = null) : string
246 {
247 return p\Mbstring::mb_str_pad($string, $length, $pad_string, $pad_type, $encoding);
248 }
249 }
250 if (!\function_exists('ElementorDeps\\mb_ucfirst')) {
251 function mb_ucfirst(string $string, ?string $encoding = null) : string
252 {
253 return p\Mbstring::mb_ucfirst($string, $encoding);
254 }
255 }
256 if (!\function_exists('ElementorDeps\\mb_lcfirst')) {
257 function mb_lcfirst(string $string, ?string $encoding = null) : string
258 {
259 return p\Mbstring::mb_lcfirst($string, $encoding);
260 }
261 }
262 if (!\function_exists('ElementorDeps\\mb_trim')) {
263 function mb_trim(string $string, ?string $characters = null, ?string $encoding = null) : string
264 {
265 return p\Mbstring::mb_trim($string, $characters, $encoding);
266 }
267 }
268 if (!\function_exists('ElementorDeps\\mb_ltrim')) {
269 function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null) : string
270 {
271 return p\Mbstring::mb_ltrim($string, $characters, $encoding);
272 }
273 }
274 if (!\function_exists('ElementorDeps\\mb_rtrim')) {
275 function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null) : string
276 {
277 return p\Mbstring::mb_rtrim($string, $characters, $encoding);
278 }
279 }
280 if (\extension_loaded('mbstring')) {
281 return;
282 }
283 if (!\defined('MB_CASE_UPPER')) {
284 \define('MB_CASE_UPPER', 0);
285 }
286 if (!\defined('MB_CASE_LOWER')) {
287 \define('MB_CASE_LOWER', 1);
288 }
289 if (!\defined('MB_CASE_TITLE')) {
290 \define('MB_CASE_TITLE', 2);
291 }
292