Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. InputStream.php

function 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. Newlines are column 0. The first char after a newline is column 1.

File

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

Class

InputStream
Interface for stream readers.

Namespace

Masterminds\HTML5\Parser

Code

public function columnOffset();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal