
Public Member Functions | |
| next () | |
| prev () | |
| char () | |
| setString ($value) | |
| reset () | |
| isWhiteSpace () | |
| tokenize () | |
Protected Attributes | |
| $_currentIndex | |
| $_string | |
Definition at line 35 of file Abstract.php.
| char | ( | ) |
| isWhiteSpace | ( | ) |
Return true if current char is white-space
Definition at line 115 of file Abstract.php.
00115 { 00116 return trim($this->char()) != $this->char(); 00117 }
| next | ( | ) |
Move current index to next char.
If index out of bounds returns false
Definition at line 55 of file Abstract.php.
00056 { 00057 if($this->_currentIndex + 1 >= strlen($this->_string)) { 00058 return false; 00059 } 00060 00061 $this->_currentIndex++; 00062 return true; 00063 }
| prev | ( | ) |
Move current index to previus char.
If index out of bounds returns false
Definition at line 72 of file Abstract.php.
00073 { 00074 if($this->_currentIndex - 1 < 0) { 00075 return false; 00076 } 00077 00078 $this->_currentIndex--; 00079 return true; 00080 }
| reset | ( | ) |
| setString | ( | $ | value | ) |
Set string for tokenize
Definition at line 96 of file Abstract.php.
00097 { 00098 $this->_string = $value; 00099 $this->reset(); 00100 }
| tokenize | ( | ) | [abstract] |
Reimplemented in Varien_Filter_Template_Tokenizer_Parameter, and Varien_Filter_Template_Tokenizer_Variable.
$_currentIndex [protected] |
Definition at line 41 of file Abstract.php.
$_string [protected] |
String for tokenize
Definition at line 46 of file Abstract.php.
1.5.8