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