Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

bootstrap.php

Same filename in this branch
  1. 11.1.x vendor/phpstan/phpstan/bootstrap.php
  2. 11.1.x vendor/composer/installers/src/bootstrap.php
  3. 11.1.x vendor/composer/composer/src/bootstrap.php
  4. 11.1.x vendor/symfony/polyfill-ctype/bootstrap.php
  5. 11.1.x vendor/symfony/polyfill-mbstring/bootstrap.php
  6. 11.1.x vendor/symfony/polyfill-intl-idn/bootstrap.php
  7. 11.1.x vendor/symfony/polyfill-intl-normalizer/bootstrap.php
  8. 11.1.x vendor/symfony/polyfill-iconv/bootstrap.php

File

vendor/symfony/polyfill-intl-grapheme/bootstrap.php

View source
<?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.
 */
use Symfony\Polyfill\Intl\Grapheme as p;
if (extension_loaded('intl')) {
    return;
}
if (\PHP_VERSION_ID >= 80000) {
    return require __DIR__ . '/bootstrap80.php';
}
if (!defined('GRAPHEME_EXTR_COUNT')) {
    define('GRAPHEME_EXTR_COUNT', 0);
}
if (!defined('GRAPHEME_EXTR_MAXBYTES')) {
    define('GRAPHEME_EXTR_MAXBYTES', 1);
}
if (!defined('GRAPHEME_EXTR_MAXCHARS')) {
    define('GRAPHEME_EXTR_MAXCHARS', 2);
}
if (!function_exists('grapheme_extract')) {
    function grapheme_extract($haystack, $size, $type = 0, $start = 0, &$next = 0) {
        return p\Grapheme::grapheme_extract($haystack, $size, $type, $start, $next);
    }
}
if (!function_exists('grapheme_stripos')) {
    function grapheme_stripos($haystack, $needle, $offset = 0) {
        return p\Grapheme::grapheme_stripos($haystack, $needle, $offset);
    }
}
if (!function_exists('grapheme_stristr')) {
    function grapheme_stristr($haystack, $needle, $beforeNeedle = false) {
        return p\Grapheme::grapheme_stristr($haystack, $needle, $beforeNeedle);
    }
}
if (!function_exists('grapheme_strlen')) {
    function grapheme_strlen($input) {
        return p\Grapheme::grapheme_strlen($input);
    }
}
if (!function_exists('grapheme_strpos')) {
    function grapheme_strpos($haystack, $needle, $offset = 0) {
        return p\Grapheme::grapheme_strpos($haystack, $needle, $offset);
    }
}
if (!function_exists('grapheme_strripos')) {
    function grapheme_strripos($haystack, $needle, $offset = 0) {
        return p\Grapheme::grapheme_strripos($haystack, $needle, $offset);
    }
}
if (!function_exists('grapheme_strrpos')) {
    function grapheme_strrpos($haystack, $needle, $offset = 0) {
        return p\Grapheme::grapheme_strrpos($haystack, $needle, $offset);
    }
}
if (!function_exists('grapheme_strstr')) {
    function grapheme_strstr($haystack, $needle, $beforeNeedle = false) {
        return p\Grapheme::grapheme_strstr($haystack, $needle, $beforeNeedle);
    }
}
if (!function_exists('grapheme_substr')) {
    function grapheme_substr($string, $offset, $length = null) {
        return p\Grapheme::grapheme_substr($string, $offset, $length);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal