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
bootstrap.php
35 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 (\PHP_VERSION_ID >= 80000) { |
| 14 | return require __DIR__ . '/bootstrap80.php'; |
| 15 | } |
| 16 | if (!\function_exists('normalizer_is_normalized')) { |
| 17 | function normalizer_is_normalized($string, $form = p\Normalizer::FORM_C) |
| 18 | { |
| 19 | return p\Normalizer::isNormalized($string, $form); |
| 20 | } |
| 21 | } |
| 22 | if (!\function_exists('normalizer_normalize')) { |
| 23 | function normalizer_normalize($string, $form = p\Normalizer::FORM_C) |
| 24 | { |
| 25 | return p\Normalizer::normalize($string, $form); |
| 26 | } |
| 27 | } |
| 28 | if (!\function_exists('normalizer_get_raw_decomposition')) { |
| 29 | function normalizer_get_raw_decomposition(?string $string, ?int $form = p\Normalizer::FORM_C) |
| 30 | { |
| 31 | return p\Normalizer::getRawDecomposition((string) $string, (int) $form); |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 |