CoreFiles by mySites.guru
functions.php38 lines, 861 bytes, from Joomla_4.2.7-Stable-Full_Package.zip
Raw History Compare with 4.2.6
md5
8a2bebc46564b1ae08f61186e4185259
sha1
dbdfca4b252edf17a70e090f30e84c49d330f3db
sha256
cb56fa2d79dfdedfe51e2e5a9b8cfa08f61fdb4e731b77a04bcc49d19196b89c
<?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;

if (!\function_exists(u::class)) {
    function u(?string $string = ''): UnicodeString
    {
        return new UnicodeString($string ?? '');
    }
}

if (!\function_exists(b::class)) {
    function b(?string $string = ''): ByteString
    {
        return new ByteString($string ?? '');
    }
}

if (!\function_exists(s::class)) {
    /**
     * @return UnicodeString|ByteString
     */
    function s(?string $string = ''): AbstractString
    {
        $string = $string ?? '';

        return preg_match('//u', $string) ? new UnicodeString($string) : new ByteString($string);
    }
}

The same content is in 124 releases, Joomla 4.0.0-rc1 to 4.4.14. See them all, or every version of this file.