You are here

public function AbstractLexer::getInputUntilPosition in Plug 7

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

Parameters

integer $position:

Return value

string

File

lib/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);
}