MediaWiki  REL1_20
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 434 of file StringUtils.php.


Constructor & Destructor Documentation

ExplodeIterator::__construct ( delim,
s 
)

Construct a DelimIterator.

Parameters:
$delimstring
$sstring

Definition at line 455 of file StringUtils.php.

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


Member Function Documentation

Definition at line 484 of file StringUtils.php.

Referenced by next(), and refreshCurrent().

Definition at line 488 of file StringUtils.php.

Returns:
string

Definition at line 495 of file StringUtils.php.

References current(), and refreshCurrent().

Definition at line 472 of file StringUtils.php.

References current().

Referenced by next(), and rewind().

Definition at line 466 of file StringUtils.php.

References refreshCurrent().

Referenced by __construct().

Returns:
bool

Definition at line 513 of file StringUtils.php.


Member Data Documentation

ExplodeIterator::$curPos

Definition at line 442 of file StringUtils.php.

ExplodeIterator::$current

Definition at line 448 of file StringUtils.php.

ExplodeIterator::$delim

Definition at line 439 of file StringUtils.php.

Referenced by __construct().

ExplodeIterator::$delimLength

Definition at line 439 of file StringUtils.php.

ExplodeIterator::$endPos

Definition at line 445 of file StringUtils.php.

ExplodeIterator::$subject

Definition at line 436 of file StringUtils.php.

ExplodeIterator::$subjectLength

Definition at line 436 of file StringUtils.php.


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