Example #1
0
bool Importar::esNif(const std::string &lin, Lexer &lex)
{
    bool toret = false;
    unsigned int pos = lex.getCurrentPos();

    if ( std::isalpha( lex.getCurrentChar() ) ) {
        lex.advance();

        if ( Lexer::StandardDelimiters.find( lex.getCurrentChar() ) != std::string::npos
          || this->esSeparador( lex.getCurrentChar() ) )
        {
            toret = true;
        }
    }

    lex.reset( pos );
    return toret;
}