39 const bool stripComments
56 const bool stripComments
102 const bool ok = (writeEmpty || !empty());
106 if (!keyword.empty())
108 os.writeKeyword(keyword);
116 tok.setType(token::tokenType::VERBATIM);
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...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void expand(const dictionary &dict, const bool stripComments=true)
Inplace expansion with dictionary variables, and strip any embedded C/C++ comments.
static void inplaceExpand(std::string &s, const dictionary &dict)
Inplace expand expression with dictionary variables/entries.
void inplaceTrim(std::string &s)
Trim leading and trailing whitespace inplace.
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 trim()
Inplace trim leading and trailing whitespace.
A class for handling words, derived from Foam::string.
void inplaceRemoveComments(std::string &s)
Remove C/C++ comments inplace.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void inplaceExpand(std::string &s, const HashTable< string > &mapping, const char sigil='$')
Inplace expand occurrences of variables according to the mapping. Does not use environment values...
OBJstream os(runTime.globalPath()/outputName)
bool writeEntry(const word &keyword, Ostream &os, bool writeEmpty=false) const
Dictionary entry for expression string, normally suppressing empty strings. Generally uses verbatim o...
string expand(const std::string &s, const HashTable< string > &mapping, const char sigil='$')
Expand occurrences of variables according to the mapping and return the expanded string.
readOption
Enumeration defining read preferences.