mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 16:49:58 +09:00
Update composer dependencies
This commit is contained in:
parent
bb9a56bcac
commit
aabc7ac55e
690 changed files with 61555 additions and 37954 deletions
72
vendor/symfony/polyfill-iconv/bootstrap.php
vendored
72
vendor/symfony/polyfill-iconv/bootstrap.php
vendored
|
|
@ -11,36 +11,74 @@
|
|||
|
||||
use Symfony\Polyfill\Iconv as p;
|
||||
|
||||
if (extension_loaded('iconv')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!defined('ICONV_IMPL')) {
|
||||
define('ICONV_IMPL', 'Symfony');
|
||||
}
|
||||
if (!defined('ICONV_VERSION')) {
|
||||
define('ICONV_VERSION', '1.0');
|
||||
}
|
||||
if (!defined('ICONV_MIME_DECODE_STRICT')) {
|
||||
define('ICONV_MIME_DECODE_STRICT', 1);
|
||||
}
|
||||
if (!defined('ICONV_MIME_DECODE_CONTINUE_ON_ERROR')) {
|
||||
define('ICONV_MIME_DECODE_CONTINUE_ON_ERROR', 2);
|
||||
}
|
||||
|
||||
if (!function_exists('iconv')) {
|
||||
function iconv($from, $to, $s) { return p\Iconv::iconv($from, $to, $s); }
|
||||
function iconv($from_encoding, $to_encoding, $string) { return p\Iconv::iconv($from_encoding, $to_encoding, $string); }
|
||||
}
|
||||
if (!function_exists('iconv_get_encoding')) {
|
||||
function iconv_get_encoding($type = 'all') { return p\Iconv::iconv_get_encoding($type); }
|
||||
function iconv_set_encoding($type, $charset) { return p\Iconv::iconv_set_encoding($type, $charset); }
|
||||
function iconv_mime_encode($name, $value, $pref = null) { return p\Iconv::iconv_mime_encode($name, $value, $pref); }
|
||||
function iconv_mime_decode_headers($encodedHeaders, $mode = 0, $enc = null) { return p\Iconv::iconv_mime_decode_headers($encodedHeaders, $mode, $enc); }
|
||||
}
|
||||
if (!function_exists('iconv_set_encoding')) {
|
||||
function iconv_set_encoding($type, $encoding) { return p\Iconv::iconv_set_encoding($type, $encoding); }
|
||||
}
|
||||
if (!function_exists('iconv_mime_encode')) {
|
||||
function iconv_mime_encode($field_name, $field_value, $options = null) { return p\Iconv::iconv_mime_encode($field_name, $field_value, $options); }
|
||||
}
|
||||
if (!function_exists('iconv_mime_decode_headers')) {
|
||||
function iconv_mime_decode_headers($headers, $mode = 0, $encoding = null) { return p\Iconv::iconv_mime_decode_headers($headers, $mode, $encoding); }
|
||||
}
|
||||
|
||||
if (extension_loaded('mbstring')) {
|
||||
function iconv_strlen($s, $enc = null) { null === $enc and $enc = p\Iconv::$internalEncoding; return mb_strlen($s, $enc); }
|
||||
function iconv_strpos($s, $needle, $offset = 0, $enc = null) { null === $enc and $enc = p\Iconv::$internalEncoding; return mb_strpos($s, $needle, $offset, $enc); }
|
||||
function iconv_strrpos($s, $needle, $enc = null) { null === $enc and $enc = p\Iconv::$internalEncoding; return mb_strrpos($s, $needle, 0, $enc); }
|
||||
function iconv_substr($s, $start, $length = 2147483647, $enc = null) { null === $enc and $enc = p\Iconv::$internalEncoding; return mb_substr($s, $start, $length, $enc); }
|
||||
function iconv_mime_decode($encodedHeaders, $mode = 0, $enc = null) { null === $enc and $enc = p\Iconv::$internalEncoding; return mb_decode_mimeheader($encodedHeaders, $mode, $enc); }
|
||||
} else {
|
||||
if (extension_loaded('mbstring')) {
|
||||
if (!function_exists('iconv_strlen')) {
|
||||
function iconv_strlen($string, $encoding = null) { null === $encoding && $encoding = p\Iconv::$internalEncoding; return mb_strlen($string, $encoding); }
|
||||
}
|
||||
if (!function_exists('iconv_strpos')) {
|
||||
function iconv_strpos($haystack, $needle, $offset = 0, $encoding = null) { null === $encoding && $encoding = p\Iconv::$internalEncoding; return mb_strpos($haystack, $needle, $offset, $encoding); }
|
||||
}
|
||||
if (!function_exists('iconv_strrpos')) {
|
||||
function iconv_strrpos($haystack, $needle, $encoding = null) { null === $encoding && $encoding = p\Iconv::$internalEncoding; return mb_strrpos($haystack, $needle, 0, $encoding); }
|
||||
}
|
||||
if (!function_exists('iconv_substr')) {
|
||||
function iconv_substr($string, $offset, $length = 2147483647, $encoding = null) { null === $encoding && $encoding = p\Iconv::$internalEncoding; return mb_substr($string, $offset, $length, $encoding); }
|
||||
}
|
||||
if (!function_exists('iconv_mime_decode')) {
|
||||
function iconv_mime_decode($string, $mode = 0, $encoding = null) { null === $encoding && $encoding = p\Iconv::$internalEncoding; return mb_decode_mimeheader($string, $mode, $encoding); }
|
||||
}
|
||||
} else {
|
||||
if (!function_exists('iconv_strlen')) {
|
||||
if (extension_loaded('xml')) {
|
||||
function iconv_strlen($s, $enc = null) { return p\Iconv::strlen1($s, $enc); }
|
||||
function iconv_strlen($string, $encoding = null) { return p\Iconv::strlen1($string, $encoding); }
|
||||
} else {
|
||||
function iconv_strlen($s, $enc = null) { return p\Iconv::strlen2($s, $enc); }
|
||||
function iconv_strlen($string, $encoding = null) { return p\Iconv::strlen2($string, $encoding); }
|
||||
}
|
||||
}
|
||||
|
||||
function iconv_strpos($s, $needle, $offset = 0, $enc = null) { return p\Iconv::iconv_strpos($s, $needle, $offset, $enc); }
|
||||
function iconv_strrpos($s, $needle, $enc = null) { return p\Iconv::iconv_strrpos($s, $needle, $enc); }
|
||||
function iconv_substr($s, $start, $length = 2147483647, $enc = null) { return p\Iconv::iconv_substr($s, $start, $length, $enc); }
|
||||
function iconv_mime_decode($encodedHeaders, $mode = 0, $enc = null) { return p\Iconv::iconv_mime_decode($encodedHeaders, $mode, $enc); }
|
||||
if (!function_exists('iconv_strpos')) {
|
||||
function iconv_strpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Iconv::iconv_strpos($haystack, $needle, $offset, $encoding); }
|
||||
}
|
||||
if (!function_exists('iconv_strrpos')) {
|
||||
function iconv_strrpos($haystack, $needle, $encoding = null) { return p\Iconv::iconv_strrpos($haystack, $needle, $encoding); }
|
||||
}
|
||||
if (!function_exists('iconv_substr')) {
|
||||
function iconv_substr($string, $offset, $length = 2147483647, $encoding = null) { return p\Iconv::iconv_substr($string, $offset, $length, $encoding); }
|
||||
}
|
||||
if (!function_exists('iconv_mime_decode')) {
|
||||
function iconv_mime_decode($string, $mode = 0, $encoding = null) { return p\Iconv::iconv_mime_decode($string, $mode, $encoding); }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue