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

Breadcrumb

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

function Scanner::remainingChars

Get all characters until EOF.

This consumes characters until the EOF.

Return value

int The number of characters remaining.

File

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

Class

Scanner
The scanner scans over a given data input to react appropriately to characters.

Namespace

Masterminds\HTML5\Parser

Code

public function remainingChars() {
    if ($this->char < $this->EOF) {
        $data = substr($this->data, $this->char);
        $this->char = $this->EOF;
        return $data;
    }
    return '';
    // false;
}

API Navigation

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