MediaWiki REL1_33
|
An iterator which works exactly like: More...
Public Member Functions | |
__construct ( $delim, $subject) | |
Construct a DelimIterator. | |
current () | |
key () | |
next () | |
refreshCurrent () | |
rewind () | |
valid () | |
Private Attributes | |
$curPos | |
string false | $current |
The current token. | |
$delim | |
$delimLength | |
$endPos | |
$subject | |
$subjectLength | |
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 |
The current token.
Definition at line 44 of file ExplodeIterator.php.
|
private |
Definition at line 35 of file ExplodeIterator.php.
Referenced by __construct().
|
private |
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().
|
private |
Definition at line 32 of file ExplodeIterator.php.