Debian Codegraph @

lib/3rdParty/composer/symfony/polyfill-php84/bootstrap72.php

raw symbols SCIP
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <[email protected]>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 use Symfony\Polyfill\Php84 as p;
13
14 if (extension_loaded('mbstring')) {
15 if (!function_exists('mb_ucfirst')) {
16 /** @return string|false */
17 function mb_ucfirst(?string $string, ?string $encoding = null) { return p\Php84::mb_ucfirst((string) $string, $encoding); }
18 }
19
20 if (!function_exists('mb_lcfirst')) {
21 /** @return string|false */
22 function mb_lcfirst(?string $string, ?string $encoding = null) { return p\Php84::mb_lcfirst((string) $string, $encoding); }
23 }
24
25 if (!function_exists('mb_trim')) {
26 /** @return string|false */
27 function mb_trim(?string $string, ?string $characters = null, ?string $encoding = null) { return p\Php84::mb_trim((string) $string, $characters, $encoding); }
28 }
29
30 if (!function_exists('mb_ltrim')) {
31 /** @return string|false */
32 function mb_ltrim(?string $string, ?string $characters = null, ?string $encoding = null) { return p\Php84::mb_ltrim((string) $string, $characters, $encoding); }
33 }
34
35 if (!function_exists('mb_rtrim')) {
36 /** @return string|false */
37 function mb_rtrim(?string $string, ?string $characters = null, ?string $encoding = null) { return p\Php84::mb_rtrim((string) $string, $characters, $encoding); }
38 }
39 }