You are here

private function CssParser::consumeWhitespace in QueryPath 7.2

Same name and namespace in other branches
  1. 6 QueryPath/CssParser.php \CssParser::consumeWhitespace()
  2. 7.3 QueryPath/CssParser.php \CssParser::consumeWhitespace()
6 calls to CssParser::consumeWhitespace()
CssParser::attribute in QueryPath/CssParser.php
CssParser::combinator in QueryPath/CssParser.php
CssParser::elementClass in QueryPath/CssParser.php
CssParser::elementName in QueryPath/CssParser.php
CssParser::pseudoClass in QueryPath/CssParser.php

... See full list

File

QueryPath/CssParser.php, line 162

Class

CssParser

Code

private function consumeWhitespace() {
  if ($this->DEBUG) {
    print "CONSUME WHITESPACE\n";
  }
  $white = 0;
  while ($this->scanner->token == CssToken::white) {
    $this->scanner
      ->nextToken();
    ++$white;
  }
  return $white;
}