Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__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 () | |
Fonctions membres publiques statiques | |
static | unwrap (array $values) |
static | wrap (array $values) |
Champs de données | |
const | PREG_PATTERN_ORDER = \PREG_PATTERN_ORDER |
const | PREG_SET_ORDER = \PREG_SET_ORDER |
const | PREG_OFFSET_CAPTURE = \PREG_OFFSET_CAPTURE |
const | PREG_UNMATCHED_AS_NULL = \PREG_UNMATCHED_AS_NULL |
const | PREG_SPLIT = 0 |
const | PREG_SPLIT_NO_EMPTY = \PREG_SPLIT_NO_EMPTY |
const | PREG_SPLIT_DELIM_CAPTURE = \PREG_SPLIT_DELIM_CAPTURE |
const | PREG_SPLIT_OFFSET_CAPTURE = \PREG_SPLIT_OFFSET_CAPTURE |
Attributs protégés | |
$string = '' | |
$ignoreCase = false | |
Represents a string of abstract characters.
Unicode defines 3 types of "characters" (bytes, code points and grapheme clusters). This class is the abstract type to use as a type-hint when the logic you want to implement doesn't care about the exact variant it deals with.
ExceptionInterface |
|
abstract |
__clone | ( | ) |
Références AbstractString\ignoreCase().
__sleep | ( | ) |
__toString | ( | ) |
Références AbstractString\$string.
after | ( | $needle, | |
bool | $includeNeedle = false , |
||
int | $offset = 0 |
||
) |
string|string[] | $needle |
Références $i, $n, Joomla\Database\Query\$offset, $this, AbstractString\indexOf(), null, et AbstractString\slice().
afterLast | ( | $needle, | |
bool | $includeNeedle = false , |
||
int | $offset = 0 |
||
) |
string|string[] | $needle |
Références $i, $n, Joomla\Database\Query\$offset, $this, AbstractString\indexOfLast(), null, et AbstractString\slice().
|
abstract |
Référencé par AbstractString\ensureEnd().
before | ( | $needle, | |
bool | $includeNeedle = false , |
||
int | $offset = 0 |
||
) |
string|string[] | $needle |
Références $i, $n, Joomla\Database\Query\$offset, $this, AbstractString\indexOf(), null, et AbstractString\slice().
beforeLast | ( | $needle, | |
bool | $includeNeedle = false , |
||
int | $offset = 0 |
||
) |
string|string[] | $needle |
Références $i, $n, Joomla\Database\Query\$offset, $this, AbstractString\indexOfLast(), null, et AbstractString\slice().
bytesAt | ( | int | $offset | ) |
Références AbstractString\slice().
|
abstract |
|
abstract |
collapseWhitespace | ( | ) |
Références $this, et AbstractString\trim().
containsAny | ( | $needle | ) |
string|string[] | $needle |
Références AbstractString\indexOf(), et null.
endsWith | ( | $suffix | ) |
string|string[] | $suffix |
Référencé par AbstractString\ensureEnd().
ensureEnd | ( | string | $suffix | ) |
Références $suffix, AbstractString\append(), AbstractString\endsWith(), et AbstractString\replaceMatches().
ensureStart | ( | string | $prefix | ) |
Références $i, $prefix, $this, AbstractString\indexOf(), AbstractString\prepend(), et AbstractString\startsWith().
equalsTo | ( | $string | ) |
string|string[] | $string |
Références AbstractString\$string, et class.
|
abstract |
ignoreCase | ( | ) |
Références $this.
Référencé par UnicodeString\__clone(), AbstractString\__clone(), CodePointString\endsWith(), UnicodeString\endsWith(), ByteString\endsWith(), CodePointString\equalsTo(), UnicodeString\equalsTo(), ByteString\equalsTo(), CodePointString\indexOf(), UnicodeString\indexOf(), ByteString\indexOf(), CodePointString\indexOfLast(), UnicodeString\indexOfLast(), ByteString\indexOfLast(), ByteString\match(), CodePointString\replace(), UnicodeString\replace(), ByteString\replace(), ByteString\replaceMatches(), CodePointString\split(), UnicodeString\split(), ByteString\split(), AbstractString\split(), CodePointString\startsWith(), UnicodeString\startsWith(), ByteString\startsWith(), AbstractString\trimPrefix(), et AbstractString\trimSuffix().
indexOf | ( | $needle, | |
int | $offset = 0 |
||
) |
string|string[] | $needle |
Références $i, $n, Joomla\Database\Query\$offset, class, et null.
Référencé par AbstractString\after(), AbstractString\before(), AbstractString\containsAny(), AbstractString\ensureStart(), et AbstractString\truncate().
indexOfLast | ( | $needle, | |
int | $offset = 0 |
||
) |
string|string[] | $needle |
Références $i, $n, Joomla\Database\Query\$offset, class, et null.
Référencé par AbstractString\afterLast(), et AbstractString\beforeLast().
isEmpty | ( | ) |
Références AbstractString\$string.
|
abstract |
jsonSerialize | ( | ) |
Références AbstractString\$string.
|
abstract |
Référencé par AbstractString\truncate().
|
abstract |
|
abstract |
Matches the string using a regular expression.
Pass PREG_PATTERN_ORDER or PREG_SET_ORDER as $flags to get all occurrences matching the regular expression.
|
abstract |
|
abstract |
|
abstract |
|
abstract |
Référencé par AbstractString\ensureStart().
repeat | ( | int | $multiplier | ) |
Références $this.
|
abstract |
|
abstract |
|
abstract |
|
abstract |
Référencé par AbstractString\after(), AbstractString\afterLast(), AbstractString\before(), AbstractString\beforeLast(), AbstractString\bytesAt(), et AbstractString\truncate().
|
abstract |
|
abstract |
Références $limit, $this, AbstractString\ignoreCase(), et null.
Référencé par AbstractString\wordwrap().
startsWith | ( | $prefix | ) |
string|string[] | $prefix |
Référencé par AbstractString\ensureStart().
|
abstract |
toByteString | ( | string | $toEncoding = null | ) |
Références $b, AbstractString\$string, $this, et null.
toCodePointString | ( | ) |
Référencé par ByteString\toUnicodeString().
toString | ( | ) |
Références AbstractString\$string.
toUnicodeString | ( | ) |
|
abstract |
Référencé par AbstractString\collapseWhitespace().
|
abstract |
trimPrefix | ( | $prefix | ) |
string|string[] | $prefix |
Références $prefix, $this, et AbstractString\ignoreCase().
|
abstract |
trimSuffix | ( | $suffix | ) |
string|string[] | $suffix |
Références $suffix, $this, AbstractString\ignoreCase(), et null.
truncate | ( | int | $length, |
string | $ellipsis = '' , |
||
bool | $cut = true |
||
) |
Références $this, AbstractString\indexOf(), AbstractString\length(), null, et AbstractString\slice().
|
static |
|
abstract |
|
abstract |
Returns the printable length on a terminal.
wordwrap | ( | int | $width = 75 , |
string | $break = "\n" , |
||
bool | $cut = false |
||
) |
Références $b, $i, AbstractString\$string, $this, $width, et AbstractString\split().
|
static |
Wraps (and normalizes) strings in instances of AbstractString.
|
protected |
|
protected |
Référencé par CodePointString\__construct(), ByteString\__construct(), UnicodeString\__construct(), AbstractString\__toString(), CodePointString\equalsTo(), UnicodeString\equalsTo(), ByteString\equalsTo(), AbstractString\equalsTo(), AbstractUnicodeString\fromCodePoints(), UnicodeString\indexOfLast(), AbstractString\isEmpty(), AbstractString\jsonSerialize(), ByteString\replaceMatches(), UnicodeString\split(), AbstractString\toByteString(), ByteString\toCodePointString(), AbstractString\toString(), ByteString\width(), et AbstractString\wordwrap().
const PREG_OFFSET_CAPTURE = \PREG_OFFSET_CAPTURE |
const PREG_PATTERN_ORDER = \PREG_PATTERN_ORDER |
Référencé par ByteString\match().
const PREG_SET_ORDER = \PREG_SET_ORDER |
Référencé par ByteString\match().
const PREG_SPLIT = 0 |
const PREG_SPLIT_DELIM_CAPTURE = \PREG_SPLIT_DELIM_CAPTURE |
Référencé par CodePointString\chunk(), et UnicodeString\chunk().
const PREG_SPLIT_NO_EMPTY = \PREG_SPLIT_NO_EMPTY |
Référencé par CodePointString\chunk(), et UnicodeString\chunk().
const PREG_SPLIT_OFFSET_CAPTURE = \PREG_SPLIT_OFFSET_CAPTURE |
const PREG_UNMATCHED_AS_NULL = \PREG_UNMATCHED_AS_NULL |
Référencé par ByteString\match().