20 #ifndef LIBREPCB_CORE_MATHPARSER_H 21 #define LIBREPCB_CORE_MATHPARSER_H 54 Result() : valid(false), value(0), error() {}
72 void setLocale(
const QLocale& locale) noexcept;
82 Result parse(
const QString& expression)
const noexcept;
QString error
Definition: mathparser.h:52
Definition: occmodel.cpp:77
MathParser() noexcept
Definition: mathparser.cpp:36
void setLocale(const QLocale &locale) noexcept
Set the locale to be used for parsing numbers.
Definition: mathparser.cpp:46
qreal value
Definition: mathparser.h:51
Result parse(const QString &expression) const noexcept
Parse expression.
Definition: mathparser.cpp:50
Mathematical expression parser.
Definition: mathparser.h:45
MathParser & operator=(const MathParser &rhs)=delete
Result()
Definition: mathparser.h:54
bool valid
Definition: mathparser.h:50
Definition: mathparser.h:49
virtual ~MathParser() noexcept
Definition: mathparser.cpp:39
QLocale mLocale
The locale used for parsing numbers.
Definition: mathparser.h:88