Erebot
latest
A modular IRC bot for PHP 7.0+
|
A wrapper to easily split a string using a separator and deal with other operations related to separators. More...
Public Member Functions | |
__construct ($text) | |
__toString () | |
count () | |
countTokens ($separator= ' ') | |
current () | |
getTokens ($start, $length=0, $separator= ' ') | |
key () | |
next () | |
offsetExists ($offset) | |
offsetGet ($offset) | |
offsetSet ($offset, $value) | |
offsetUnset ($offset) | |
rewind () | |
valid () | |
Protected Attributes | |
$position | |
Position in the text. | |
$text | |
The text wrapped by this instance. | |
A wrapper to easily split a string using a separator and deal with other operations related to separators.
Definition at line 28 of file TextWrapper.php.
Erebot\TextWrapper::__construct | ( | $text | ) |
Constructs a new instance of a text wrapper.
string | $text | The text to wrap. |
Definition at line 42 of file TextWrapper.php.
Erebot\TextWrapper::count | ( | ) |
Definition at line 78 of file TextWrapper.php.
Erebot\TextWrapper::current | ( | ) |
Definition at line 84 of file TextWrapper.php.
Erebot\TextWrapper::key | ( | ) |
Definition at line 90 of file TextWrapper.php.
Erebot\TextWrapper::next | ( | ) |
Definition at line 96 of file TextWrapper.php.
Erebot\TextWrapper::offsetExists | ( | $offset | ) |
Definition at line 114 of file TextWrapper.php.
Erebot\TextWrapper::offsetGet | ( | $offset | ) |
Definition at line 124 of file TextWrapper.php.
Erebot\TextWrapper::offsetSet | ( | $offset, | |
$value | |||
) |
Definition at line 133 of file TextWrapper.php.
Erebot\TextWrapper::offsetUnset | ( | $offset | ) |
Definition at line 139 of file TextWrapper.php.
Erebot\TextWrapper::rewind | ( | ) |
Definition at line 102 of file TextWrapper.php.
Erebot\TextWrapper::valid | ( | ) |
Definition at line 108 of file TextWrapper.php.