Property | Type | Description | |
---|---|---|---|
$attr | |||
$blank | string | The following 4 strings are tags that are important to us. | |
$content | string | The content string. | |
$equal | |||
$pos | integer | The current position we are in the content. | |
$size | integer | The size of the content. | |
$slash |
Method | Description | |
---|---|---|
__construct ( $content ) | Content constructor. | |
char ( integer $char = null ) : string | Gets the current character we are at. | |
copyByToken ( string $token, boolean $char = false, boolean $escape = false ) : string | Copies the content until it reaches the token string., | |
copyUntil ( string $string, boolean $char = false, boolean $escape = false ) : string | Copy the content until we find the given string. | |
copyUntilUnless ( string $string, string $unless ) : string | Copies the content until the string is found and return it unless the 'unless' is found in the substring. | |
fastForward ( integer $count ) | Moves the current position forward. | |
getPosition ( ) : integer | Returns the current position of the content. | |
rewind ( integer $count ) | Moves the current position backward. | |
skip ( string $string, boolean $copy = false ) | Skip a given set of characters. | |
skipByToken ( string $token, boolean $copy = false ) : null | string | Skip a given token of pre-defined characters. |
public fastForward ( integer $count ) | ||
$count | integer |
public getPosition ( ) : integer | ||
return | integer |
protected string $blank | ||
return | string |
protected int $pos | ||
return | integer |