You are here

public function AbstractLexer::getInputUntilPosition in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php \Doctrine\Common\Lexer\AbstractLexer::getInputUntilPosition()

Retrieve the original lexer's input until a given position.

Parameters

integer $position:

Return value

string

File

vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php, line 141

Class

AbstractLexer
Base class for writing simple lexers, i.e. for creating small DSLs.

Namespace

Doctrine\Common\Lexer

Code

public function getInputUntilPosition($position) {
  return substr($this->input, 0, $position);
}