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