ExplodeIterator Class Reference

An iterator which works exactly like:. More...

List of all members.

Public Member Functions

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

Public Attributes

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


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 335 of file StringUtils.php.


Constructor & Destructor Documentation

ExplodeIterator::__construct ( delim,
s 
)

Construct a DelimIterator.

Definition at line 354 of file StringUtils.php.

References $delim, $s, and rewind().


Member Function Documentation

ExplodeIterator::current (  ) 

Definition at line 384 of file StringUtils.php.

Referenced by next(), and refreshCurrent().

ExplodeIterator::key (  ) 

Definition at line 388 of file StringUtils.php.

ExplodeIterator::next (  ) 

Definition at line 392 of file StringUtils.php.

References current(), and refreshCurrent().

ExplodeIterator::refreshCurrent (  ) 

Definition at line 372 of file StringUtils.php.

References current().

Referenced by next(), and rewind().

ExplodeIterator::rewind (  ) 

Definition at line 365 of file StringUtils.php.

References refreshCurrent().

Referenced by __construct().

ExplodeIterator::valid (  ) 

Definition at line 407 of file StringUtils.php.


Member Data Documentation

ExplodeIterator::$curPos

Definition at line 343 of file StringUtils.php.

ExplodeIterator::$current

Definition at line 349 of file StringUtils.php.

ExplodeIterator::$delim

Definition at line 340 of file StringUtils.php.

Referenced by __construct().

ExplodeIterator::$delimLength

Definition at line 340 of file StringUtils.php.

ExplodeIterator::$endPos

Definition at line 346 of file StringUtils.php.

ExplodeIterator::$subject

Definition at line 337 of file StringUtils.php.

ExplodeIterator::$subjectLength

Definition at line 337 of file StringUtils.php.


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

Generated on Sat Sep 5 02:08:36 2009 for MediaWiki by  doxygen 1.5.9