70 word(std::move(str), false),
84 word(std::move(str), false),
100 return !(type_ & option::REGEX);
106 return (type_ & option::REGEX);
119 string::stripInvalid<word>(*
this);
129 type_ = option::REGEX;
136 type_ = option::LITERAL;
145 string::stripInvalid<word>(*
this);
148 type_ = option::LITERAL;
155 type_ = option::LITERAL;
194 type_ = option::LITERAL;
201 type_ = option::LITERAL;
208 type_ = option::REGEX;
bool valid() const
True if all internal ids are non-negative.
Ostream & operator()() const
Output stream (master only).
A class for handling keywords in dictionaries.
option
Enumeration for the data type and search/match modes (bitmask)
bool isLiteral() const noexcept
The keyType is treated as literal, not as pattern.
bool compile() noexcept
Mark as regular expression.
void uncompile() noexcept
Mark as literal string.
keyType()
Default construct, empty literal.
bool isPattern() const noexcept
The keyType is treated as a pattern, not as literal string.
void clear()
Clear string and set as literal.
void operator=(const std::string &)=delete
No assignment where type could be indeterminate.
virtual topoSetSource::sourceType setType() const
The source category is a cellSet.
A class for handling words, derived from Foam::string.
static int debug
Debugging.