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

Breadcrumb

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

function StringInputStream::remainingChars

Get all characters until EOF.

This reads to the end of the file, and sets the read marker at the end of the file.

Note this performs bounds checking.

Return value

string Returns the remaining text. If called when the InputStream is already exhausted, it returns an empty string.

Overrides InputStream::remainingChars

File

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

Class

StringInputStream

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