protected function Twig_Lexer::moveCursor in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Lexer.php \Twig_Lexer::moveCursor()
- 7.2 vendor/Twig/Lexer.php \Twig_Lexer::moveCursor()
8 calls to Twig_Lexer::moveCursor()
- Twig_Lexer::lexBlock in vendor/
Twig/ Lexer.php - Twig_Lexer::lexComment in vendor/
Twig/ Lexer.php - Twig_Lexer::lexData in vendor/
Twig/ Lexer.php - Twig_Lexer::lexExpression in vendor/
Twig/ Lexer.php - Twig_Lexer::lexInterpolation in vendor/
Twig/ Lexer.php
File
- vendor/
Twig/ Lexer.php, line 359
Class
- Twig_Lexer
- Lexes a template string.
Code
protected function moveCursor($text) {
$this->cursor += strlen($text);
$this->lineno += substr_count($text, "\n");
}