25 #include <QStaticStringData>
26 #include <QStringData>
27 #include <QStringDataPtr>
86 if (formula.isEmpty())
100 cal->SetExpr(formula);
116 if (tokens.isEmpty() && numbers.size() == 1)
void setAllowSubexpressions(bool value)
void SetExpr(const QString &a_sExpr)
Set the formula.
void SetVarFactory(facfun_type a_pFactory, void *pUserData=nullptr)
Set a function that can create variable pointer for unknown expression variables.
qreal Eval() const
Calculate the result.
Error class of the parser.
static bool IsSingle(const QString &formula)
IsSingle test formula and return true if it contain only one number.
virtual ~QmuTokenParser() Q_DECL_OVERRIDE
Namespace for mathematical applications.
This file defines the error class used by the parser.