GUI/node_modules/slice2js/ice/cpp/src/Slice/Scanner.cpp
int
checkKeyword(string& id)
{
    StringTokenMap::const_iterator pos = keywordMap.find(id);
    if(pos != keywordMap.end())
    {
        if(pos->first != id)
        {
            string msg;
            msg = "illegal identifier: `" + id + "' differs from keyword `";
            msg += pos->first + "' only in capitalization";
            unit->error(msg);
            id = pos->first;
        }
        return pos->second;
    }
    return checkIdentifier(id);
}
//
// Check if an identifier looks like a keyword.
// If the identifier is a keyword, return the
// corresponding keyword token; otherwise, return
// an identifier token.
//
Check if an identifier looks like a keyword.
If the identifier is a keyword, return the
corresponding keyword token; otherwise, return
an identifier token.
Check if an identifier looks like a keyword . If the identifier is a keyword return the corresponding keyword token ; otherwise return an identifier token .
int
checkKeyword(string& id)
{
    StringTokenMap::const_iterator pos = keywordMap.find(id);
    if(pos != keywordMap.end())
    {
        if(pos->first != id)
        {
            string msg;
            msg = "illegal identifier: `" + id + "' differs from keyword `";
            msg += pos->first + "' only in capitalization";
            unit->error(msg);
            id = pos->first;
        }
        return pos->second;
    }
    return checkIdentifier(id);
}
int checkKeyword ( string & id ) { StringTokenMap :: const_iterator pos = keywordMap . find ( id ) ; if ( pos != keywordMap . end ( ) ) { if ( pos -> first != id ) { string msg ; msg = " " + id + " " ; msg += pos -> first + " " ; unit -> error ( msg ) ; id = pos -> first ; } return pos -> second ; } return checkIdentifier ( id ) ; }
Check if an identifier looks like a keyword.
Check if an identifier looks like a keyword .