메소드 |
설명 |
|
__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. |
|