public function AbstractLexer::getInputUntilPosition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\LexerCode
public function getInputUntilPosition($position) {
return substr($this->input, 0, $position);
}