MediaWiki
1.28.0
|
An iterator which works exactly like: More...
Public Member Functions | |
__construct ($delim, $subject) | |
Construct a DelimIterator. More... | |
current () | |
key () | |
next () | |
refreshCurrent () | |
rewind () | |
valid () | |
Public Attributes | |
$delimLength | |
$subjectLength | |
Private Attributes | |
$curPos | |
$current | |
$delim | |
$endPos | |
$subject | |
An iterator which works exactly like:
foreach ( explode( $delim, $s ) as $element ) { ... }
Except it doesn't use 193 byte per element
Definition at line 30 of file ExplodeIterator.php.
ExplodeIterator::__construct | ( | $delim, | |
$subject | |||
) |
Construct a DelimIterator.
string | $delim | |
string | $subject |
Definition at line 51 of file ExplodeIterator.php.
ExplodeIterator::current | ( | ) |
Definition at line 80 of file ExplodeIterator.php.
References $current.
Referenced by refreshCurrent().
ExplodeIterator::key | ( | ) |
Definition at line 87 of file ExplodeIterator.php.
References $curPos.
ExplodeIterator::next | ( | ) |
Definition at line 94 of file ExplodeIterator.php.
References $current, $delimLength, and refreshCurrent().
ExplodeIterator::refreshCurrent | ( | ) |
Definition at line 68 of file ExplodeIterator.php.
References current().
ExplodeIterator::rewind | ( | ) |
Definition at line 62 of file ExplodeIterator.php.
References refreshCurrent().
Referenced by __construct().
ExplodeIterator::valid | ( | ) |
Definition at line 113 of file ExplodeIterator.php.
|
private |
Definition at line 38 of file ExplodeIterator.php.
Referenced by key().
|
private |
Definition at line 44 of file ExplodeIterator.php.
|
private |
Definition at line 35 of file ExplodeIterator.php.
Referenced by __construct().
ExplodeIterator::$delimLength |
Definition at line 35 of file ExplodeIterator.php.
Referenced by next().
|
private |
Definition at line 41 of file ExplodeIterator.php.
|
private |
Definition at line 32 of file ExplodeIterator.php.
Referenced by __construct().
ExplodeIterator::$subjectLength |
Definition at line 32 of file ExplodeIterator.php.