protected function getTextAtCursor(): string
    {
        if (null === $this->textAtCursor) {
            $textAtCursor = substr($this->getText(), $this->cursor);
            if (strlen($textAtCursor) == 0) {
                throw new LengthException("No more text to match tokens");
            }
            $this->textAtCursor = $textAtCursor;
        }
        return $this->textAtCursor;
    }
protected function getTextAtCursor(): string
    {
        if (null === $this->textAtCursor) {
            $textAtCursor = substr($this->getText(), $this->cursor);
            if (strlen($textAtCursor) == 0) {
                throw new LengthException("No more text to match tokens");
            }
            $this->textAtCursor = $textAtCursor;
        }
        return $this->textAtCursor;
    }
protected function getTextAtCursor ( ) : string { if ( null === $ this -> textAtCursor ) { $ textAtCursor = substr ( $ this -> getText ( ) , $ this -> cursor ) ; if ( strlen ( $ textAtCursor ) == 0 ) { throw new LengthException ( "No more text to match tokens" ) ; } $ this -> textAtCursor = $ textAtCursor ; } return $ this -> textAtCursor ; }
Returns part of source string that starts at current cursor position.

@return string
@todo Limit substring size with maximal token length (without breaking UTF-8).
Returns part of source string that starts at current cursor position .