function Tokenizer::sequenceMatches
Check if upcomming chars match the given sequence.
This will read the stream for the $sequence. If it's found, this will return true. If not, return false. Since this unconsumes any chars it reads, the caller will still need to read the next sequence, even if this returns true.
Example: $this->scanner->sequenceMatches('</script>') will see if the input stream is at the start of a '</script>' string.
Parameters
string $sequence:
bool $caseSensitive:
Return value
bool
File
-
vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php, line 1031
Class
- Tokenizer
- The HTML5 tokenizer.
Namespace
Masterminds\HTML5\ParserCode
protected function sequenceMatches($sequence, $caseSensitive = true) {
@trigger_error(__METHOD__ . ' method is deprecated since version 2.4 and will be removed in 3.0. Use Scanner::sequenceMatches() instead.', E_USER_DEPRECATED);
return $this->scanner
->sequenceMatches($sequence, $caseSensitive);
}