13 bool wasNumerical =
false;
14 int currentNumber = 0;
15 for (
const QChar& cc : s)
19 int digit = cc.unicode() -
'0';
21 currentNumber = currentNumber * 10 + digit;
23 currentNumber = digit;
45 bool number_mode =
false;
80 else if (*a_it != *b_it)
114 int n = na < nb ? na : nb;
117 for (
int i=0; i<
n; i++)
124 if (na < nb)
return true;
125 if (nb > na)
return false;
NumeratedString(const QString &s)
int numericStringCompare(QString a_num, QString b_num)
bool naturalOrderCompare(const QString &a, const QString &b)
bool numeratedOrderCompare(const QString &a, const QString &b)
int compare(mSortMechanism mechanism, QString a, QString b)
bool lexicalOrderCompare(const QString &a, const QString &b)
bool isNull() const const
bool isNumber() const const
void append(const T &value)
const T & at(int i) const const
int compare(const QString &other, Qt::CaseSensitivity cs) const const
QString::const_iterator constBegin() const const
QString rightJustified(int width, QChar fill, bool truncate) const const