protected function Twig_Lexer::moveCursor

8 calls to Twig_Lexer::moveCursor()

File

drupal/core/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");
}