113 <<
"Zero-length regex" 125 <<
"Wrong token type - expected word or string, found " 131 <<
"Bad token - could not get wordRe";
bool good() const noexcept
True if token is not UNDEFINED or ERROR.
A class for handling keywords in dictionaries.
bool isWord() const noexcept
Token is word-variant (WORD, DIRECTIVE)
bool assign(const token &tok)
Assign from word or string token.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
const word & wordToken() const
Return const reference to the word contents.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds an item read from Istream.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
bool compile()
Compile as regular expression (if possible)
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
void operator=(const wordRe &str)
Copy assignment, retaining type (literal or regex)
A class for handling words, derived from Foam::string.
Istream & operator>>(Istream &, directionInfo &)
wordRe()
Default construct, empty literal.
bool isPattern() const noexcept
The keyType is treated as a pattern, not as literal string.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void assign(Field< Tout > &result, const Field< T1 > &a, const UnaryOp &op)
Populate a field as the result of a unary operation on an input.
OBJstream os(runTime.globalPath()/outputName)
const string & stringToken() const
Return const reference to the string contents.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
InfoProxy< token > info() const noexcept
Return info proxy, for printing token information to a stream.
static const wordRe null
An empty wordRe.
Detect if the string contains meta-characters.
bool isQuotedString() const noexcept
Token is (quoted) STRING (string variant)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...