108 static inline bool meta(
char);
111 static inline bool isPattern(
const string&);
181 inline void uncompile(
const bool doStripInvalid =
false)
const;
211 bool literalMatch =
false 245 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.
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.
friend Istream & operator>>(Istream &, wordRe &)
A class for handling words, derived from string.
Istream & operator>>(Istream &, directionInfo &)
detect if the string contains meta-characters
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.
treat as a string literal
ignore case in regular expression
Ostream & operator<<(Ostream &, const ensightPart &)
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.