Flitch\File\Token::getTrailingLineLength PHP Method

getTrailingLineLength() public method

Get length of the last line.
public getTrailingLineLength ( ) : integer
return integer
    public function getTrailingLineLength()
    {
        return iconv_strlen(substr(strrchr($this->lexeme, "\n") ?: strrchr($this->lexeme, "\r"), 1), 'utf-8');
    }