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