MediaWiki
REL1_21
|
An iterator which works exactly like: More...
Public Member Functions | |
__construct ($delim, $s) | |
Construct a DelimIterator. | |
current () | |
key () | |
next () | |
refreshCurrent () | |
rewind () | |
valid () | |
Public Attributes | |
$curPos | |
$current | |
$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 479 of file StringUtils.php.
ExplodeIterator::__construct | ( | $ | delim, |
$ | s | ||
) |
Construct a DelimIterator.
$delim | string |
$s | string |
Definition at line 500 of file StringUtils.php.
Definition at line 529 of file StringUtils.php.
Referenced by next(), and refreshCurrent().
Definition at line 533 of file StringUtils.php.
Definition at line 540 of file StringUtils.php.
References current(), and refreshCurrent().
Definition at line 517 of file StringUtils.php.
References current().
Definition at line 511 of file StringUtils.php.
References refreshCurrent().
Referenced by __construct().
Definition at line 558 of file StringUtils.php.
ExplodeIterator::$curPos |
Definition at line 487 of file StringUtils.php.
ExplodeIterator::$current |
Definition at line 493 of file StringUtils.php.
ExplodeIterator::$delim |
Definition at line 484 of file StringUtils.php.
Referenced by __construct().
ExplodeIterator::$delimLength |
Definition at line 484 of file StringUtils.php.
ExplodeIterator::$endPos |
Definition at line 490 of file StringUtils.php.
ExplodeIterator::$subject |
Definition at line 481 of file StringUtils.php.
ExplodeIterator::$subjectLength |
Definition at line 481 of file StringUtils.php.