PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.2.2
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.2.2
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 / bootstrap80.php

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

160 lines 9.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 use Symfony\Polyfill\Mbstring as p;
5
6 if (!function_exists('mb_convert_encoding')) {
7 function mb_convert_encoding(array|string|null $string, ?string $to_encoding, array|string|null $from_encoding = null): array|string|false { return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding); }
8 }
9 if (!function_exists('mb_decode_mimeheader')) {
10 function mb_decode_mimeheader(?string $string): string { return p\Mbstring::mb_decode_mimeheader((string) $string); }
11 }
12 if (!function_exists('mb_encode_mimeheader')) {
13 function mb_encode_mimeheader(?string $string, ?string $charset = null, ?string $transfer_encoding = null, ?string $newline = "\r\n", ?int $indent = 0): string { return p\Mbstring::mb_encode_mimeheader((string) $string, $charset, $transfer_encoding, (string) $newline, (int) $indent); }
14 }
15 if (!function_exists('mb_decode_numericentity')) {
16 function mb_decode_numericentity(?string $string, array $map, ?string $encoding = null): string { return p\Mbstring::mb_decode_numericentity((string) $string, $map, $encoding); }
17 }
18 if (!function_exists('mb_encode_numericentity')) {
19 function mb_encode_numericentity(?string $string, array $map, ?string $encoding = null, ?bool $hex = false): string { return p\Mbstring::mb_encode_numericentity((string) $string, $map, $encoding, (bool) $hex); }
20 }
21 if (!function_exists('mb_convert_case')) {
22 function mb_convert_case(?string $string, ?int $mode, ?string $encoding = null): string { return p\Mbstring::mb_convert_case((string) $string, (int) $mode, $encoding); }
23 }
24 if (!function_exists('mb_internal_encoding')) {
25 function mb_internal_encoding(?string $encoding = null): string|bool { return p\Mbstring::mb_internal_encoding($encoding); }
26 }
27 if (!function_exists('mb_language')) {
28 function mb_language(?string $language = null): string|bool { return p\Mbstring::mb_language($language); }
29 }
30 if (!function_exists('mb_list_encodings')) {
31 function mb_list_encodings(): array { return p\Mbstring::mb_list_encodings(); }
32 }
33 if (!function_exists('mb_encoding_aliases')) {
34 function mb_encoding_aliases(?string $encoding): array { return p\Mbstring::mb_encoding_aliases((string) $encoding); }
35 }
36 if (!function_exists('mb_check_encoding')) {
37 function mb_check_encoding(array|string|null $value = null, ?string $encoding = null): bool { return p\Mbstring::mb_check_encoding($value, $encoding); }
38 }
39 if (!function_exists('mb_detect_encoding')) {
40 function mb_detect_encoding(?string $string, array|string|null $encodings = null, ?bool $strict = false): string|false { return p\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict); }
41 }
42 if (!function_exists('mb_detect_order')) {
43 function mb_detect_order(array|string|null $encoding = null): array|bool { return p\Mbstring::mb_detect_order($encoding); }
44 }
45 if (!function_exists('mb_parse_str')) {
46 function mb_parse_str(?string $string, &$result = []): bool { parse_str((string) $string, $result); return (bool) $result; }
47 }
48 if (!function_exists('mb_strlen')) {
49 function mb_strlen(?string $string, ?string $encoding = null): int { return p\Mbstring::mb_strlen((string) $string, $encoding); }
50 }
51 if (!function_exists('mb_strpos')) {
52 function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strpos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
53 }
54 if (!function_exists('mb_strtolower')) {
55 function mb_strtolower(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_strtolower((string) $string, $encoding); }
56 }
57 if (!function_exists('mb_strtoupper')) {
58 function mb_strtoupper(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_strtoupper((string) $string, $encoding); }
59 }
60 if (!function_exists('mb_substitute_character')) {
61 function mb_substitute_character(string|int|null $substitute_character = null): string|int|bool { return p\Mbstring::mb_substitute_character($substitute_character); }
62 }
63 if (!function_exists('mb_substr')) {
64 function mb_substr(?string $string, ?int $start, ?int $length = null, ?string $encoding = null): string { return p\Mbstring::mb_substr((string) $string, (int) $start, $length, $encoding); }
65 }
66 if (!function_exists('mb_stripos')) {
67 function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
68 }
69 if (!function_exists('mb_stristr')) {
70 function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
71 }
72 if (!function_exists('mb_strrchr')) {
73 function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strrchr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
74 }
75 if (!function_exists('mb_strrichr')) {
76 function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strrichr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
77 }
78 if (!function_exists('mb_strripos')) {
79 function mb_strripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strripos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
80 }
81 if (!function_exists('mb_strrpos')) {
82 function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strrpos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
83 }
84 if (!function_exists('mb_strstr')) {
85 function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
86 }
87 if (!function_exists('mb_get_info')) {
88 function mb_get_info(?string $type = 'all'): array|string|int|false|null { return p\Mbstring::mb_get_info((string) $type); }
89 }
90 if (!function_exists('mb_http_output')) {
91 function mb_http_output(?string $encoding = null): string|bool { return p\Mbstring::mb_http_output($encoding); }
92 }
93 if (!function_exists('mb_strwidth')) {
94 function mb_strwidth(?string $string, ?string $encoding = null): int { return p\Mbstring::mb_strwidth((string) $string, $encoding); }
95 }
96 if (!function_exists('mb_substr_count')) {
97 function mb_substr_count(?string $haystack, ?string $needle, ?string $encoding = null): int { return p\Mbstring::mb_substr_count((string) $haystack, (string) $needle, $encoding); }
98 }
99 if (!function_exists('mb_output_handler')) {
100 function mb_output_handler(?string $string, ?int $status): string { return p\Mbstring::mb_output_handler((string) $string, (int) $status); }
101 }
102 if (!function_exists('mb_http_input')) {
103 function mb_http_input(?string $type = null): array|string|false { return p\Mbstring::mb_http_input($type); }
104 }
105
106 if (!function_exists('mb_convert_variables')) {
107 function mb_convert_variables(?string $to_encoding, array|string|null $from_encoding, mixed &$var, mixed &...$vars): string|false { return p\Mbstring::mb_convert_variables((string) $to_encoding, $from_encoding ?? '', $var, ...$vars); }
108 }
109
110 if (!function_exists('mb_ord')) {
111 function mb_ord(?string $string, ?string $encoding = null): int|false { return p\Mbstring::mb_ord((string) $string, $encoding); }
112 }
113 if (!function_exists('mb_chr')) {
114 function mb_chr(?int $codepoint, ?string $encoding = null): string|false { return p\Mbstring::mb_chr((int) $codepoint, $encoding); }
115 }
116 if (!function_exists('mb_scrub')) {
117 function mb_scrub(?string $string, ?string $encoding = null): string { $encoding ??= mb_internal_encoding(); return mb_convert_encoding((string) $string, $encoding, $encoding); }
118 }
119 if (!function_exists('mb_str_split')) {
120 function mb_str_split(?string $string, ?int $length = 1, ?string $encoding = null): array { return p\Mbstring::mb_str_split((string) $string, (int) $length, $encoding); }
121 }
122
123 if (!function_exists('mb_str_pad')) {
124 function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = STR_PAD_RIGHT, ?string $encoding = null): string { return p\Mbstring::mb_str_pad($string, $length, $pad_string, $pad_type, $encoding); }
125 }
126
127 if (!function_exists('mb_ucfirst')) {
128 function mb_ucfirst($string, ?string $encoding = null): string { return p\Mbstring::mb_ucfirst($string, $encoding); }
129 }
130
131 if (!function_exists('mb_lcfirst')) {
132 function mb_lcfirst($string, ?string $encoding = null): string { return p\Mbstring::mb_lcfirst($string, $encoding); }
133 }
134
135 if (!function_exists('mb_trim')) {
136 function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_trim($string, $characters, $encoding); }
137 }
138
139 if (!function_exists('mb_ltrim')) {
140 function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_ltrim($string, $characters, $encoding); }
141 }
142
143 if (!function_exists('mb_rtrim')) {
144 function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_rtrim($string, $characters, $encoding); }
145 }
146
147 if (extension_loaded('mbstring')) {
148 return;
149 }
150
151 if (!defined('MB_CASE_UPPER')) {
152 define('MB_CASE_UPPER', 0);
153 }
154 if (!defined('MB_CASE_LOWER')) {
155 define('MB_CASE_LOWER', 1);
156 }
157 if (!defined('MB_CASE_TITLE')) {
158 define('MB_CASE_TITLE', 2);
159 }
160