MediaWiki
REL1_24
|
An iterator which works exactly like: More...
Public Member Functions | |
__construct ($delim, $subject) | |
Construct a DelimIterator. | |
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 526 of file StringUtils.php.
ExplodeIterator::__construct | ( | $ | delim, |
$ | subject | ||
) |
Construct a DelimIterator.
string | $delim | |
string | $subject |
Definition at line 547 of file StringUtils.php.
Definition at line 576 of file StringUtils.php.
Referenced by next(), and refreshCurrent().
Definition at line 583 of file StringUtils.php.
Definition at line 590 of file StringUtils.php.
References current(), and refreshCurrent().
Definition at line 564 of file StringUtils.php.
References current().
Definition at line 558 of file StringUtils.php.
References refreshCurrent().
Referenced by __construct().
Definition at line 609 of file StringUtils.php.
ExplodeIterator::$curPos [private] |
Definition at line 534 of file StringUtils.php.
ExplodeIterator::$current [private] |
Definition at line 540 of file StringUtils.php.
ExplodeIterator::$delim [private] |
Definition at line 531 of file StringUtils.php.
Referenced by __construct().
ExplodeIterator::$delimLength |
Definition at line 531 of file StringUtils.php.
ExplodeIterator::$endPos [private] |
Definition at line 537 of file StringUtils.php.
ExplodeIterator::$subject [private] |
Definition at line 528 of file StringUtils.php.
Referenced by __construct().
ExplodeIterator::$subjectLength |
Definition at line 528 of file StringUtils.php.