MediaWiki  REL1_19
ExplodeIterator Class Reference

An iterator which works exactly like: More...

List of all members.

Public Member Functions

 __construct ($delim, $s)
 Construct a DelimIterator.
 current ()
 key ()
 next ()
 refreshCurrent ()
 rewind ()
 valid ()

Public Attributes

 $curPos
 $current
 $delim
 $delimLength
 $endPos
 $subject
 $subjectLength

Detailed Description

An iterator which works exactly like:

foreach ( explode( $delim, $s ) as $element ) { ... }

Except it doesn't use 193 byte per element

Definition at line 356 of file StringUtils.php.


Constructor & Destructor Documentation

ExplodeIterator::__construct ( delim,
s 
)

Construct a DelimIterator.

Definition at line 375 of file StringUtils.php.

References $delim, and rewind().

Here is the call graph for this function:


Member Function Documentation

Definition at line 405 of file StringUtils.php.

Referenced by next(), and refreshCurrent().

Here is the caller graph for this function:

Definition at line 409 of file StringUtils.php.

Definition at line 413 of file StringUtils.php.

References current(), and refreshCurrent().

Here is the call graph for this function:

Definition at line 393 of file StringUtils.php.

References current().

Referenced by next(), and rewind().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 386 of file StringUtils.php.

References refreshCurrent().

Referenced by __construct().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 428 of file StringUtils.php.


Member Data Documentation

ExplodeIterator::$curPos

Definition at line 364 of file StringUtils.php.

ExplodeIterator::$current

Definition at line 370 of file StringUtils.php.

ExplodeIterator::$delim

Definition at line 361 of file StringUtils.php.

Referenced by __construct().

ExplodeIterator::$delimLength

Definition at line 361 of file StringUtils.php.

ExplodeIterator::$endPos

Definition at line 367 of file StringUtils.php.

ExplodeIterator::$subject

Definition at line 358 of file StringUtils.php.

ExplodeIterator::$subjectLength

Definition at line 358 of file StringUtils.php.


The documentation for this class was generated from the following file: