You are here

protected function Twig_Lexer::moveCursor in Translation template extractor 7.2

Same name and namespace in other branches
  1. 6.3 vendor/Twig/Lexer.php \Twig_Lexer::moveCursor()
  2. 7.3 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

... See full list

File

vendor/Twig/Lexer.php, line 354

Class

Twig_Lexer
Lexes a template string.

Code

protected function moveCursor($text) {
  $this->cursor += strlen($text);
  $this->lineno += substr_count($text, "\n");
}