CodePointString
extends AbstractUnicodeString
in package
Represents a string of Unicode code points encoded as UTF-8.
Tags
Table of Contents
- NFC = Normalizer::NFC
- NFD = Normalizer::NFD
- NFKC = Normalizer::NFKC
- NFKD = Normalizer::NFKD
- PREG_OFFSET_CAPTURE = PREG_OFFSET_CAPTURE
- PREG_PATTERN_ORDER = PREG_PATTERN_ORDER
- PREG_SET_ORDER = PREG_SET_ORDER
- PREG_SPLIT = 0
- PREG_SPLIT_DELIM_CAPTURE = PREG_SPLIT_DELIM_CAPTURE
- PREG_SPLIT_NO_EMPTY = PREG_SPLIT_NO_EMPTY
- PREG_SPLIT_OFFSET_CAPTURE = PREG_SPLIT_OFFSET_CAPTURE
- PREG_UNMATCHED_AS_NULL = PREG_UNMATCHED_AS_NULL
- ASCII = " eiasntrolud][cmp' g|hv.fb,:=-q10C2*yx)(L9AS/P"EjMIk3>5T<D4}B{8FwR67UGN;JzV#HOW_&!K?XQ%Y\ Z+~^$@` "
- FOLD_FROM = ['İ', 'µ', 'ſ', "ͅ", 'ς', 'ϐ', 'ϑ', 'ϕ', 'ϖ', 'ϰ', 'ϱ', 'ϵ', 'ẛ', "ι", 'ß', 'İ', 'ʼn', 'ǰ', 'ΐ', 'ΰ', 'և', 'ẖ', 'ẗ', 'ẘ', 'ẙ', 'ẚ', 'ẞ', 'ὐ', 'ὒ', 'ὔ', 'ὖ', 'ᾀ', 'ᾁ', 'ᾂ', 'ᾃ', 'ᾄ', 'ᾅ', 'ᾆ', 'ᾇ', 'ᾈ', 'ᾉ', 'ᾊ', 'ᾋ', 'ᾌ', 'ᾍ', 'ᾎ', 'ᾏ', 'ᾐ', 'ᾑ', 'ᾒ', 'ᾓ', 'ᾔ', 'ᾕ', 'ᾖ', 'ᾗ', 'ᾘ', 'ᾙ', 'ᾚ', 'ᾛ', 'ᾜ', 'ᾝ', 'ᾞ', 'ᾟ', 'ᾠ', 'ᾡ', 'ᾢ', 'ᾣ', 'ᾤ', 'ᾥ', 'ᾦ', 'ᾧ', 'ᾨ', 'ᾩ', 'ᾪ', 'ᾫ', 'ᾬ', 'ᾭ', 'ᾮ', 'ᾯ', 'ᾲ', 'ᾳ', 'ᾴ', 'ᾶ', 'ᾷ', 'ᾼ', 'ῂ', 'ῃ', 'ῄ', 'ῆ', 'ῇ', 'ῌ', 'ῒ', 'ΐ', 'ῖ', 'ῗ', 'ῢ', 'ΰ', 'ῤ', 'ῦ', 'ῧ', 'ῲ', 'ῳ', 'ῴ', 'ῶ', 'ῷ', 'ῼ', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'ſt', 'st', 'ﬓ', 'ﬔ', 'ﬕ', 'ﬖ', 'ﬗ']
- FOLD_TO = ['i̇', 'μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', 'ṡ', 'ι', 'ss', 'i̇', 'ʼn', 'ǰ', 'ΐ', 'ΰ', 'եւ', 'ẖ', 'ẗ', 'ẘ', 'ẙ', 'aʾ', 'ss', 'ὐ', 'ὒ', 'ὔ', 'ὖ', 'ἀι', 'ἁι', 'ἂι', 'ἃι', 'ἄι', 'ἅι', 'ἆι', 'ἇι', 'ἀι', 'ἁι', 'ἂι', 'ἃι', 'ἄι', 'ἅι', 'ἆι', 'ἇι', 'ἠι', 'ἡι', 'ἢι', 'ἣι', 'ἤι', 'ἥι', 'ἦι', 'ἧι', 'ἠι', 'ἡι', 'ἢι', 'ἣι', 'ἤι', 'ἥι', 'ἦι', 'ἧι', 'ὠι', 'ὡι', 'ὢι', 'ὣι', 'ὤι', 'ὥι', 'ὦι', 'ὧι', 'ὠι', 'ὡι', 'ὢι', 'ὣι', 'ὤι', 'ὥι', 'ὦι', 'ὧι', 'ὰι', 'αι', 'άι', 'ᾶ', 'ᾶι', 'αι', 'ὴι', 'ηι', 'ήι', 'ῆ', 'ῆι', 'ηι', 'ῒ', 'ΐ', 'ῖ', 'ῗ', 'ῢ', 'ΰ', 'ῤ', 'ῦ', 'ῧ', 'ὼι', 'ωι', 'ώι',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', 'ʦ', 'ʪ', 'ʫ', 'ᴀ', 'ᴁ', 'ᴃ', 'ᴄ', 'ᴅ', 'ᴆ', 'ᴇ', 'ᴊ', 'ᴋ', 'ᴌ', 'ᴍ', 'ᴏ', 'ᴘ', 'ᴛ', 'ᴜ', 'ᴠ', 'ᴡ', 'ᴢ', 'ᵫ', 'ᵬ', 'ᵭ', 'ᵮ', 'ᵯ', 'ᵰ', 'ᵱ', 'ᵲ', 'ᵳ', 'ᵴ', 'ᵵ', 'ᵶ', 'ᵺ', 'ᵻ', 'ᵽ', 'ᵾ', 'ᶀ', 'ᶁ', 'ᶂ', 'ᶃ', 'ᶄ', 'ᶅ', 'ᶆ', 'ᶇ', 'ᶈ', 'ᶉ', 'ᶊ', 'ᶌ', 'ᶍ', 'ᶎ', 'ᶏ', 'ᶑ', 'ᶒ', 'ᶓ', 'ᶖ', 'ᶙ', 'ẚ', 'ẜ', 'ẝ', 'ẞ', 'Ỻ', 'ỻ', 'Ỽ', 'ỽ', 'Ỿ', 'ỿ', '©', '®', '₠', '₢', '₣', '₤', '₧', '₺', '₹', 'ℌ', '℞', '㎧', '㎮', '㏆', '㏗', '㏞', '㏟', '¼', '½', '¾', '⅓', '⅔', '⅕', '⅖', '⅗', '⅘', '⅙', '⅚', '⅛', '⅜', '⅝', '⅞', '⅟', '〇', '‘', '’', '‚', '‛', '“', '”', '„', '‟', '′', '″', '〝', '〞', '«', '»', '‹', '›', '‐', '‑', '‒', '–', '—', '―', '︱', '︲', '﹘', '‖', '⁄', '⁅', '⁆', '⁎', '、', '。', '〈', '〉', '《', '》', '〔', '〕', '〘', '〙', '〚', '〛', '︑', '︒', '︹', '︺', '︽', '︾', '︿', '﹀', '﹑', '﹝', '﹞', '⦅', '⦆', '。', '、', '×', '÷', '−', '∕', '∖', '∣', '∥', '≪', '≫', '⦅', '⦆']
- TRANSLIT_TO = ['AE', 'D', 'O', 'TH', 'ss', 'ae', 'd', 'o', 'th', 'D', 'd', 'H', 'h', 'i', 'q', 'L', 'l', 'L', 'l', ''n', 'N', 'n', 'OE', 'oe', 'T', 't', 'b', 'B', 'B', 'b', 'C', 'c', 'D', 'D', 'D', 'd', 'E', 'F', 'f', 'G', 'hv', 'I', 'I', 'K', 'k', 'l', 'N', 'n', 'OI', 'oi', 'P', 'p', 't', 'T', 't', 'T', 'V', 'Y', 'y', 'Z', 'z', 'DZ', 'Dz', 'dz', 'G', 'g', 'd', 'Z', 'z', 'l', 'n', 't', 'j', 'db', 'qp', 'A', 'C', 'c', 'L', 'T', 's', 'z', 'B', 'U', 'E', 'e', 'J', 'j', 'R', 'r', 'Y', 'y', 'b', 'c', 'd', 'd', 'e', 'j', 'g', 'g', 'G', 'h', 'h', 'i', 'I', 'l', 'l', 'l', 'm', 'n', 'n', 'N', 'OE', 'r', 'r', 'r', 'R', 's', 't', 'u', 'v', 'Y', 'z', 'z', 'B', 'G', 'H', 'j', 'L', 'q', 'dz', 'dz', 'ts', 'ls', 'lz', 'A', 'AE', 'B', 'C', 'D', 'D', 'E', 'J', 'K', 'L', 'M', 'O', 'P', 'T', 'U', 'V', 'W', 'Z', 'ue', 'b', 'd', 'f', 'm', 'n', 'p', 'r', 'r', 's', 't', 'z', 'th', 'I', 'p', 'U', 'b', 'd', 'f', 'g', 'k', 'l', 'm', 'n', 'p', 'r', 's', 'v', 'x', 'z', 'a', 'd', 'e', 'e', 'i', 'u', 'a', 's', 's', 'SS', 'LL', 'll', 'V', 'v', 'Y', 'y', '(C)', '(R)', 'CE', 'Cr', 'Fr.', 'L.', 'Pts', 'TL', 'Rs', 'x', 'Rx', 'm/s', 'rad/s', 'C/kg', 'pH', 'V/m', 'A/m', ' 1/4', ' 1/2', ' 3/4', ' 1/3', ' 2/3', ' 1/5', ' 2/5', ' 3/5', ' 4/5', ' 1/6', ' 5/6', ' 1/8', ' 3/8', ' 5/8', ' 7/8', ' 1/', '0', ''', ''', ',', ''', '"', '"', ',,', '"', ''', '"', '"', '"', '<<', '>>', '<', '>', '-', '-', '-', '-', '-', '-', '-', '-', '-', '||', '/', '[', ']', '*', ',', '.', '<', '>', '<<', '>>', '[', ']', '[', ']', '[', ']', ',', '.', '[', ']', '<<', '>>', '<', '>', ',', '[', ']', '((', '))', '.', ',', '*', '/', '-', '/', '\', '|', '||', '<<', '>>', '((', '))']
- UPPER_FROM = ['ß', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'ſt', 'st', 'և', 'ﬓ', 'ﬔ', 'ﬕ', 'ﬖ', 'ﬗ', 'ʼn', 'ΐ', 'ΰ', 'ǰ', 'ẖ', 'ẗ', 'ẘ', 'ẙ', 'ẚ', 'ὐ', 'ὒ', 'ὔ', 'ὖ', 'ᾶ', 'ῆ', 'ῒ', 'ΐ', 'ῖ', 'ῗ', 'ῢ', 'ΰ', 'ῤ', 'ῦ', 'ῧ', 'ῶ']
- UPPER_TO = ['SS', 'FF', 'FI', 'FL', 'FFI', 'FFL', 'ST', 'ST', 'ԵՒ', 'ՄՆ', 'ՄԵ', 'ՄԻ', 'ՎՆ', 'ՄԽ', 'ʼN', 'Ϊ́', 'Ϋ́', 'J̌', 'H̱', 'T̈', 'W̊', 'Y̊', 'Aʾ', 'Υ̓', 'Υ̓̀', 'Υ̓́', 'Υ̓͂', 'Α͂', 'Η͂', 'Ϊ̀', 'Ϊ́', 'Ι͂', 'Ϊ͂', 'Ϋ̀', 'Ϋ́', 'Ρ̓', 'Υ͂', 'Ϋ͂', 'Ω͂']
- $ignoreCase : mixed
- $string : mixed
- $transliterators : mixed
- __clone() : mixed
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __toString() : string
- after() : static
- afterLast() : static
- append() : AbstractString
- ascii() : self
- Generic UTF-8 to ASCII transliteration.
- before() : static
- beforeLast() : static
- bytesAt() : array<string|int, int>
- camel() : static
- chunk() : array<string|int, mixed>
- codePointsAt() : array<string|int, int>
- collapseWhitespace() : static
- containsAny() : bool
- endsWith() : bool
- ensureEnd() : static
- ensureStart() : static
- equalsTo() : bool
- folded() : static
- fromCodePoints() : static
- ignoreCase() : static
- indexOf() : int|null
- indexOfLast() : int|null
- isEmpty() : bool
- join() : static
- jsonSerialize() : string
- length() : int
- lower() : static
- match() : array<string|int, mixed>
- Matches the string using a regular expression.
- normalize() : static
- padBoth() : static
- padEnd() : static
- padStart() : static
- prepend() : AbstractString
- repeat() : static
- replace() : AbstractString
- replaceMatches() : static
- reverse() : static
- slice() : AbstractString
- snake() : static
- splice() : AbstractString
- split() : array<string|int, mixed>
- startsWith() : bool
- title() : static
- toByteString() : ByteString
- toCodePointString() : CodePointString
- toString() : string
- toUnicodeString() : UnicodeString
- trim() : static
- trimEnd() : static
- trimStart() : static
- truncate() : static
- unwrap() : array<string|int, string>|array<string|int, mixed>
- Unwraps instances of AbstractString back to strings.
- upper() : static
- width() : int
- Returns the printable length on a terminal.
- wordwrap() : static
- wrap() : array<string|int, static>|array<string|int, mixed>
- Wraps (and normalizes) strings in instances of AbstractString.
- pad() : static
- wcswidth() : int
- Based on https://github.com/jquast/wcwidth, a Python implementation of https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c.
Constants
NFC
public
mixed
NFC
= Normalizer::NFC
NFD
public
mixed
NFD
= Normalizer::NFD
NFKC
public
mixed
NFKC
= Normalizer::NFKC
NFKD
public
mixed
NFKD
= Normalizer::NFKD
PREG_OFFSET_CAPTURE
public
mixed
PREG_OFFSET_CAPTURE
= PREG_OFFSET_CAPTURE
PREG_PATTERN_ORDER
public
mixed
PREG_PATTERN_ORDER
= PREG_PATTERN_ORDER
PREG_SET_ORDER
public
mixed
PREG_SET_ORDER
= PREG_SET_ORDER
PREG_SPLIT
public
mixed
PREG_SPLIT
= ""
PREG_SPLIT_DELIM_CAPTURE
public
mixed
PREG_SPLIT_DELIM_CAPTURE
= PREG_SPLIT_DELIM_CAPTURE
PREG_SPLIT_NO_EMPTY
public
mixed
PREG_SPLIT_NO_EMPTY
= PREG_SPLIT_NO_EMPTY
PREG_SPLIT_OFFSET_CAPTURE
public
mixed
PREG_SPLI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 'fi', 'fl', 'ffi', 'ffl', 'ſt', 'st', 'ﬓ', 'ﬔ', 'ﬕ', 'ﬖ', 'ﬗ']
FOLD_TO
private
mixed
FOLD_TO
= ['i̇', 'μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', 'ṡ', 'ι', 'ss', 'i̇', 'ʼn', 'ǰ', 'ΐ', 'ΰ', 'եւ', 'ẖ', 'ẗ', 'ẘ', 'ẙ', 'aʾ', 'ss', 'ὐ', 'ὒ', 'ὔ', 'ὖ', 'ἀι', 'ἁι', 'ἂι', 'ἃι', 'ἄι', 'ἅι', 'ἆι', 'ἇι', 'ἀι', 'ἁι', 'ἂι', 'ἃι', 'ἄι', 'ἅι', 'ἆι', 'ἇι', 'ἠι', 'ἡι', 'ἢι', 'ἣι', 'ἤι', 'ἥι', 'ἦι', 'ἧι', 'ἠι', 'ἡι', 'ἢι', 'ἣι', 'ἤι', 'ἥι', 'ἦι', 'ἧι', 'ὠι', 'ὡι', 'ὢι', 'ὣι', 'ὤι', 'ὥι', 'ὦι', 'ὧι', 'ὠι', 'ὡι', 'ὢι', 'ὣι', 'ὤι', 'ὥι', 'ὦι', 'ὧι', 'ὰι', 'αι', 'άι', 'ᾶ', 'ᾶι', 'αι', 'ὴι', 'ηι', 'ήι', 'ῆ', 'ῆι', 'ηι', 'ῒ', 'ΐ', 'ῖ', 'ῗ', 'ῢ', 'ΰ', 'ῤ', 'ῦ', 'ῧ', 'ὼι', 'ωι', 'ώι', 'ῶ', 'ῶι', 'ωι', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'st', 'st', 'մն', 'մե', 'մի', 'վն', 'մխ']
TRANSLIT_FROM
private
mixed
TRANSLIT_FROM
= ['Æ', 'Ð', 'Ø', 'Þ', 'ß', 'æ', 'ð', 'ø', 'þ', 'Đ', 'đ', 'Ħ', 'ħ', 'ı', 'ĸ', 'Ŀ', 'ŀ', 'Ł', 'ł', 'ʼn', 'Ŋ', 'ŋ', 'Œ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 'ᵳ', 'ᵴ', 'ᵵ', 'ᵶ', 'ᵺ', 'ᵻ', 'ᵽ', 'ᵾ', 'ᶀ', 'ᶁ', 'ᶂ', 'ᶃ', 'ᶄ', 'ᶅ', 'ᶆ', 'ᶇ', 'ᶈ', 'ᶉ', 'ᶊ', 'ᶌ', 'ᶍ', 'ᶎ', 'ᶏ', 'ᶑ', 'ᶒ', 'ᶓ', 'ᶖ', 'ᶙ', 'ẚ', 'ẜ', 'ẝ', 'ẞ', 'Ỻ', 'ỻ', 'Ỽ', 'ỽ', 'Ỿ', 'ỿ', '©', '®', '₠', '₢', '₣', '₤', '₧', '₺', '₹', 'ℌ', '℞', '㎧', '㎮', '㏆', '㏗', '㏞', '㏟', '¼', '½', '¾', '⅓', '⅔', '⅕', '⅖', '⅗', '⅘', '⅙', '⅚', '⅛', '⅜', '⅝', '⅞', '⅟', '〇', '‘', '’', '‚', '‛', '“', '”', '„', '‟', '′', '″', '〝', '〞', '«', '»', '‹', '›', '‐', '‑', '‒', '–', '—', '―', '︱', '︲', '﹘', '‖', '⁄', '⁅', '⁆', '⁎', '、', '。', '〈', '〉', '《', '》', '〔', '〕', '〘', '〙', '〚', '〛', '︑', '︒', '︹', '︺', '︽', '︾', '︿', '﹀', '﹑', '﹝', '﹞', '⦅', '⦆', '。', '、', '×', '÷', '−', '∕', '∖', '∣', '∥', '≪', '≫', '⦅', '⦆']
TRANSLIT_TO
private
mixed
TRANSLIT_TO
= ['AE', 'D', 'O', 'TH', 'ss', 'ae', 'd', 'o', 'th', 'D', 'd', 'H', 'h', 'i', 'q', 'L', 'l', 'L', 'l', ''n', 'N', 'n', 'OE', 'oe', 'T', 't', 'b', 'B', 'B', 'b', 'C', 'c', 'D', 'D', 'D', 'd', 'E', 'F', 'f', 'G', 'hv', 'I', 'I', 'K', 'k', 'l', 'N', 'n', 'OI', 'oi', 'P', 'p', 't', 'T', 't', 'T', 'V', 'Y', 'y', 'Z', 'z', 'DZ', 'Dz', 'dz', 'G', 'g', 'd', 'Z', 'z', 'l', 'n', 't', 'j', 'db', 'qp', 'A', 'C', 'c', 'L', 'T', 's', 'z', 'B', 'U', 'E', 'e', 'J', 'j', 'R', 'r', 'Y', 'y', 'b', 'c', 'd', 'd', 'e', 'j', 'g', 'g', 'G', 'h', 'h', 'i', 'I', 'l', 'l', 'l', 'm', 'n', 'n', 'N', 'OE', 'r', 'r', 'r', 'R', 's', 't', 'u', 'v', 'Y', 'z', 'z', 'B', 'G', 'H', 'j', 'L', 'q', 'dz', 'dz', 'ts', 'ls', 'lz', 'A', 'AE', 'B', 'C', 'D', 'D', 'E', 'J', 'K', 'L', 'M', 'O', 'P', 'T', 'U', 'V', 'W', 'Z', 'ue', 'b', 'd', 'f', 'm', 'n', 'p', 'r', 'r', 's', 't', 'z', 'th', 'I', 'p', 'U', 'b', 'd', 'f', 'g', 'k', 'l', 'm', 'n', 'p', 'r', 's', 'v', 'x', 'z', 'a', 'd', 'e', 'e', 'i', 'u', 'a', 's', 's', 'SS', 'LL', 'll', 'V', 'v', 'Y', 'y', '(C)', '(R)', 'CE', 'Cr', 'Fr.', 'L.', 'Pts', 'TL', 'Rs', 'x', 'Rx', 'm/s', 'rad/s', 'C/kg', 'pH', 'V/m', 'A/m', ' 1/4', ' 1/2', ' 3/4', ' 1/3', ' 2/3', ' 1/5', ' 2/5', ' 3/5', ' 4/5', ' 1/6', ' 5/6', ' 1/8', ' 3/8', ' 5/8', ' 7/8', ' 1/', '0', ''', ''', ',', ''', '"', '"', ',,', '"', ''', '"', '"', '"', '<<', '>>', '<', '>', '-', '-', '-', '-', '-', '-', '-', '-', '-', '||', '/', '[', ']', '*', ',', '.', '<', '>', '<<', '>>', '[', ']', '[', ']', '[', ']', ',', '.', '[', ']', '<<', '>>', '<', '>', ',', '[', ']', '((', '))', '.', ',', '*', '/', '-', '/', '\', '|', '||', '<<', '>>', '((', '))']
UPPER_FROM
private
mixed
UPPER_FROM
= ['ß', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'ſt', 'st', 'և', 'ﬓ', 'ﬔ', 'ﬕ', 'ﬖ', 'ﬗ', 'ʼn', 'ΐ', 'ΰ', 'ǰ', 'ẖ', 'ẗ', 'ẘ', 'ẙ', 'ẚ', 'ὐ', 'ὒ', 'ὔ', 'ὖ', 'ᾶ', 'ῆ', 'ῒ', 'ΐ', 'ῖ', 'ῗ', 'ῢ', 'ΰ', 'ῤ', 'ῦ', 'ῧ', 'ῶ']
UPPER_TO
private
mixed
UPPER_TO
= ['SS', 'FF', 'FI', 'FL', 'FFI', 'FFL', 'ST', 'ST', 'ԵՒ', 'ՄՆ', 'ՄԵ', 'ՄԻ', 'ՎՆ', 'ՄԽ', 'ʼN', 'Ϊ́', 'Ϋ́', 'J̌', 'H̱', 'T̈', 'W̊', 'Y̊', 'Aʾ', 'Υ̓', 'Υ̓̀', 'Υ̓́', 'Υ̓͂', 'Α͂', 'Η͂', 'Ϊ̀', 'Ϊ́', 'Ι͂', 'Ϊ͂', 'Ϋ̀', 'Ϋ́', 'Ρ̓', 'Υ͂', 'Ϋ͂', 'Ω͂']
Properties
$ignoreCase
protected
mixed
$ignoreCase
= false
$string
protected
mixed
$string
= ''
$transliterators
private
static mixed
$transliterators
= []
Methods
__clone()
public
__clone() : mixed
Return values
mixed —__construct()
public
__construct([string $string = '' ]) : mixed
Parameters
- $string : string = ''
Return values
mixed —__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed> —__toString()
public
__toString() : string
Return values
string —after()
public
after(string|array<string|int, string> $needle[, bool $includeNeedle = false ], int $offset) : static
Parameters
- $needle : string|array<string|int, string>
- $includeNeedle : bool = false
- $offset : int
Return values
static —afterLast()
public
afterLast(string|array<string|int, string> $needle[, bool $includeNeedle = false ], int $offset) : static
Parameters
- $needle : string|array<string|int, string>
- $includeNeedle : bool = false
- $offset : int
Return values
static —append()
public
append(string ...$suffix) : AbstractString
Parameters
- $suffix : string
Return values
AbstractString —ascii()
Generic UTF-8 to ASCII transliteration.
public
ascii([array<string|int, string>|array<string|int, Transliterator>|array<string|int, Closure> $rules = [] ]) : self
Install the intl extension for best results.
Parameters
- $rules : array<string|int, string>|array<string|int, Transliterator>|array<string|int, Closure> = []
-
See "*-Latin" rules from Transliterator::listIDs()
Return values
self —before()
public
before(string|array<string|int, string> $needle[, bool $includeNeedle = false ], int $offset) : static
Parameters
- $needle : string|array<string|int, string>
- $includeNeedle : bool = false
- $offset : int
Return values
static —beforeLast()
public
beforeLast(string|array<string|int, string> $needle[, bool $includeNeedle = false ], int $offset) : static
Parameters
- $needle : string|array<string|int, string>
- $includeNeedle : bool = false
- $offset : int
Return values
static —bytesAt()
public
bytesAt(int $offset) : array<string|int, int>
Parameters
- $offset : int
Return values
array<string|int, int> —camel()
public
abstract camel() : static
Return values
static —chunk()
public
chunk([int $length = 1 ]) : array<string|int, mixed>
Parameters
- $length : int = 1
Return values
array<string|int, mixed> —codePointsAt()
public
codePointsAt(int $offset) : array<string|int, int>
Parameters
- $offset : int
Return values
array<string|int, int> —collapseWhitespace()
public
collapseWhitespace() : static
Return values
static —containsAny()
public
containsAny(string|array<string|int, string> $needle) : bool
Parameters
- $needle : string|array<string|int, string>
Return values
bool —endsWith()
public
endsWith(mixed $suffix) : bool
Parameters
- $suffix : mixed
Return values
bool —ensureEnd()
public
ensureEnd(string $suffix) : static
Parameters
- $suffix : string
Return values
static —ensureStart()
public
ensureStart(string $prefix) : static
Parameters
- $prefix : string
Return values
static —equalsTo()
public
equalsTo(mixed $string) : bool
Parameters
- $string : mixed
Return values
bool —folded()
public
abstract folded() : static
Return values
static —fromCodePoints()
public
static fromCodePoints(int ...$codes) : static
Parameters
- $codes : int
Return values
static —ignoreCase()
public
ignoreCase() : static
Return values
static —indexOf()
public
indexOf(mixed $needle, int $offset) : int|null
Parameters
- $needle : mixed
- $offset : int
Return values
int|null —indexOfLast()
public
indexOfLast(mixed $needle, int $offset) : int|null
Parameters
- $needle : mixed
- $offset : int
Return values
int|null —isEmpty()
public
isEmpty() : bool
Return values
bool —join()
public
abstract join(array<string|int, mixed> $strings[, string $lastGlue = null ]) : static
Parameters
- $strings : array<string|int, mixed>
- $lastGlue : string = null
Return values
static —jsonSerialize()
public
jsonSerialize() : string
Return values
string —length()
public
length() : int
Return values
int —lower()
public
abstract lower() : static
Return values
static —match()
Matches the string using a regular expression.
public
abstract match(string $regexp, int $flags, int $offset) : array<string|int, mixed>
Pass PREG_PATTERN_ORDER or PREG_SET_ORDER as $flags to get all occurrences matching the regular expression.
Parameters
- $regexp : string
- $flags : int
- $offset : int
Return values
array<string|int, mixed> —All matches in a multi-dimensional array ordered according to flags
normalize()
public
normalize([int $form = self::NFC ]) : static
Parameters
- $form : int = self::NFC
Return values
static —padBoth()
public
abstract padBoth(int $length[, string $padStr = ' ' ]) : static
Parameters
- $length : int
- $padStr : string = ' '
Return values
static —padEnd()
public
abstract padEnd(int $length[, string $padStr = ' ' ]) : static
Parameters
- $length : int
- $padStr : string = ' '
Return values
static —padStart()
public
abstract padStart(int $length[, string $padStr = ' ' ]) : static
Parameters
- $length : int
- $padStr : string = ' '
Return values
static —prepend()
public
prepend(string ...$prefix) : AbstractString
Parameters
- $prefix : string
Return values
AbstractString —repeat()
public
repeat(int $multiplier) : static
Parameters
- $multiplier : int
Return values
static —replace()
public
replace(string $from, string $to) : AbstractString
Parameters
- $from : string
- $to : string
Return values
AbstractString —replaceMatches()
public
abstract replaceMatches(string $fromRegexp, string|callable $to) : static
Parameters
- $fromRegexp : string
- $to : string|callable
Return values
static —reverse()
public
abstract reverse() : static
Return values
static —slice()
public
slice(int $start[, int $length = null ]) : AbstractString
Parameters
- $start : int
- $length : int = null
Return values
AbstractString —snake()
public
abstract snake() : static
Return values
static —splice()
public
splice(string $replacement, int $start[, int $length = null ]) : AbstractString
Parameters
- $replacement : string
- $start : int
- $length : int = null
Return values
AbstractString —split()
public
split(string $delimiter[, int $limit = null ][, int $flags = null ]) : array<string|int, mixed>
Parameters
- $delimiter : string
- $limit : int = null
- $flags : int = null
Return values
array<string|int, mixed> —startsWith()
public
startsWith(mixed $prefix) : bool
Parameters
- $prefix : mixed
Return values
bool —title()
public
abstract title([bool $allWords = false ]) : static
Parameters
- $allWords : bool = false
Return values
static —toByteString()
public
toByteString([string $toEncoding = null ]) : ByteString
Parameters
- $toEncoding : string = null
Return values
ByteString —toCodePointString()
public
toCodePointString() : CodePointString
Return values
CodePointString —toString()
public
toString() : string
Return values
string —toUnicodeString()
public
toUnicodeString() : UnicodeString
Return values
UnicodeString —trim()
public
abstract trim([string $chars = "
" ]) : static
Parameters
- $chars : string = " "
Return values
static —trimEnd()
public
abstract trimEnd([string $chars = "
" ]) : static
Parameters
- $chars : string = " "
Return values
static —trimStart()
public
abstract trimStart([string $chars = "
" ]) : static
Parameters
- $chars : string = " "
Return values
static —truncate()
public
truncate(int $length[, string $ellipsis = '' ][, bool $cut = true ]) : static
Parameters
- $length : int
- $ellipsis : string = ''
- $cut : bool = true
Return values
static —unwrap()
Unwraps instances of AbstractString back to strings.
public
static unwrap(array<string|int, mixed> $values) : array<string|int, string>|array<string|int, mixed>
Parameters
- $values : array<string|int, mixed>
Return values
array<string|int, string>|array<string|int, mixed> —upper()
public
abstract upper() : static
Return values
static —width()
Returns the printable length on a terminal.
public
abstract width([bool $ignoreAnsiDecoration = true ]) : int
Parameters
- $ignoreAnsiDecoration : bool = true
Return values
int —wordwrap()
public
wordwrap([int $width = 75 ][, string $break = "
" ][, bool $cut = false ]) : static
Parameters
- $width : int = 75
- $break : string = " "
- $cut : bool = false
Return values
static —wrap()
Wraps (and normalizes) strings in instances of AbstractString.
public
static wrap(array<string|int, mixed> $values) : array<string|int, static>|array<string|int, mixed>
Parameters
- $values : array<string|int, mixed>
Return values
array<string|int, static>|array<string|int, mixed> —pad()
private
pad(int $len, self $pad, int $type) : static
Parameters
- $len : int
- $pad : self
- $type : int
Return values
static —wcswidth()
Based on https://github.com/jquast/wcwidth, a Python implementation of https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c.
private
wcswidth(string $string) : int
Parameters
- $string : string