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

Breadcrumb

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

function Lexer::getPastInput

Return value

string

1 call to Lexer::getPastInput()
Lexer::showPosition in vendor/seld/jsonlint/src/Seld/JsonLint/Lexer.php

File

vendor/seld/jsonlint/src/Seld/JsonLint/Lexer.php, line 156

Class

Lexer
Lexer class

Namespace

Seld\JsonLint

Code

public function getPastInput() {
    $pastLength = $this->offset - \strlen($this->match);
    return ($pastLength > 20 ? '...' : '') . substr($this->input, max(0, $pastLength - 20), min(20, $pastLength));
}
RSS feed
Powered by Drupal