protected function getCurrentChar()
    {
        $c = substr($this->data, $this->p, 1);

        if ($c === "\n") {
            ++$this->line;
            $this->col = 1;
        } else {
            ++$this->col;
        }

        return $c;
    }
protected function getCurrentChar()
    {
        $c = substr($this->data, $this->p, 1);

        if ($c === "\n") {
            ++$this->line;
            $this->col = 1;
        } else {
            ++$this->col;
        }

        return $c;
    }
protected function getCurrentChar ( ) { $ c = substr ( $ this -> data , $ this -> p , 1 ) ; if ( $ c === "\n" ) { ++ $ this -> line ; $ this -> col = 1 ; } else { ++ $ this -> col ; } return $ c ; }
Current character.
@return string Character.
Current character .