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