pQuery\TokenizerBase::next_no_whitespace PHP Метод

next_no_whitespace() публичный Метод

Finds the next token, but skips whitespace
public next_no_whitespace ( ) : integer
Результат integer Next token ({@link TOK_NULL} if none)
    function next_no_whitespace()
    {
        $this->token_start = null;
        while (++$this->pos < $this->size) {
            if (!isset($this->whitespace[$this->doc[$this->pos]])) {
                if (isset($this->char_map[$this->doc[$this->pos]])) {
                    if (is_string($this->char_map[$this->doc[$this->pos]])) {
                        return $this->token = $this->{$this->char_map[$this->doc[$this->pos]]}();
                    } else {
                        return $this->token = $this->char_map[$this->doc[$this->pos]];
                    }
                } else {
                    return $this->token = self::TOK_UNKNOWN;
                }
            } else {
                $this->parse_linebreak();
            }
        }
        return $this->token = self::TOK_NULL;
    }