My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
condparser.cpp File Reference
#include "condparser.h"
#include "config.h"
#include "message.h"

Go to the source code of this file.

Functions

static bool isDelimiter (const char c)
 
static bool isAlpha (const char c)
 
static bool isAlphaNum (const char c)
 

Function Documentation

static bool isAlpha ( const char  c)
static

checks if the given char c is a letter or underscore

Definition at line 98 of file condparser.cpp.

Referenced by CondParser::getToken(), and isAlphaNum().

{
return (c>='A' && c<='Z') || (c>='a' && c<='z') || c=='_';
}
static bool isAlphaNum ( const char  c)
static

Definition at line 103 of file condparser.cpp.

References isAlpha().

Referenced by CondParser::getToken().

{
return isAlpha(c) || (c>='0' && c<='9');
}
static bool isDelimiter ( const char  c)
static

checks if the given char c is a delimeter minus is checked apart, can be unary minus

Definition at line 90 of file condparser.cpp.

Referenced by CondParser::getToken().

{
return c=='&' || c=='|' || c=='!';
}