mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
Updated Rector to commit df529df379052abcc8350f14635ccb4f89c6eadb
df529df379
complete polyfill list
This commit is contained in:
parent
bdfd24339f
commit
a3c86b2b50
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'dbdb5931d619487a9a6cad7432df8201661cafa0';
|
||||
public const PACKAGE_VERSION = 'b07b07d5e15675b79e92088cd579d6dc27fcbccd';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-06-07 08:17:10';
|
||||
public const RELEASE_DATE = '2022-06-07 08:22:42';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitea991af8a48b066b6508e12123515df3::getLoader();
|
||||
return ComposerAutoloaderInitf18b4c8057f75483411413996de650a4::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitea991af8a48b066b6508e12123515df3
|
||||
class ComposerAutoloaderInitf18b4c8057f75483411413996de650a4
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,19 +22,19 @@ class ComposerAutoloaderInitea991af8a48b066b6508e12123515df3
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitea991af8a48b066b6508e12123515df3', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitf18b4c8057f75483411413996de650a4', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitea991af8a48b066b6508e12123515df3', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitf18b4c8057f75483411413996de650a4', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitea991af8a48b066b6508e12123515df3::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitf18b4c8057f75483411413996de650a4::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInitea991af8a48b066b6508e12123515df3::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInitf18b4c8057f75483411413996de650a4::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequireea991af8a48b066b6508e12123515df3($fileIdentifier, $file);
|
||||
composerRequiref18b4c8057f75483411413996de650a4($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -46,7 +46,7 @@ class ComposerAutoloaderInitea991af8a48b066b6508e12123515df3
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequireea991af8a48b066b6508e12123515df3($fileIdentifier, $file)
|
||||
function composerRequiref18b4c8057f75483411413996de650a4($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitea991af8a48b066b6508e12123515df3
|
||||
class ComposerStaticInitf18b4c8057f75483411413996de650a4
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
@ -3386,9 +3386,9 @@ class ComposerStaticInitea991af8a48b066b6508e12123515df3
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitea991af8a48b066b6508e12123515df3::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitea991af8a48b066b6508e12123515df3::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitea991af8a48b066b6508e12123515df3::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitf18b4c8057f75483411413996de650a4::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitf18b4c8057f75483411413996de650a4::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitf18b4c8057f75483411413996de650a4::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace RectorPrefix20220607;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
@ -10,19 +8,16 @@ namespace RectorPrefix20220607;
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
use RectorPrefix20220607\Symfony\Polyfill\Intl\Normalizer as p;
|
||||
|
||||
use Symfony\Polyfill\Intl\Normalizer as p;
|
||||
|
||||
if (\PHP_VERSION_ID >= 80000) {
|
||||
return require __DIR__ . '/bootstrap80.php';
|
||||
return require __DIR__.'/bootstrap80.php';
|
||||
}
|
||||
if (!\function_exists('normalizer_is_normalized')) {
|
||||
function normalizer_is_normalized($string, $form = p\Normalizer::FORM_C)
|
||||
{
|
||||
return p\Normalizer::isNormalized($string, $form);
|
||||
}
|
||||
|
||||
if (!function_exists('normalizer_is_normalized')) {
|
||||
function normalizer_is_normalized($string, $form = p\Normalizer::FORM_C) { return p\Normalizer::isNormalized($string, $form); }
|
||||
}
|
||||
if (!\function_exists('normalizer_normalize')) {
|
||||
function normalizer_normalize($string, $form = p\Normalizer::FORM_C)
|
||||
{
|
||||
return p\Normalizer::normalize($string, $form);
|
||||
}
|
||||
if (!function_exists('normalizer_normalize')) {
|
||||
function normalizer_normalize($string, $form = p\Normalizer::FORM_C) { return p\Normalizer::normalize($string, $form); }
|
||||
}
|
||||
|
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace RectorPrefix20220607;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
@ -10,19 +8,15 @@ namespace RectorPrefix20220607;
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
use RectorPrefix20220607\Symfony\Polyfill\Intl\Normalizer as p;
|
||||
if (!\function_exists('normalizer_is_normalized')) {
|
||||
function normalizer_is_normalized(?string $string, ?int $form = p\Normalizer::FORM_C) : bool
|
||||
{
|
||||
return p\Normalizer::isNormalized((string) $string, (int) $form);
|
||||
}
|
||||
|
||||
use Symfony\Polyfill\Intl\Normalizer as p;
|
||||
|
||||
if (!function_exists('normalizer_is_normalized')) {
|
||||
function normalizer_is_normalized(?string $string, ?int $form = p\Normalizer::FORM_C): bool { return p\Normalizer::isNormalized((string) $string, (int) $form); }
|
||||
}
|
||||
if (!\function_exists('normalizer_normalize')) {
|
||||
if (!function_exists('normalizer_normalize')) {
|
||||
/**
|
||||
* @return string|true
|
||||
*/
|
||||
function normalizer_normalize(?string $string, ?int $form = p\Normalizer::FORM_C)
|
||||
{
|
||||
return p\Normalizer::normalize((string) $string, (int) $form);
|
||||
}
|
||||
function normalizer_normalize(?string $string, ?int $form = p\Normalizer::FORM_C) { return p\Normalizer::normalize((string) $string, (int) $form); }
|
||||
}
|
||||
|
295
vendor/symfony/polyfill-mbstring/bootstrap.php
vendored
295
vendor/symfony/polyfill-mbstring/bootstrap.php
vendored
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace RectorPrefix20220607;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
@ -10,249 +8,140 @@ namespace RectorPrefix20220607;
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
use RectorPrefix20220607\Symfony\Polyfill\Mbstring as p;
|
||||
|
||||
use Symfony\Polyfill\Mbstring as p;
|
||||
|
||||
if (\PHP_VERSION_ID >= 80000) {
|
||||
return require __DIR__ . '/bootstrap80.php';
|
||||
return require __DIR__.'/bootstrap80.php';
|
||||
}
|
||||
if (!\function_exists('mb_convert_encoding')) {
|
||||
function mb_convert_encoding($string, $to_encoding, $from_encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_convert_encoding($string, $to_encoding, $from_encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_convert_encoding')) {
|
||||
function mb_convert_encoding($string, $to_encoding, $from_encoding = null) { return p\Mbstring::mb_convert_encoding($string, $to_encoding, $from_encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_decode_mimeheader')) {
|
||||
function mb_decode_mimeheader($string)
|
||||
{
|
||||
return p\Mbstring::mb_decode_mimeheader($string);
|
||||
}
|
||||
if (!function_exists('mb_decode_mimeheader')) {
|
||||
function mb_decode_mimeheader($string) { return p\Mbstring::mb_decode_mimeheader($string); }
|
||||
}
|
||||
if (!\function_exists('mb_encode_mimeheader')) {
|
||||
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);
|
||||
}
|
||||
if (!function_exists('mb_encode_mimeheader')) {
|
||||
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); }
|
||||
}
|
||||
if (!\function_exists('mb_decode_numericentity')) {
|
||||
function mb_decode_numericentity($string, $map, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_decode_numericentity($string, $map, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_decode_numericentity')) {
|
||||
function mb_decode_numericentity($string, $map, $encoding = null) { return p\Mbstring::mb_decode_numericentity($string, $map, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_encode_numericentity')) {
|
||||
function mb_encode_numericentity($string, $map, $encoding = null, $hex = \false)
|
||||
{
|
||||
return p\Mbstring::mb_encode_numericentity($string, $map, $encoding, $hex);
|
||||
}
|
||||
if (!function_exists('mb_encode_numericentity')) {
|
||||
function mb_encode_numericentity($string, $map, $encoding = null, $hex = false) { return p\Mbstring::mb_encode_numericentity($string, $map, $encoding, $hex); }
|
||||
}
|
||||
if (!\function_exists('mb_convert_case')) {
|
||||
function mb_convert_case($string, $mode, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_convert_case($string, $mode, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_convert_case')) {
|
||||
function mb_convert_case($string, $mode, $encoding = null) { return p\Mbstring::mb_convert_case($string, $mode, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_internal_encoding')) {
|
||||
function mb_internal_encoding($encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_internal_encoding($encoding);
|
||||
}
|
||||
if (!function_exists('mb_internal_encoding')) {
|
||||
function mb_internal_encoding($encoding = null) { return p\Mbstring::mb_internal_encoding($encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_language')) {
|
||||
function mb_language($language = null)
|
||||
{
|
||||
return p\Mbstring::mb_language($language);
|
||||
}
|
||||
if (!function_exists('mb_language')) {
|
||||
function mb_language($language = null) { return p\Mbstring::mb_language($language); }
|
||||
}
|
||||
if (!\function_exists('mb_list_encodings')) {
|
||||
function mb_list_encodings()
|
||||
{
|
||||
return p\Mbstring::mb_list_encodings();
|
||||
}
|
||||
if (!function_exists('mb_list_encodings')) {
|
||||
function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); }
|
||||
}
|
||||
if (!\function_exists('mb_encoding_aliases')) {
|
||||
function mb_encoding_aliases($encoding)
|
||||
{
|
||||
return p\Mbstring::mb_encoding_aliases($encoding);
|
||||
}
|
||||
if (!function_exists('mb_encoding_aliases')) {
|
||||
function mb_encoding_aliases($encoding) { return p\Mbstring::mb_encoding_aliases($encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_check_encoding')) {
|
||||
function mb_check_encoding($value = null, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_check_encoding($value, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_check_encoding')) {
|
||||
function mb_check_encoding($value = null, $encoding = null) { return p\Mbstring::mb_check_encoding($value, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_detect_encoding')) {
|
||||
function mb_detect_encoding($string, $encodings = null, $strict = \false)
|
||||
{
|
||||
return p\Mbstring::mb_detect_encoding($string, $encodings, $strict);
|
||||
}
|
||||
if (!function_exists('mb_detect_encoding')) {
|
||||
function mb_detect_encoding($string, $encodings = null, $strict = false) { return p\Mbstring::mb_detect_encoding($string, $encodings, $strict); }
|
||||
}
|
||||
if (!\function_exists('mb_detect_order')) {
|
||||
function mb_detect_order($encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_detect_order($encoding);
|
||||
}
|
||||
if (!function_exists('mb_detect_order')) {
|
||||
function mb_detect_order($encoding = null) { return p\Mbstring::mb_detect_order($encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_parse_str')) {
|
||||
function mb_parse_str($string, &$result = [])
|
||||
{
|
||||
\parse_str($string, $result);
|
||||
return (bool) $result;
|
||||
}
|
||||
if (!function_exists('mb_parse_str')) {
|
||||
function mb_parse_str($string, &$result = []) { parse_str($string, $result); return (bool) $result; }
|
||||
}
|
||||
if (!\function_exists('mb_strlen')) {
|
||||
function mb_strlen($string, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strlen($string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strlen')) {
|
||||
function mb_strlen($string, $encoding = null) { return p\Mbstring::mb_strlen($string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strpos')) {
|
||||
function mb_strpos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strpos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strpos')) {
|
||||
function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strpos($haystack, $needle, $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strtolower')) {
|
||||
function mb_strtolower($string, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strtolower($string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strtolower')) {
|
||||
function mb_strtolower($string, $encoding = null) { return p\Mbstring::mb_strtolower($string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strtoupper')) {
|
||||
function mb_strtoupper($string, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strtoupper($string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strtoupper')) {
|
||||
function mb_strtoupper($string, $encoding = null) { return p\Mbstring::mb_strtoupper($string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_substitute_character')) {
|
||||
function mb_substitute_character($substitute_character = null)
|
||||
{
|
||||
return p\Mbstring::mb_substitute_character($substitute_character);
|
||||
}
|
||||
if (!function_exists('mb_substitute_character')) {
|
||||
function mb_substitute_character($substitute_character = null) { return p\Mbstring::mb_substitute_character($substitute_character); }
|
||||
}
|
||||
if (!\function_exists('mb_substr')) {
|
||||
function mb_substr($string, $start, $length = 2147483647, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_substr($string, $start, $length, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_substr')) {
|
||||
function mb_substr($string, $start, $length = 2147483647, $encoding = null) { return p\Mbstring::mb_substr($string, $start, $length, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_stripos')) {
|
||||
function mb_stripos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_stripos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_stripos')) {
|
||||
function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_stripos($haystack, $needle, $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_stristr')) {
|
||||
function mb_stristr($haystack, $needle, $before_needle = \false, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_stristr($haystack, $needle, $before_needle, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_stristr')) {
|
||||
function mb_stristr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_stristr($haystack, $needle, $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strrchr')) {
|
||||
function mb_strrchr($haystack, $needle, $before_needle = \false, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strrchr($haystack, $needle, $before_needle, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strrchr')) {
|
||||
function mb_strrchr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrchr($haystack, $needle, $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strrichr')) {
|
||||
function mb_strrichr($haystack, $needle, $before_needle = \false, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strrichr($haystack, $needle, $before_needle, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strrichr')) {
|
||||
function mb_strrichr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrichr($haystack, $needle, $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strripos')) {
|
||||
function mb_strripos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strripos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strripos')) {
|
||||
function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strripos($haystack, $needle, $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strrpos')) {
|
||||
function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strrpos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strrpos')) {
|
||||
function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strrpos($haystack, $needle, $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strstr')) {
|
||||
function mb_strstr($haystack, $needle, $before_needle = \false, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strstr($haystack, $needle, $before_needle, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strstr')) {
|
||||
function mb_strstr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strstr($haystack, $needle, $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_get_info')) {
|
||||
function mb_get_info($type = 'all')
|
||||
{
|
||||
return p\Mbstring::mb_get_info($type);
|
||||
}
|
||||
if (!function_exists('mb_get_info')) {
|
||||
function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); }
|
||||
}
|
||||
if (!\function_exists('mb_http_output')) {
|
||||
function mb_http_output($encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_http_output($encoding);
|
||||
}
|
||||
if (!function_exists('mb_http_output')) {
|
||||
function mb_http_output($encoding = null) { return p\Mbstring::mb_http_output($encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strwidth')) {
|
||||
function mb_strwidth($string, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strwidth($string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strwidth')) {
|
||||
function mb_strwidth($string, $encoding = null) { return p\Mbstring::mb_strwidth($string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_substr_count')) {
|
||||
function mb_substr_count($haystack, $needle, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_substr_count($haystack, $needle, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_substr_count')) {
|
||||
function mb_substr_count($haystack, $needle, $encoding = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_output_handler')) {
|
||||
function mb_output_handler($string, $status)
|
||||
{
|
||||
return p\Mbstring::mb_output_handler($string, $status);
|
||||
}
|
||||
if (!function_exists('mb_output_handler')) {
|
||||
function mb_output_handler($string, $status) { return p\Mbstring::mb_output_handler($string, $status); }
|
||||
}
|
||||
if (!\function_exists('mb_http_input')) {
|
||||
function mb_http_input($type = null)
|
||||
{
|
||||
return p\Mbstring::mb_http_input($type);
|
||||
}
|
||||
if (!function_exists('mb_http_input')) {
|
||||
function mb_http_input($type = null) { return p\Mbstring::mb_http_input($type); }
|
||||
}
|
||||
if (!\function_exists('mb_convert_variables')) {
|
||||
function mb_convert_variables($to_encoding, $from_encoding, &...$vars)
|
||||
{
|
||||
return p\Mbstring::mb_convert_variables($to_encoding, $from_encoding, ...$vars);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_convert_variables')) {
|
||||
function mb_convert_variables($to_encoding, $from_encoding, &...$vars) { return p\Mbstring::mb_convert_variables($to_encoding, $from_encoding, ...$vars); }
|
||||
}
|
||||
if (!\function_exists('mb_ord')) {
|
||||
function mb_ord($string, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_ord($string, $encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_ord')) {
|
||||
function mb_ord($string, $encoding = null) { return p\Mbstring::mb_ord($string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_chr')) {
|
||||
function mb_chr($codepoint, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_chr($codepoint, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_chr')) {
|
||||
function mb_chr($codepoint, $encoding = null) { return p\Mbstring::mb_chr($codepoint, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_scrub')) {
|
||||
function mb_scrub($string, $encoding = null)
|
||||
{
|
||||
$encoding = null === $encoding ? \mb_internal_encoding() : $encoding;
|
||||
return \mb_convert_encoding($string, $encoding, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_scrub')) {
|
||||
function mb_scrub($string, $encoding = null) { $encoding = null === $encoding ? mb_internal_encoding() : $encoding; return mb_convert_encoding($string, $encoding, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_str_split')) {
|
||||
function mb_str_split($string, $length = 1, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_str_split($string, $length, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_str_split')) {
|
||||
function mb_str_split($string, $length = 1, $encoding = null) { return p\Mbstring::mb_str_split($string, $length, $encoding); }
|
||||
}
|
||||
if (\extension_loaded('mbstring')) {
|
||||
|
||||
if (extension_loaded('mbstring')) {
|
||||
return;
|
||||
}
|
||||
if (!\defined('MB_CASE_UPPER')) {
|
||||
\define('MB_CASE_UPPER', 0);
|
||||
|
||||
if (!defined('MB_CASE_UPPER')) {
|
||||
define('MB_CASE_UPPER', 0);
|
||||
}
|
||||
if (!\defined('MB_CASE_LOWER')) {
|
||||
\define('MB_CASE_LOWER', 1);
|
||||
if (!defined('MB_CASE_LOWER')) {
|
||||
define('MB_CASE_LOWER', 1);
|
||||
}
|
||||
if (!\defined('MB_CASE_TITLE')) {
|
||||
\define('MB_CASE_TITLE', 2);
|
||||
if (!defined('MB_CASE_TITLE')) {
|
||||
define('MB_CASE_TITLE', 2);
|
||||
}
|
||||
|
292
vendor/symfony/polyfill-mbstring/bootstrap80.php
vendored
292
vendor/symfony/polyfill-mbstring/bootstrap80.php
vendored
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace RectorPrefix20220607;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
@ -10,317 +8,207 @@ namespace RectorPrefix20220607;
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
use RectorPrefix20220607\Symfony\Polyfill\Mbstring as p;
|
||||
if (!\function_exists('mb_convert_encoding')) {
|
||||
|
||||
use Symfony\Polyfill\Mbstring as p;
|
||||
|
||||
if (!function_exists('mb_convert_encoding')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $string
|
||||
* @param mixed[]|string|null $from_encoding
|
||||
* @return mixed[]|string|true
|
||||
*/
|
||||
function mb_convert_encoding($string, ?string $to_encoding, $from_encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding);
|
||||
}
|
||||
function mb_convert_encoding($string, ?string $to_encoding, $from_encoding = null) { return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_decode_mimeheader')) {
|
||||
function mb_decode_mimeheader(?string $string) : string
|
||||
{
|
||||
return p\Mbstring::mb_decode_mimeheader((string) $string);
|
||||
}
|
||||
if (!function_exists('mb_decode_mimeheader')) {
|
||||
function mb_decode_mimeheader(?string $string): string { return p\Mbstring::mb_decode_mimeheader((string) $string); }
|
||||
}
|
||||
if (!\function_exists('mb_encode_mimeheader')) {
|
||||
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);
|
||||
}
|
||||
if (!function_exists('mb_encode_mimeheader')) {
|
||||
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); }
|
||||
}
|
||||
if (!\function_exists('mb_decode_numericentity')) {
|
||||
function mb_decode_numericentity(?string $string, array $map, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_decode_numericentity((string) $string, $map, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_decode_numericentity')) {
|
||||
function mb_decode_numericentity(?string $string, array $map, ?string $encoding = null): string { return p\Mbstring::mb_decode_numericentity((string) $string, $map, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_encode_numericentity')) {
|
||||
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);
|
||||
}
|
||||
if (!function_exists('mb_encode_numericentity')) {
|
||||
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); }
|
||||
}
|
||||
if (!\function_exists('mb_convert_case')) {
|
||||
function mb_convert_case(?string $string, ?int $mode, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_convert_case((string) $string, (int) $mode, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_convert_case')) {
|
||||
function mb_convert_case(?string $string, ?int $mode, ?string $encoding = null): string { return p\Mbstring::mb_convert_case((string) $string, (int) $mode, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_internal_encoding')) {
|
||||
if (!function_exists('mb_internal_encoding')) {
|
||||
/**
|
||||
* @return string|bool
|
||||
*/
|
||||
function mb_internal_encoding(?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_internal_encoding($encoding);
|
||||
}
|
||||
function mb_internal_encoding(?string $encoding = null) { return p\Mbstring::mb_internal_encoding($encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_language')) {
|
||||
if (!function_exists('mb_language')) {
|
||||
/**
|
||||
* @return string|bool
|
||||
*/
|
||||
function mb_language(?string $language = null)
|
||||
{
|
||||
return p\Mbstring::mb_language($language);
|
||||
}
|
||||
function mb_language(?string $language = null) { return p\Mbstring::mb_language($language); }
|
||||
}
|
||||
if (!\function_exists('mb_list_encodings')) {
|
||||
function mb_list_encodings() : array
|
||||
{
|
||||
return p\Mbstring::mb_list_encodings();
|
||||
}
|
||||
if (!function_exists('mb_list_encodings')) {
|
||||
function mb_list_encodings(): array { return p\Mbstring::mb_list_encodings(); }
|
||||
}
|
||||
if (!\function_exists('mb_encoding_aliases')) {
|
||||
function mb_encoding_aliases(?string $encoding) : array
|
||||
{
|
||||
return p\Mbstring::mb_encoding_aliases((string) $encoding);
|
||||
}
|
||||
if (!function_exists('mb_encoding_aliases')) {
|
||||
function mb_encoding_aliases(?string $encoding): array { return p\Mbstring::mb_encoding_aliases((string) $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_check_encoding')) {
|
||||
if (!function_exists('mb_check_encoding')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $value
|
||||
*/
|
||||
function mb_check_encoding($value = null, ?string $encoding = null) : bool
|
||||
{
|
||||
return p\Mbstring::mb_check_encoding($value, $encoding);
|
||||
}
|
||||
function mb_check_encoding($value = null, ?string $encoding = null): bool { return p\Mbstring::mb_check_encoding($value, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_detect_encoding')) {
|
||||
if (!function_exists('mb_detect_encoding')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $encodings
|
||||
* @return string|true
|
||||
*/
|
||||
function mb_detect_encoding(?string $string, $encodings = null, ?bool $strict = \false)
|
||||
{
|
||||
return p\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict);
|
||||
}
|
||||
function mb_detect_encoding(?string $string, $encodings = null, ?bool $strict = false) { return p\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict); }
|
||||
}
|
||||
if (!\function_exists('mb_detect_order')) {
|
||||
if (!function_exists('mb_detect_order')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $encoding
|
||||
* @return mixed[]|bool
|
||||
*/
|
||||
function mb_detect_order($encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_detect_order($encoding);
|
||||
}
|
||||
function mb_detect_order($encoding = null) { return p\Mbstring::mb_detect_order($encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_parse_str')) {
|
||||
function mb_parse_str(?string $string, &$result = []) : bool
|
||||
{
|
||||
\parse_str((string) $string, $result);
|
||||
return (bool) $result;
|
||||
}
|
||||
if (!function_exists('mb_parse_str')) {
|
||||
function mb_parse_str(?string $string, &$result = []): bool { parse_str((string) $string, $result); return (bool) $result; }
|
||||
}
|
||||
if (!\function_exists('mb_strlen')) {
|
||||
function mb_strlen(?string $string, ?string $encoding = null) : int
|
||||
{
|
||||
return p\Mbstring::mb_strlen((string) $string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strlen')) {
|
||||
function mb_strlen(?string $string, ?string $encoding = null): int { return p\Mbstring::mb_strlen((string) $string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strpos')) {
|
||||
if (!function_exists('mb_strpos')) {
|
||||
/**
|
||||
* @return int|true
|
||||
*/
|
||||
function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strpos((string) $haystack, (string) $needle, (int) $offset, $encoding);
|
||||
}
|
||||
function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) { return p\Mbstring::mb_strpos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strtolower')) {
|
||||
function mb_strtolower(?string $string, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_strtolower((string) $string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strtolower')) {
|
||||
function mb_strtolower(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_strtolower((string) $string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strtoupper')) {
|
||||
function mb_strtoupper(?string $string, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_strtoupper((string) $string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strtoupper')) {
|
||||
function mb_strtoupper(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_strtoupper((string) $string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_substitute_character')) {
|
||||
if (!function_exists('mb_substitute_character')) {
|
||||
/**
|
||||
* @param string|int|null $substitute_character
|
||||
* @return string|int|bool
|
||||
*/
|
||||
function mb_substitute_character($substitute_character = null)
|
||||
{
|
||||
return p\Mbstring::mb_substitute_character($substitute_character);
|
||||
}
|
||||
function mb_substitute_character($substitute_character = null) { return p\Mbstring::mb_substitute_character($substitute_character); }
|
||||
}
|
||||
if (!\function_exists('mb_substr')) {
|
||||
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);
|
||||
}
|
||||
if (!function_exists('mb_substr')) {
|
||||
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); }
|
||||
}
|
||||
if (!\function_exists('mb_stripos')) {
|
||||
if (!function_exists('mb_stripos')) {
|
||||
/**
|
||||
* @return int|true
|
||||
*/
|
||||
function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding);
|
||||
}
|
||||
function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) { return p\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_stristr')) {
|
||||
if (!function_exists('mb_stristr')) {
|
||||
/**
|
||||
* @return string|true
|
||||
*/
|
||||
function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
|
||||
}
|
||||
function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) { return p\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strrchr')) {
|
||||
if (!function_exists('mb_strrchr')) {
|
||||
/**
|
||||
* @return string|true
|
||||
*/
|
||||
function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strrchr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
|
||||
}
|
||||
function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) { return p\Mbstring::mb_strrchr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strrichr')) {
|
||||
if (!function_exists('mb_strrichr')) {
|
||||
/**
|
||||
* @return string|true
|
||||
*/
|
||||
function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strrichr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
|
||||
}
|
||||
function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) { return p\Mbstring::mb_strrichr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strripos')) {
|
||||
if (!function_exists('mb_strripos')) {
|
||||
/**
|
||||
* @return int|true
|
||||
*/
|
||||
function mb_strripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strripos((string) $haystack, (string) $needle, (int) $offset, $encoding);
|
||||
}
|
||||
function mb_strripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) { return p\Mbstring::mb_strripos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strrpos')) {
|
||||
if (!function_exists('mb_strrpos')) {
|
||||
/**
|
||||
* @return int|true
|
||||
*/
|
||||
function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strrpos((string) $haystack, (string) $needle, (int) $offset, $encoding);
|
||||
}
|
||||
function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) { return p\Mbstring::mb_strrpos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strstr')) {
|
||||
if (!function_exists('mb_strstr')) {
|
||||
/**
|
||||
* @return string|true
|
||||
*/
|
||||
function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
|
||||
}
|
||||
function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) { return p\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_get_info')) {
|
||||
if (!function_exists('mb_get_info')) {
|
||||
/**
|
||||
* @return mixed[]|string|int|true
|
||||
*/
|
||||
function mb_get_info(?string $type = 'all')
|
||||
{
|
||||
return p\Mbstring::mb_get_info((string) $type);
|
||||
}
|
||||
function mb_get_info(?string $type = 'all') { return p\Mbstring::mb_get_info((string) $type); }
|
||||
}
|
||||
if (!\function_exists('mb_http_output')) {
|
||||
if (!function_exists('mb_http_output')) {
|
||||
/**
|
||||
* @return string|bool
|
||||
*/
|
||||
function mb_http_output(?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_http_output($encoding);
|
||||
}
|
||||
function mb_http_output(?string $encoding = null) { return p\Mbstring::mb_http_output($encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strwidth')) {
|
||||
function mb_strwidth(?string $string, ?string $encoding = null) : int
|
||||
{
|
||||
return p\Mbstring::mb_strwidth((string) $string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strwidth')) {
|
||||
function mb_strwidth(?string $string, ?string $encoding = null): int { return p\Mbstring::mb_strwidth((string) $string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_substr_count')) {
|
||||
function mb_substr_count(?string $haystack, ?string $needle, ?string $encoding = null) : int
|
||||
{
|
||||
return p\Mbstring::mb_substr_count((string) $haystack, (string) $needle, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_substr_count')) {
|
||||
function mb_substr_count(?string $haystack, ?string $needle, ?string $encoding = null): int { return p\Mbstring::mb_substr_count((string) $haystack, (string) $needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_output_handler')) {
|
||||
function mb_output_handler(?string $string, ?int $status) : string
|
||||
{
|
||||
return p\Mbstring::mb_output_handler((string) $string, (int) $status);
|
||||
}
|
||||
if (!function_exists('mb_output_handler')) {
|
||||
function mb_output_handler(?string $string, ?int $status): string { return p\Mbstring::mb_output_handler((string) $string, (int) $status); }
|
||||
}
|
||||
if (!\function_exists('mb_http_input')) {
|
||||
if (!function_exists('mb_http_input')) {
|
||||
/**
|
||||
* @return mixed[]|string|true
|
||||
*/
|
||||
function mb_http_input(?string $type = null)
|
||||
{
|
||||
return p\Mbstring::mb_http_input($type);
|
||||
}
|
||||
function mb_http_input(?string $type = null) { return p\Mbstring::mb_http_input($type); }
|
||||
}
|
||||
if (!\function_exists('mb_convert_variables')) {
|
||||
|
||||
if (!function_exists('mb_convert_variables')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $from_encoding
|
||||
* @return string|true
|
||||
* @param mixed $var
|
||||
* @param mixed ...$vars
|
||||
*/
|
||||
function mb_convert_variables(?string $to_encoding, $from_encoding, &$var, &...$vars)
|
||||
{
|
||||
return p\Mbstring::mb_convert_variables((string) $to_encoding, $from_encoding ?? '', $var, ...$vars);
|
||||
}
|
||||
function mb_convert_variables(?string $to_encoding, $from_encoding, &$var, &...$vars) { return p\Mbstring::mb_convert_variables((string) $to_encoding, $from_encoding ?? '', $var, ...$vars); }
|
||||
}
|
||||
if (!\function_exists('mb_ord')) {
|
||||
|
||||
if (!function_exists('mb_ord')) {
|
||||
/**
|
||||
* @return int|true
|
||||
*/
|
||||
function mb_ord(?string $string, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_ord((string) $string, $encoding);
|
||||
}
|
||||
function mb_ord(?string $string, ?string $encoding = null) { return p\Mbstring::mb_ord((string) $string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_chr')) {
|
||||
if (!function_exists('mb_chr')) {
|
||||
/**
|
||||
* @return string|true
|
||||
*/
|
||||
function mb_chr(?int $codepoint, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_chr((int) $codepoint, $encoding);
|
||||
}
|
||||
function mb_chr(?int $codepoint, ?string $encoding = null) { return p\Mbstring::mb_chr((int) $codepoint, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_scrub')) {
|
||||
function mb_scrub(?string $string, ?string $encoding = null) : string
|
||||
{
|
||||
$encoding = $encoding ?? \mb_internal_encoding();
|
||||
return \mb_convert_encoding((string) $string, $encoding, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_scrub')) {
|
||||
function mb_scrub(?string $string, ?string $encoding = null): string { $encoding = $encoding ?? mb_internal_encoding(); return mb_convert_encoding((string) $string, $encoding, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_str_split')) {
|
||||
function mb_str_split(?string $string, ?int $length = 1, ?string $encoding = null) : array
|
||||
{
|
||||
return p\Mbstring::mb_str_split((string) $string, (int) $length, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_str_split')) {
|
||||
function mb_str_split(?string $string, ?int $length = 1, ?string $encoding = null): array { return p\Mbstring::mb_str_split((string) $string, (int) $length, $encoding); }
|
||||
}
|
||||
if (\extension_loaded('mbstring')) {
|
||||
|
||||
if (extension_loaded('mbstring')) {
|
||||
return;
|
||||
}
|
||||
if (!\defined('MB_CASE_UPPER')) {
|
||||
\define('MB_CASE_UPPER', 0);
|
||||
|
||||
if (!defined('MB_CASE_UPPER')) {
|
||||
define('MB_CASE_UPPER', 0);
|
||||
}
|
||||
if (!\defined('MB_CASE_LOWER')) {
|
||||
\define('MB_CASE_LOWER', 1);
|
||||
if (!defined('MB_CASE_LOWER')) {
|
||||
define('MB_CASE_LOWER', 1);
|
||||
}
|
||||
if (!\defined('MB_CASE_TITLE')) {
|
||||
\define('MB_CASE_TITLE', 2);
|
||||
if (!defined('MB_CASE_TITLE')) {
|
||||
define('MB_CASE_TITLE', 2);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user