You are here

public function InputStream::columnOffset in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/src/HTML5/Parser/InputStream.php \Masterminds\HTML5\Parser\InputStream::columnOffset()

Returns the current column of the current line that the tokenizer is at.

Newlines are column 0. The first char after a newline is column 1.

@TODO Move this to the scanner.

Return value

int The column number.

1 method overrides InputStream::columnOffset()
StringInputStream::columnOffset in vendor/masterminds/html5/src/HTML5/Parser/StringInputStream.php
Returns the current column of the current line that the tokenizer is at.

File

vendor/masterminds/html5/src/HTML5/Parser/InputStream.php, line 32

Class

InputStream
Interface for stream readers.

Namespace

Masterminds\HTML5\Parser

Code

public function columnOffset();