PluginProbe
WindPress – Tailwind CSS integration for WordPress / 3.0.13
WindPress – Tailwind CSS integration for WordPress v3.0.13
3.2.89 3.2.88 3.2.87 3.2.86 3.2.85 3.2.84 3.2.83 3.2.82 3.2.81 trunk 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.13 3.0.14 3.0.15 3.0.16 3.0.17 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 All 143 releases
windpress / vendor / symfony / string / Resources / functions.php

functions.php in WindPress – Tailwind CSS integration for WordPress 3.0.13, at vendor/symfony/string/Resources/functions.php

35 lines 875 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11 namespace WindPressDeps\Symfony\Component\String;
12
13 if (!\function_exists(u::class)) {
14 function u(?string $string = '') : UnicodeString
15 {
16 return new UnicodeString($string ?? '');
17 }
18 }
19 if (!\function_exists(b::class)) {
20 function b(?string $string = '') : ByteString
21 {
22 return new ByteString($string ?? '');
23 }
24 }
25 if (!\function_exists(s::class)) {
26 /**
27 * @return UnicodeString|ByteString
28 */
29 function s(?string $string = '') : AbstractString
30 {
31 $string = $string ?? '';
32 return \preg_match('//u', $string) ? new UnicodeString($string) : new ByteString($string);
33 }
34 }
35