Go to the documentation of this file.
86 const std::string& str,
127 const bool ok = (std::string::npos ==
find(
'$'));
133 <<
"Unexpanded '$' in " << *
this <<
nl
147 expr.string::operator=(str);
158 expr.string::operator=(std::move(str));
169 string::operator=(str);
182 string::operator=(str);
195 string::operator=(std::move(str));
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static exprString toExpr(const std::string &str)
Copy convert string to exprString.
A class for handling character strings derived from std::string.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
exprString()=default
Default construct.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
label find(const ListType &input, const UnaryPredicate &pred, const label start=0)
Find index of the first occurrence that satisfies the predicate.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool valid() const
Check for unexpanded '$' entries. Fatal if any exist.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A variant of Foam::string with expansion of dictionary variables into a comma-separated form.
string removeComments(const std::string &s)
Return string with C/C++ comments removed.
string expand(const std::string &s, const HashTable< string > &mapping, const char sigil='$')
exprString & operator=(const exprString &str)=default
Copy assign.