src/Parser.php
protected function matchChar($char, $eatWhitespace = null)
    {
        if (! isset($this->buffer[$this->count]) || $this->buffer[$this->count] !== $char) {
            return false;
        }

        $this->count++;

        if (! isset($eatWhitespace)) {
            $eatWhitespace = $this->eatWhiteDefault;
        }

        if ($eatWhitespace) {
            $this->whitespace();
        }
        return true;
    }
protected function matchChar($char, $eatWhitespace = null)
    {
        if (! isset($this->buffer[$this->count]) || $this->buffer[$this->count] !== $char) {
            return false;
        }

        $this->count++;

        if (! isset($eatWhitespace)) {
            $eatWhitespace = $this->eatWhiteDefault;
        }

        if ($eatWhitespace) {
            $this->whitespace();
        }
        return true;
    }
protected function matchChar ( $ char , $ eatWhitespace = null ) { if ( ! isset ( $ this -> buffer [ $ this -> count ] ) || $ this -> buffer [ $ this -> count ] !== $ char ) { return false ; } $ this -> count ++ ; if ( ! isset ( $ eatWhitespace ) ) { $ eatWhitespace = $ this -> eatWhiteDefault ; } if ( $ eatWhitespace ) { $ this -> whitespace ( ) ; } return true ; }
Match a single string

@param string  $char
@param boolean $eatWhitespace

@return boolean
Match a single string