MediaWiki
master
|
An iterator which works exactly like: More...
Public Member Functions | |
__construct ( $delim, $subject) | |
Construct a DelimIterator. More... | |
current () | |
key () | |
next () | |
refreshCurrent () | |
rewind () | |
valid () | |
Private Attributes | |
int | $curPos |
The position of the start of the line. More... | |
string false | $current |
The current token. More... | |
string | $delim |
The delimiter. More... | |
int | $delimLength |
The delimiter string length. More... | |
int | $endPos |
The position after the end of the next delimiter. More... | |
string | $subject |
The subject string. More... | |
int | $subjectLength |
The subject string length. More... | |
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 57 of file ExplodeIterator.php.
ExplodeIterator::current | ( | ) |
Definition at line 86 of file ExplodeIterator.php.
References $current.
Referenced by refreshCurrent().
ExplodeIterator::key | ( | ) |
Definition at line 93 of file ExplodeIterator.php.
References $curPos.
ExplodeIterator::next | ( | ) |
Definition at line 100 of file ExplodeIterator.php.
References $delimLength, and refreshCurrent().
ExplodeIterator::refreshCurrent | ( | ) |
Definition at line 74 of file ExplodeIterator.php.
References current().
ExplodeIterator::rewind | ( | ) |
Definition at line 68 of file ExplodeIterator.php.
References refreshCurrent().
Referenced by __construct().
ExplodeIterator::valid | ( | ) |
Definition at line 117 of file ExplodeIterator.php.
|
private |
The position of the start of the line.
Definition at line 44 of file ExplodeIterator.php.
Referenced by key().
|
private |
|
private |
|
private |
The delimiter string length.
Definition at line 41 of file ExplodeIterator.php.
Referenced by next().
|
private |
The position after the end of the next delimiter.
Definition at line 47 of file ExplodeIterator.php.
|
private |
|
private |
The subject string length.
Definition at line 35 of file ExplodeIterator.php.