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 / bootstrap.php

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

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