summaryrefslogtreecommitdiff
path: root/vendor/symfony/polyfill-intl-grapheme/bootstrap.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2024-08-13 23:45:21 +0200
committerpolo <ordipolo@gmx.fr>2024-08-13 23:45:21 +0200
commitbf6655a534a6775d30cafa67bd801276bda1d98d (patch)
treec6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/symfony/polyfill-intl-grapheme/bootstrap.php
parent94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff)
downloadAppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/symfony/polyfill-intl-grapheme/bootstrap.php')
-rw-r--r--vendor/symfony/polyfill-intl-grapheme/bootstrap.php58
1 files changed, 58 insertions, 0 deletions
diff --git a/vendor/symfony/polyfill-intl-grapheme/bootstrap.php b/vendor/symfony/polyfill-intl-grapheme/bootstrap.php
new file mode 100644
index 0000000..a9ea03c
--- /dev/null
+++ b/vendor/symfony/polyfill-intl-grapheme/bootstrap.php
@@ -0,0 +1,58 @@
1<?php
2
3/*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12use Symfony\Polyfill\Intl\Grapheme as p;
13
14if (extension_loaded('intl')) {
15 return;
16}
17
18if (\PHP_VERSION_ID >= 80000) {
19 return require __DIR__.'/bootstrap80.php';
20}
21
22if (!defined('GRAPHEME_EXTR_COUNT')) {
23 define('GRAPHEME_EXTR_COUNT', 0);
24}
25if (!defined('GRAPHEME_EXTR_MAXBYTES')) {
26 define('GRAPHEME_EXTR_MAXBYTES', 1);
27}
28if (!defined('GRAPHEME_EXTR_MAXCHARS')) {
29 define('GRAPHEME_EXTR_MAXCHARS', 2);
30}
31
32if (!function_exists('grapheme_extract')) {
33 function grapheme_extract($haystack, $size, $type = 0, $start = 0, &$next = 0) { return p\Grapheme::grapheme_extract($haystack, $size, $type, $start, $next); }
34}
35if (!function_exists('grapheme_stripos')) {
36 function grapheme_stripos($haystack, $needle, $offset = 0) { return p\Grapheme::grapheme_stripos($haystack, $needle, $offset); }
37}
38if (!function_exists('grapheme_stristr')) {
39 function grapheme_stristr($haystack, $needle, $beforeNeedle = false) { return p\Grapheme::grapheme_stristr($haystack, $needle, $beforeNeedle); }
40}
41if (!function_exists('grapheme_strlen')) {
42 function grapheme_strlen($input) { return p\Grapheme::grapheme_strlen($input); }
43}
44if (!function_exists('grapheme_strpos')) {
45 function grapheme_strpos($haystack, $needle, $offset = 0) { return p\Grapheme::grapheme_strpos($haystack, $needle, $offset); }
46}
47if (!function_exists('grapheme_strripos')) {
48 function grapheme_strripos($haystack, $needle, $offset = 0) { return p\Grapheme::grapheme_strripos($haystack, $needle, $offset); }
49}
50if (!function_exists('grapheme_strrpos')) {
51 function grapheme_strrpos($haystack, $needle, $offset = 0) { return p\Grapheme::grapheme_strrpos($haystack, $needle, $offset); }
52}
53if (!function_exists('grapheme_strstr')) {
54 function grapheme_strstr($haystack, $needle, $beforeNeedle = false) { return p\Grapheme::grapheme_strstr($haystack, $needle, $beforeNeedle); }
55}
56if (!function_exists('grapheme_substr')) {
57 function grapheme_substr($string, $offset, $length = null) { return p\Grapheme::grapheme_substr($string, $offset, $length); }
58}