CoreFiles by mySites.guru
functions.php30 lines, 636 bytes, from Joomla_4.0.0-beta5-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta4
md5
dfdd05d8a98e13d41eafce4c87739c0b
sha1
8dbb2f9c45932ebc121d6352ba819a2e722eaa37
sha256
2f4158ba01dea0ce22555fbd873a4f70014d6c2288cba380292ba160ffffeee6
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\String;

function u(string $string = ''): UnicodeString
{
    return new UnicodeString($string);
}

function b(string $string = ''): ByteString
{
    return new ByteString($string);
}

/**
 * @return UnicodeString|ByteString
 */
function s(string $string): AbstractString
{
    return preg_match('//u', $string) ? new UnicodeString($string) : new ByteString($string);
}

The same content is in 2 releases, Joomla 4.0.0-beta4 to 4.0.0-beta5. See them all, or every version of this file.