/** \brief Check for external keywords. */ int CheckKeywords(const mu::char_type *a_szLine, mu::Parser &a_Parser) { string_type sLine(a_szLine); if ( sLine == _T("quit") ) { return -1; } else if ( sLine == _T("list var") ) { ListVar(a_Parser); return 1; } else if ( sLine == _T("list const") ) { ListConst(a_Parser); return 1; } else if ( sLine == _T("list exprvar") ) { ListExprVar(a_Parser); return 1; } else if ( sLine == _T("list const") ) { ListConst(a_Parser); return 1; } else if ( sLine == _T("locale de") ) { mu::console() << _T("Setting german locale: ArgSep=';' DecSep=',' ThousandsSep='.'\n"); a_Parser.SetArgSep(';'); a_Parser.SetDecSep(','); a_Parser.SetThousandsSep('.'); return 1; } else if ( sLine == _T("locale en") ) { mu::console() << _T("Setting english locale: ArgSep=',' DecSep='.' ThousandsSep=''\n"); a_Parser.SetArgSep(','); a_Parser.SetDecSep('.'); a_Parser.SetThousandsSep(); return 1; } else if ( sLine == _T("locale reset") ) { mu::console() << _T("Resetting locale\n"); a_Parser.ResetLocale(); return 1; } return 0; }