Resets the lexer position on the input to the given position.
Parameters
integer $position Position to place the lexical scanner:
File
- drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Lexer.php, line 97
Class
- Lexer
- Base class for writing simple lexers, i.e. for creating small DSLs.
Namespace
Doctrine\Common
Code
public function resetPosition($position = 0) {
$this->position = $position;
}