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

Breadcrumb

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

function Lexer::getUpcomingInput

Return value

string

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

File

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

Class

Lexer
Lexer class

Namespace

Seld\JsonLint

Code

public function getUpcomingInput() {
    $next = $this->match;
    if (\strlen($next) < 20) {
        $next .= substr($this->input, $this->offset, 20 - \strlen($next));
    }
    return substr($next, 0, 20) . (\strlen($next) > 20 ? '...' : '');
}
RSS feed
Powered by Drupal