88 std::unique_ptr<Foam::regExp> regexPtr_;
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);
A class for handling keywords in dictionaries.
bool assign(const token &tok)
Assign from word or string token.
void swap(wordRe &str)
Swap contents. Self-swapping is a no-op.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
compOption
Enumeration with compile options.
A token holds an item read from Istream.
Combined DETECT and ICASE.
bool compile()
Compile as regular expression (if possible)
Ignore case in regular expression.
A class for handling words, derived from Foam::string.
Istream & operator>>(Istream &, directionInfo &)
wordRe()
Default construct, empty literal.
bool isLiteral() const noexcept
The wordRe is a literal string, not a pattern.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings...
void clear()
Clear string and regular expression.
static bool valid(const char c)
Test for valid wordRe character?
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Hashing functor for string and derived string classes.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
const dimensionedScalar c
Speed of light in a vacuum.
Combined REGEX and ICASE.
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.
Includes some standard C++ headers, defines global macros and templates used in multiple places by Op...
bool match(const std::string &text, bool literal=false) const
Smart match as regular expression or as a string.
bool isPattern() const noexcept
The wordRe is a pattern, not a literal string.
static const wordRe null
An empty wordRe.
Detect if the string contains meta-characters.
Unknown content (for return value).