108 static inline bool meta(
char);
111 static inline bool isPattern(
const string&);
169 inline void uncompile(
const bool doStripInvalid =
false)
const;
178 inline void set(
const char*,
const compOption =
DETECT);
191 bool literalMatch =
false 225 inline void operator=(
const std::string&);
A class for handling keywords in dictionaries.
Wrapper around POSIX extended regular expressions.
bool recompile() const
Recompile an existing regular expression.
friend Ostream & operator<<(Ostream &, const wordRe &)
void operator=(const wordRe &)
Assign copy.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
compOption
Enumeration with compile options.
ignore case in regular expression
bool isPattern() const
Should be treated as a match rather than a literal string?
static bool meta(char)
Is this a meta character?
bool compile() const
Compile the regular expression.
Ostream & info(Ostream &) const
Output some basic info.
treat as regular expression
friend Istream & operator>>(Istream &, wordRe &)
A class for handling words, derived from string.
Istream & operator>>(Istream &, directionInfo &)
A wordRe is a word, but can also have a regular expression for matching words.
void clear()
Clear string and precompiled regular expression.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
string quotemeta() const
Return a string with quoted meta-characters.
Ostream & operator<<(Ostream &, const ensightPart &)
treat as a string literal
void uncompile(const bool doStripInvalid=false) const
Frees precompiled regular expression, making wordRe a literal.
bool match(const std::string &, bool literalMatch=false) const
Smart match as regular expression or as a string.
static const wordRe null
An empty wordRe.
detect if the string contains meta-characters