Go to the documentation of this file.
39 const std::string& str,
53 pos = trimPoints.first;
54 len = (trimPoints.second - trimPoints.first);
67 result = std::move(driver.
result());
73 <<
"Failed evaluation: "
74 << str.substr(
pos, len) <<
nl;
80 if (result.
size() <= 1)
95 const std::string& str,
String expression evaluation.
Driver for generic primitive field expressions.
Input/output from string buffers.
const exprResult & result() const noexcept
A class for handling character strings derived from std::string.
A polymorphic field/result from evaluating an expression.
void writeField(Ostream &os, const word &keyword="") const
void writeValue(Ostream &os) const
std::pair< size_t, size_t > findTrim(const std::string &s, size_t pos=0, size_t len=std::string::npos)
OBJstream os(runTime.globalPath()/outputName)
virtual unsigned parse(const std::string &expr, size_t pos=0, size_t len=std::string::npos)
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)
dimensionedScalar pos(const dimensionedScalar &ds)