Go to the documentation of this file.
137 const std::string& str,
162 inline static bool valid(
const char c);
217 inline
bool match(const std::
string& text,
bool literal=false) const;
224 inline
bool operator()(const std::
string& text) const;
229 inline
void operator=(const
wordRe& str);
232 inline
void operator=(const
word& str);
236 void operator=(const
keyType& str);
240 inline
void operator=(const
string& str);
244 inline
void operator=(const std::
string& str);
248 inline
void operator=(const
char* str);
252 inline
void operator=(
wordRe&& str);
bool isPattern() const noexcept
The wordRe is treated as a pattern, not as literal string.
Combined DETECT and ICASE.
A class for handling words, derived from Foam::string.
Detect if the string contains meta-characters.
Istream & operator>>(Istream &, directionInfo &)
A token holds an item read from Istream.
bool isLiteral() const noexcept
The wordRe is treated as literal string, not as pattern.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
bool compile()
Compile as regular expression.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
A class for handling keywords in dictionaries.
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
wordRe()
Default construct, empty literal.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static bool valid(const char c)
Test for valid wordRe character?
Wrapper around C++11 regular expressions with some additional prefix-handling. The prefix-handling is...
OBJstream os(runTime.globalPath()/outputName)
void set(const std::string &str, const compOption opt=DETECT)
Copy string, auto-test for regular expression or other options.
void uncompile()
Mark as literal string, remove any regular expression.
Ignore case in regular expression.
Combined REGEX and ICASE.
void clear()
Clear string and regular expression.
Hashing functor for string and derived string classes.
bool assign(const token &tok)
Assign from word or string token.
const dimensionedScalar c
Speed of light in a vacuum.
Unknown content (for return value).
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool match(const std::string &text, bool literal=false) const
Smart match as regular expression or as a string.
compOption
Enumeration with compile options.
void swap(wordRe &str)
Swap contents. Self-swapping is a no-op.