Вход Регистрация
Файл: vendor/symfony/polyfill-intl-grapheme/bootstrap85.php
Строк: 136
<?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.
 */

// The $locale argument added to grapheme_*() in PHP 8.5 / ICU 74 is accepted
// for native-signature compatibility but ignored by the polyfill, which only
// performs UTF-8 case folding.

use SymfonyPolyfillIntlGrapheme as p;

if (!
function_exists('grapheme_stripos')) {
    function 
grapheme_stripos(?string $haystack, ?string $needle, ?int $offset 0, ?string $locale ''): int|false { return pGrapheme::grapheme_stripos((string) $haystack, (string) $needle, (int) $offset); }
}
if (!
function_exists('grapheme_stristr')) {
    function 
grapheme_stristr(?string $haystack, ?string $needle, ?bool $beforeNeedle false, ?string $locale ''): string|false { return pGrapheme::grapheme_stristr((string) $haystack, (string) $needle, (bool) $beforeNeedle); }
}
if (!
function_exists('grapheme_strlen')) {
    function 
grapheme_strlen(?string $string): int|false|null { return pGrapheme::grapheme_strlen((string) $string); }
}
if (!
function_exists('grapheme_strpos')) {
    function 
grapheme_strpos(?string $haystack, ?string $needle, ?int $offset 0, ?string $locale ''): int|false { return pGrapheme::grapheme_strpos((string) $haystack, (string) $needle, (int) $offset); }
}
if (!
function_exists('grapheme_strripos')) {
    function 
grapheme_strripos(?string $haystack, ?string $needle, ?int $offset 0, ?string $locale ''): int|false { return pGrapheme::grapheme_strripos((string) $haystack, (string) $needle, (int) $offset); }
}
if (!
function_exists('grapheme_strrpos')) {
    function 
grapheme_strrpos(?string $haystack, ?string $needle, ?int $offset 0, ?string $locale ''): int|false { return pGrapheme::grapheme_strrpos((string) $haystack, (string) $needle, (int) $offset); }
}
if (!
function_exists('grapheme_strstr')) {
    function 
grapheme_strstr(?string $haystack, ?string $needle, ?bool $beforeNeedle false, ?string $locale ''): string|false { return pGrapheme::grapheme_strstr((string) $haystack, (string) $needle, (bool) $beforeNeedle); }
}
if (!
function_exists('grapheme_substr')) {
    function 
grapheme_substr(?string $string, ?int $offset, ?int $length null, ?string $locale ''): string|false { return pGrapheme::grapheme_substr((string) $string, (int) $offset$length); }
}
Онлайн: 2
Реклама