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.
bool recompile() const
Recompile an existing regular expression.
Wrapper around POSIX extended regular expressions.
Ostream & info(Ostream &) const
Output some basic info.
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)...
bool match(const std::string &, bool literalMatch=false) const
Smart match as regular expression or as a string.
compOption
Enumeration with compile options.
ignore case in regular expression
static bool meta(char)
Is this a meta character?
detect if the string contains meta-characters
friend Istream & operator>>(Istream &, wordRe &)
void uncompile(const bool doStripInvalid=false) const
Frees precompiled regular expression, making wordRe a literal.
A class for handling words, derived from string.
Istream & operator>>(Istream &, directionInfo &)
bool isPattern() const
Should be treated as a match rather than a literal string?
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...
bool compile() const
Compile the regular expression.
Ostream & operator<<(Ostream &, const ensightPart &)
treat as a string literal
string quotemeta() const
Return a string with quoted meta-characters.
static const wordRe null
An empty wordRe.
treat as regular expression