<?php/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */namespaceSymfony\Component\String;if(!\function_exists(u::class)){functionu(?string$string=''):UnicodeString{returnnewUnicodeString($string??'');}}if(!\function_exists(b::class)){functionb(?string$string=''):ByteString{returnnewByteString($string??'');}}if(!\function_exists(s::class)){/** * @return UnicodeString|ByteString */functions(?string$string=''):AbstractString{$string=$string??'';returnpreg_match('//u',$string)?newUnicodeString($string):newByteString($string);}}