You are here

public function StringInputStream::unconsume in Zircon Profile 8.0

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

Unconsume characters.

Parameters

int $howMany: The number of characters to unconsume.

Overrides InputStream::unconsume

File

vendor/masterminds/html5/src/HTML5/Parser/StringInputStream.php, line 308

Class

StringInputStream

Namespace

Masterminds\HTML5\Parser

Code

public function unconsume($howMany = 1) {
  if ($this->char - $howMany >= 0) {
    $this->char = $this->char - $howMany;
  }
}