- \HTML5_InputStream
class (none) \ HTML5_InputStream
Method Summary
Name | Description |
---|---|
__construct($data) | |
char() | Retrieve the currently consume character. |
charsUntil($bytes, $max = null) | Matches as far as possible until we reach a certain set of bytes and returns the matched substring. |
charsWhile($bytes, $max = null) | Matches as far as possible with a certain set of bytes and returns the matched substring. |
getColumnOffset() | Returns the current column of the current line that the tokenizer is at. |
getCurrentLine() | Returns the current line that the tokenizer is at. |
remainingChars() | Get all characters until EOF. |
unget() | Unconsume one character. |
public function __construct($data)
- Parameters:
$data
- Data to parse
public function char()
Retrieve the currently consume character.
public function charsUntil($bytes, $max = null)
Matches as far as possible until we reach a certain set of bytes and returns the matched substring.
- Parameters:
$bytes
- Bytes to match.- Defaults:
max
=null
public function charsWhile($bytes, $max = null)
Matches as far as possible with a certain set of bytes and returns the matched substring.
- Parameters:
$bytes
- Bytes to match.- Defaults:
max
=null
public function getColumnOffset()
Returns the current column of the current line that the tokenizer is at.
public function getCurrentLine()
Returns the current line that the tokenizer is at.
public function remainingChars()
Get all characters until EOF.
public function unget()
Unconsume one character.