summaryrefslogtreecommitdiff
path: root/src/HTML5/Parser/Scanner.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTML5/Parser/Scanner.php')
-rw-r--r--src/HTML5/Parser/Scanner.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/HTML5/Parser/Scanner.php b/src/HTML5/Parser/Scanner.php
index 1ab9b8b..b359f16 100644
--- a/src/HTML5/Parser/Scanner.php
+++ b/src/HTML5/Parser/Scanner.php
@@ -168,9 +168,15 @@ class Scanner {
return $this->is->currentLine();
}
+ /**
+ * Read chars until something in the mask is encountered.
+ */
public function charsUntil($mask) {
return $this->is->charsUntil($mask);
}
+ /**
+ * Read chars as long as the mask matches.
+ */
public function charsWhile($mask) {
return $this->is->charsWhile($mask);
}