pQuery\TokenizerBase::parse_whitespace PHP Method

parse_whitespace() protected method

Parse whitespace
protected parse_whitespace ( ) : integer
return integer Token
    protected function parse_whitespace()
    {
        $this->token_start = $this->pos;
        while (++$this->pos < $this->size) {
            if (!isset($this->whitespace[$this->doc[$this->pos]])) {
                break;
            } else {
                $this->parse_linebreak();
            }
        }
        --$this->pos;
        return self::TOK_WHITESPACE;
    }