CoreFiles by mySites.guru
functions.php32 lines, 686 bytes, from Joomla_4.0.0-beta7-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta6
md5
595920fa7ca949389d3220d653fcc1c6
sha1
11a1b06e6137f123f65e79bfbedb91f7ff3ace0e
sha256
cabc29cb40e3a03016a66906d148b55c580004717c4bce64a594b7c12f7f4aa0
<?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
{
    $string = $string ?? '';

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

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