| 1 |
Symfony Polyfill / Intl: Grapheme |
| 2 |
================================= |
| 3 |
|
| 4 |
This component provides a partial, native PHP implementation of the |
| 5 |
[Grapheme functions](https://php.net/intl.grapheme) from the |
| 6 |
[Intl](https://php.net/intl) extension. |
| 7 |
|
| 8 |
- [`grapheme_extract`](https://php.net/grapheme_extract): Extract a sequence of grapheme |
| 9 |
clusters from a text buffer, which must be encoded in UTF-8 |
| 10 |
- [`grapheme_stripos`](https://php.net/grapheme_stripos): Find position (in grapheme units) |
| 11 |
of first occurrence of a case-insensitive string |
| 12 |
- [`grapheme_stristr`](https://php.net/grapheme_stristr): Returns part of haystack string |
| 13 |
from the first occurrence of case-insensitive needle to the end of haystack |
| 14 |
- [`grapheme_strlen`](https://php.net/grapheme_strlen): Get string length in grapheme units |
| 15 |
- [`grapheme_strpos`](https://php.net/grapheme_strpos): Find position (in grapheme units) |
| 16 |
of first occurrence of a string |
| 17 |
- [`grapheme_strripos`](https://php.net/grapheme_strripos): Find position (in grapheme units) |
| 18 |
of last occurrence of a case-insensitive string |
| 19 |
- [`grapheme_strrpos`](https://php.net/grapheme_strrpos): Find position (in grapheme units) |
| 20 |
of last occurrence of a string |
| 21 |
- [`grapheme_strstr`](https://php.net/grapheme_strstr): Returns part of haystack string from |
| 22 |
the first occurrence of needle to the end of haystack |
| 23 |
- [`grapheme_substr`](https://php.net/grapheme_substr): Return part of a string |
| 24 |
- [`grapheme_str_split`](https://php.net/grapheme_str_split): Splits a string into an array of individual or chunks of graphemes |
| 25 |
|
| 26 |
More information can be found in the |
| 27 |
[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md). |
| 28 |
|
| 29 |
License |
| 30 |
======= |
| 31 |
|
| 32 |
This library is released under the [MIT license](LICENSE). |