You are here

public function Scanner::next in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/masterminds/html5/src/HTML5/Parser/Scanner.php \Masterminds\HTML5\Parser\Scanner::next()

Get the next character.

Note: This advances the pointer.

Return value

string The next character.

1 call to Scanner::next()
Scanner::consume in vendor/masterminds/html5/src/HTML5/Parser/Scanner.php
Silently consume N chars.

File

vendor/masterminds/html5/src/HTML5/Parser/Scanner.php, line 61

Class

Scanner
The scanner.

Namespace

Masterminds\HTML5\Parser

Code

public function next() {
  $this->is
    ->next();
  if ($this->is
    ->valid()) {
    if ($this->debug) {
      fprintf(STDOUT, "> %s\n", $this->is
        ->current());
    }
    return $this->is
      ->current();
  }
  return false;
}