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.

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

Definition at line 103 of file condparser.cpp.

104 {
105  return isAlpha(c) || (c>='0' && c<='9');
106 }
static bool isAlpha(const char c)
Definition: condparser.cpp:98
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.

91 {
92  return c=='&' || c=='|' || c=='!';
93 }