39 const bool stripComments
56 const bool stripComments
59 inplaceExpand(*
this,
dict, stripComments);
84 this->expand(
dict,
true);
102 const bool ok = (writeEmpty || !empty());
106 if (!keyword.empty())
108 os.writeKeyword(keyword);
readOption
Enumeration defining read preferences.
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.
bool valid() const
Check for unexpanded '$' entries. Fatal if any exist.
static void inplaceExpand(std::string &str, const dictionary &dict, const bool stripComments=true)
Inplace expansion with dictionary variables, and strip any embedded C/C++ comments.
void expand(const dictionary &dict, const bool stripComments=true)
Inplace expansion with dictionary variables, and strip any embedded C/C++ comments.
bool readEntry(const word &keyword, const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ)
Read/expand entry with dictionary variables, and strip any embedded C/C++ comments from the input.
bool writeEntry(const word &keyword, Ostream &os, bool writeEmpty=false) const
Dictionary entry for expression string, normally suppressing empty strings. Generally uses verbatim o...
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)
void inplaceRemoveComments(std::string &s)
Remove C/C++ comments inplace.
void inplaceTrim(std::string &s)
Trim leading and trailing whitespace inplace.