PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.0.3
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.0.3
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / vendor / symfony / polyfill-mbstring / bootstrap.php

bootstrap.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 11.0.3, at vendor/symfony/polyfill-mbstring/bootstrap.php

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