PluginProbe ʕ •ᴥ•ʔ
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / 5.2.0
Matomo Analytics – Powerful, Privacy-First Insights for WordPress v5.2.0
5.11.1 5.11.0 5.10.2 5.10.1 trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.3.2 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.2 4.1.3 4.10.0 4.11.0 4.12.0 4.13.0 4.13.2 4.13.3 4.13.4 4.13.5 4.14.0 4.14.1 4.14.2 4.15.0 4.15.1 4.15.2 4.15.3 4.2.0 4.3.0 4.3.1 4.4.1 4.4.2 4.5.0 4.6.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.10.0 5.2.0 5.2.1 5.2.2 5.3.0 5.3.1 5.3.2 5.3.3 5.6.0 5.6.1 5.7.0 5.7.1 5.8.0 5.8.1 5.8.2
matomo / app / vendor / symfony / polyfill-iconv / bootstrap.php
matomo / app / vendor / symfony / polyfill-iconv Last commit date
Resources 2 years ago Iconv.php 1 year ago LICENSE 2 years ago README.md 3 years ago bootstrap.php 2 years ago bootstrap80.php 2 years ago
bootstrap.php
141 lines
1 <?php
2
3 namespace {
4 /*
5 * This file is part of the Symfony package.
6 *
7 * (c) Fabien Potencier <fabien@symfony.com>
8 *
9 * For the full copyright and license information, please view the LICENSE
10 * file that was distributed with this source code.
11 */
12 use Symfony\Polyfill\Iconv as p;
13 if (\extension_loaded('iconv')) {
14 return;
15 }
16 if (\PHP_VERSION_ID >= 80000) {
17 return require __DIR__ . '/bootstrap80.php';
18 }
19 if (!\defined('ICONV_IMPL')) {
20 \define('ICONV_IMPL', 'Symfony');
21 }
22 if (!\defined('ICONV_VERSION')) {
23 \define('ICONV_VERSION', '1.0');
24 }
25 if (!\defined('ICONV_MIME_DECODE_STRICT')) {
26 \define('ICONV_MIME_DECODE_STRICT', 1);
27 }
28 if (!\defined('ICONV_MIME_DECODE_CONTINUE_ON_ERROR')) {
29 \define('ICONV_MIME_DECODE_CONTINUE_ON_ERROR', 2);
30 }
31 if (!\function_exists('iconv')) {
32 function iconv($from_encoding, $to_encoding, $string)
33 {
34 return p\Iconv::iconv($from_encoding, $to_encoding, $string);
35 }
36 }
37 if (!\function_exists('iconv_get_encoding')) {
38 function iconv_get_encoding($type = 'all')
39 {
40 return p\Iconv::iconv_get_encoding($type);
41 }
42 }
43 if (!\function_exists('iconv_set_encoding')) {
44 function iconv_set_encoding($type, $encoding)
45 {
46 return p\Iconv::iconv_set_encoding($type, $encoding);
47 }
48 }
49 if (!\function_exists('iconv_mime_encode')) {
50 function iconv_mime_encode($field_name, $field_value, $options = [])
51 {
52 return p\Iconv::iconv_mime_encode($field_name, $field_value, $options);
53 }
54 }
55 if (!\function_exists('iconv_mime_decode_headers')) {
56 function iconv_mime_decode_headers($headers, $mode = 0, $encoding = null)
57 {
58 return p\Iconv::iconv_mime_decode_headers($headers, $mode, $encoding);
59 }
60 }
61 if (\extension_loaded('mbstring')) {
62 if (!\function_exists('iconv_strlen')) {
63 function iconv_strlen($string, $encoding = null)
64 {
65 null === $encoding && ($encoding = p\Iconv::$internalEncoding);
66 return \mb_strlen($string, $encoding);
67 }
68 }
69 if (!\function_exists('iconv_strpos')) {
70 function iconv_strpos($haystack, $needle, $offset = 0, $encoding = null)
71 {
72 null === $encoding && ($encoding = p\Iconv::$internalEncoding);
73 return \mb_strpos($haystack, $needle, $offset, $encoding);
74 }
75 }
76 if (!\function_exists('iconv_strrpos')) {
77 function iconv_strrpos($haystack, $needle, $encoding = null)
78 {
79 null === $encoding && ($encoding = p\Iconv::$internalEncoding);
80 return \mb_strrpos($haystack, $needle, 0, $encoding);
81 }
82 }
83 if (!\function_exists('iconv_substr')) {
84 function iconv_substr($string, $offset, $length = 2147483647, $encoding = null)
85 {
86 null === $encoding && ($encoding = p\Iconv::$internalEncoding);
87 return \mb_substr($string, $offset, $length, $encoding);
88 }
89 }
90 if (!\function_exists('iconv_mime_decode')) {
91 function iconv_mime_decode($string, $mode = 0, $encoding = null)
92 {
93 $currentMbEncoding = \mb_internal_encoding();
94 null === $encoding && ($encoding = p\Iconv::$internalEncoding);
95 \mb_internal_encoding($encoding);
96 $decoded = \mb_decode_mimeheader($string);
97 \mb_internal_encoding($currentMbEncoding);
98 return $decoded;
99 }
100 }
101 } else {
102 if (!\function_exists('iconv_strlen')) {
103 if (\extension_loaded('xml')) {
104 function iconv_strlen($string, $encoding = null)
105 {
106 return p\Iconv::strlen1($string, $encoding);
107 }
108 } else {
109 function iconv_strlen($string, $encoding = null)
110 {
111 return p\Iconv::strlen2($string, $encoding);
112 }
113 }
114 }
115 if (!\function_exists('iconv_strpos')) {
116 function iconv_strpos($haystack, $needle, $offset = 0, $encoding = null)
117 {
118 return p\Iconv::iconv_strpos($haystack, $needle, $offset, $encoding);
119 }
120 }
121 if (!\function_exists('iconv_strrpos')) {
122 function iconv_strrpos($haystack, $needle, $encoding = null)
123 {
124 return p\Iconv::iconv_strrpos($haystack, $needle, $encoding);
125 }
126 }
127 if (!\function_exists('iconv_substr')) {
128 function iconv_substr($string, $offset, $length = 2147483647, $encoding = null)
129 {
130 return p\Iconv::iconv_substr($string, $offset, $length, $encoding);
131 }
132 }
133 if (!\function_exists('iconv_mime_decode')) {
134 function iconv_mime_decode($string, $mode = 0, $encoding = null)
135 {
136 return p\Iconv::iconv_mime_decode($string, $mode, $encoding);
137 }
138 }
139 }
140 }
141