38 const bool stripComments
55 const bool stripComments
70 const bool stripComments
85 const bool stripComments
88 inplaceExpand(*
this,
dict, stripComments);
107 const bool stripComments
114 this->expand(
dict, stripComments);
132 const bool ok = (writeEmpty || !empty());
136 if (!keyword.empty())
138 os.writeKeyword(keyword);
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static void inplaceExpand(std::string &s, const dictionary &dict)
Inplace expand expression with dictionary variables/entries.
void trim()
Inplace trim leading and trailing whitespace.
static exprString getOptional(const word &keyword, const dictionary &dict, const bool stripComments=true)
static void inplaceExpand(std::string &str, const dictionary &dict, const bool stripComments=true)
void expand(const dictionary &dict, const bool stripComments=true)
static exprString getEntry(const word &keyword, const dictionary &dict, const bool stripComments=true)
bool readEntry(const word &keyword, const dictionary &dict, bool mandatory=true, const bool stripComments=true)
bool writeEntry(const word &keyword, Ostream &os, bool writeEmpty=false) const
A token holds an item read from Istream.
bool setType(const tokenType tokType) noexcept
Change the token type, for similar types.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
A variant of Foam::string with expansion of dictionary variables into a comma-separated form.
void inplaceRemoveComments(std::string &s)
Remove C/C++ comments inplace.
void inplaceTrim(std::string &s)
Trim leading and trailing whitespace inplace.