Resources
2 months ago
LICENSE
2 years ago
Normalizer.php
2 months ago
README.md
2 years ago
bootstrap.php
2 months ago
bootstrap80.php
2 months ago
bootstrap80.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | namespace { |
| 4 | /* |
| 5 | * This file is part of the Symfony package. |
| 6 | * |
| 7 | * (c) Fabien Potencier <fabien@symfony.com> |
| 8 | * |
| 9 | * For the full copyright and license information, please view the LICENSE |
| 10 | * file that was distributed with this source code. |
| 11 | */ |
| 12 | use Symfony\Polyfill\Intl\Normalizer as p; |
| 13 | if (!\function_exists('normalizer_is_normalized')) { |
| 14 | function normalizer_is_normalized(?string $string, ?int $form = p\Normalizer::FORM_C) : bool |
| 15 | { |
| 16 | return p\Normalizer::isNormalized((string) $string, (int) $form); |
| 17 | } |
| 18 | } |
| 19 | if (!\function_exists('normalizer_normalize')) { |
| 20 | function normalizer_normalize(?string $string, ?int $form = p\Normalizer::FORM_C) : string|false |
| 21 | { |
| 22 | return p\Normalizer::normalize((string) $string, (int) $form); |
| 23 | } |
| 24 | } |
| 25 | if (!\function_exists('normalizer_get_raw_decomposition')) { |
| 26 | function normalizer_get_raw_decomposition(?string $string, ?int $form = p\Normalizer::FORM_C) : ?string |
| 27 | { |
| 28 | return p\Normalizer::getRawDecomposition((string) $string, (int) $form); |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 |