25 #include <qcompilerdetection.h>
32 QT_WARNING_DISABLE_GCC(
"-Wattributes")
38 #define INIT_LOCALE_VARIABLES(locale) \
39 const QChar positiveSign = (locale).positiveSign(); \
40 const QChar negativeSign = (locale).negativeSign(); \
41 const QChar sign0 = (locale).toString(0).at(0); \
42 const QChar sign1 = (locale).toString(1).at(0); \
43 const QChar sign2 = (locale).toString(2).at(0); \
44 const QChar sign3 = (locale).toString(3).at(0); \
45 const QChar sign4 = (locale).toString(4).at(0); \
46 const QChar sign5 = (locale).toString(5).at(0); \
47 const QChar sign6 = (locale).toString(6).at(0); \
48 const QChar sign7 = (locale).toString(7).at(0); \
49 const QChar sign8 = (locale).toString(8).at(0); \
50 const QChar sign9 = (locale).toString(9).at(0); \
51 const QChar expUpper = (locale).exponential().toUpper(); \
52 const QChar expLower = (locale).exponential().toLower(); \
53 const QChar decimalPoint = (locale).decimalPoint(); \
54 const QChar groupSeparator = (locale).groupSeparator() \
65 return qFuzzyIsNull(p2);
67 else if(qFuzzyIsNull(p2))
73 return qFuzzyCompare(p1, p2);
77 int ReadVal(
const QString &formula, qreal &val,
const QLocale &locale,
const QChar &decimal,
78 const QChar &thousand);
QT_WARNING_POP static Q_REQUIRED_RESULT bool QmuFuzzyComparePossibleNulls(double p1, double p2)
int ReadVal(const QString &formula, qreal &val, const QLocale &locale, const QChar &decimal, const QChar &thousand)