|
| __construct (string $string='') |
|
| append (string ... $suffix) |
|
| chunk (int $length=1) |
|
| endsWith ($suffix) |
|
| equalsTo ($string) |
|
| indexOf ($needle, int $offset=0) |
|
| indexOfLast ($needle, int $offset=0) |
|
| join (array $strings, string $lastGlue=null) |
|
| length () |
|
| normalize (int $form=self::NFC) |
|
| prepend (string ... $prefix) |
|
| replace (string $from, string $to) |
|
| replaceMatches (string $fromRegexp, $to) |
|
| slice (int $start=0, int $length=null) |
|
| splice (string $replacement, int $start=0, int $length=null) |
|
| split (string $delimiter, int $limit=null, int $flags=null) |
|
| startsWith ($prefix) |
|
| __wakeup () |
|
| __clone () |
|
| ascii (array $rules=[]) |
|
| camel () |
|
| codePointsAt (int $offset) |
|
| folded (bool $compat=true) |
|
| join (array $strings, string $lastGlue=null) |
|
| lower () |
|
| match (string $regexp, int $flags=0, int $offset=0) |
|
| normalize (int $form=self::NFC) |
|
| padBoth (int $length, string $padStr=' ') |
|
| padEnd (int $length, string $padStr=' ') |
|
| padStart (int $length, string $padStr=' ') |
|
| replaceMatches (string $fromRegexp, $to) |
|
| reverse () |
|
| snake () |
|
| title (bool $allWords=false) |
|
| trim (string $chars=" \\\B\C\A0}\FEFF}") |
|
| trimEnd (string $chars=" \\\B\C\A0}\FEFF}") |
|
| trimPrefix ($prefix) |
|
| trimStart (string $chars=" \\\B\C\A0}\FEFF}") |
|
| trimSuffix ($suffix) |
|
| upper () |
|
| width (bool $ignoreAnsiDecoration=true) |
|
| __construct (string $string='') |
|
| after ($needle, bool $includeNeedle=false, int $offset=0) |
|
| afterLast ($needle, bool $includeNeedle=false, int $offset=0) |
|
| append (string ... $suffix) |
|
| before ($needle, bool $includeNeedle=false, int $offset=0) |
|
| beforeLast ($needle, bool $includeNeedle=false, int $offset=0) |
|
| bytesAt (int $offset) |
|
| camel () |
|
| chunk (int $length=1) |
|
| collapseWhitespace () |
|
| containsAny ($needle) |
|
| endsWith ($suffix) |
|
| ensureEnd (string $suffix) |
|
| ensureStart (string $prefix) |
|
| equalsTo ($string) |
|
| folded () |
|
| ignoreCase () |
|
| indexOf ($needle, int $offset=0) |
|
| indexOfLast ($needle, int $offset=0) |
|
| isEmpty () |
|
| join (array $strings, string $lastGlue=null) |
|
| jsonSerialize () |
|
| length () |
|
| lower () |
|
| match (string $regexp, int $flags=0, int $offset=0) |
|
| padBoth (int $length, string $padStr=' ') |
|
| padEnd (int $length, string $padStr=' ') |
|
| padStart (int $length, string $padStr=' ') |
|
| prepend (string ... $prefix) |
|
| repeat (int $multiplier) |
|
| replace (string $from, string $to) |
|
| replaceMatches (string $fromRegexp, $to) |
|
| reverse () |
|
| slice (int $start=0, int $length=null) |
|
| snake () |
|
| splice (string $replacement, int $start=0, int $length=null) |
|
| split (string $delimiter, int $limit=null, int $flags=null) |
|
| startsWith ($prefix) |
|
| title (bool $allWords=false) |
|
| toByteString (string $toEncoding=null) |
|
| toCodePointString () |
|
| toString () |
|
| toUnicodeString () |
|
| trim (string $chars=" \\\B\C\A0}\FEFF}") |
|
| trimEnd (string $chars=" \\\B\C\A0}\FEFF}") |
|
| trimPrefix ($prefix) |
|
| trimStart (string $chars=" \\\B\C\A0}\FEFF}") |
|
| trimSuffix ($suffix) |
|
| truncate (int $length, string $ellipsis='', bool $cut=true) |
|
| upper () |
|
| width (bool $ignoreAnsiDecoration=true) |
|
| wordwrap (int $width=75, string $break="\, bool $cut=false) |
|
| __sleep () |
|
| __clone () |
|
| __toString () |
|
Represents a string of Unicode grapheme clusters encoded as UTF-8.
A letter followed by combining characters (accents typically) form what Unicode defines as a grapheme cluster: a character as humans mean it in written texts. This class knows about the concept and won't split a letter apart from its combining accents. It also ensures all string comparisons happen on their canonically-composed representation, ignoring e.g. the order in which accents are listed when a letter has many of them.
- Voir également
- https://unicode.org/reports/tr15/
- Auteur
- Nicolas Grekas p@tch.nosp@m.work.nosp@m..com
-
Hugo Hamon hugoh.nosp@m.amon.nosp@m.@neuf.nosp@m..fr
- Exceptions
-