![]() |
HAL
|
#include <sort.h>
Public Member Functions | |
NumeratedString (const QString &s) | |
![]() | |
QString () | |
QString (const QChar *unicode, int size) | |
QString (QChar ch) | |
QString (int size, QChar ch) | |
QString (QLatin1String str) | |
QString (const QString &other) | |
~QString () | |
QString & | operator= (QChar ch) |
QString & | operator= (const QString &other) |
QString & | operator= (QLatin1String str) |
QString (QString &&other) | |
QString & | operator= (QString &&other) |
void | swap (QString &other) |
int | size () const const |
int | count () const const |
int | length () const const |
bool | isEmpty () const const |
void | resize (int size) |
void | resize (int size, QChar fillChar) |
QString & | fill (QChar ch, int size) |
void | truncate (int position) |
void | chop (int n) |
int | capacity () const const |
void | reserve (int size) |
void | squeeze () |
const QChar * | unicode () const const |
QChar * | data () |
const QChar * | data () const const |
const QChar * | constData () const const |
void | clear () |
const QChar | at (int position) const const |
const QChar | operator[] (int position) const const |
QCharRef | operator[] (int position) |
const QChar | operator[] (uint position) const const |
QCharRef | operator[] (uint position) |
QChar | front () const const |
QCharRef | front () |
QChar | back () const const |
QCharRef | back () |
QString | arg (qlonglong a, int fieldWidth, int base, QChar fillChar) const const |
QString | arg (qulonglong a, int fieldWidth, int base, QChar fillChar) const const |
QString | arg (long a, int fieldWidth, int base, QChar fillChar) const const |
QString | arg (ulong a, int fieldWidth, int base, QChar fillChar) const const |
QString | arg (int a, int fieldWidth, int base, QChar fillChar) const const |
QString | arg (uint a, int fieldWidth, int base, QChar fillChar) const const |
QString | arg (short a, int fieldWidth, int base, QChar fillChar) const const |
QString | arg (ushort a, int fieldWidth, int base, QChar fillChar) const const |
QString | arg (double a, int fieldWidth, char format, int precision, QChar fillChar) const const |
QString | arg (char a, int fieldWidth, QChar fillChar) const const |
QString | arg (QChar a, int fieldWidth, QChar fillChar) const const |
QString | arg (const QString &a, int fieldWidth, QChar fillChar) const const |
QString | arg (QStringView a, int fieldWidth, QChar fillChar) const const |
QString | arg (QLatin1String a, int fieldWidth, QChar fillChar) const const |
QString | arg (const QString &a1, const QString &a2) const const |
QString | arg (const QString &a1, const QString &a2, const QString &a3) const const |
QString | arg (const QString &a1, const QString &a2, const QString &a3, const QString &a4) const const |
QString | arg (const QString &a1, const QString &a2, const QString &a3, const QString &a4, const QString &a5) const const |
QString | arg (const QString &a1, const QString &a2, const QString &a3, const QString &a4, const QString &a5, const QString &a6) const const |
QString | arg (const QString &a1, const QString &a2, const QString &a3, const QString &a4, const QString &a5, const QString &a6, const QString &a7) const const |
QString | arg (const QString &a1, const QString &a2, const QString &a3, const QString &a4, const QString &a5, const QString &a6, const QString &a7, const QString &a8) const const |
QString | arg (const QString &a1, const QString &a2, const QString &a3, const QString &a4, const QString &a5, const QString &a6, const QString &a7, const QString &a8, const QString &a9) const const |
QString | arg (Args &&... args) const const |
QString & | vsprintf (const char *cformat, va_list ap) |
QString & | sprintf (const char *cformat,...) |
int | indexOf (QChar ch, int from, Qt::CaseSensitivity cs) const const |
int | indexOf (QLatin1String str, int from, Qt::CaseSensitivity cs) const const |
int | indexOf (const QString &str, int from, Qt::CaseSensitivity cs) const const |
int | indexOf (const QStringRef &str, int from, Qt::CaseSensitivity cs) const const |
int | indexOf (QStringView str, int from, Qt::CaseSensitivity cs) const const |
int | lastIndexOf (QChar ch, int from, Qt::CaseSensitivity cs) const const |
int | lastIndexOf (QLatin1String str, int from, Qt::CaseSensitivity cs) const const |
int | lastIndexOf (const QString &str, int from, Qt::CaseSensitivity cs) const const |
int | lastIndexOf (const QStringRef &str, int from, Qt::CaseSensitivity cs) const const |
int | lastIndexOf (QStringView str, int from, Qt::CaseSensitivity cs) const const |
bool | contains (QChar ch, Qt::CaseSensitivity cs) const const |
bool | contains (const QString &str, Qt::CaseSensitivity cs) const const |
bool | contains (const QStringRef &str, Qt::CaseSensitivity cs) const const |
bool | contains (QLatin1String str, Qt::CaseSensitivity cs) const const |
bool | contains (QStringView str, Qt::CaseSensitivity cs) const const |
int | count (QChar ch, Qt::CaseSensitivity cs) const const |
int | count (const QString &str, Qt::CaseSensitivity cs) const const |
int | count (const QStringRef &str, Qt::CaseSensitivity cs) const const |
int | indexOf (const QRegExp &rx, int from) const const |
int | lastIndexOf (const QRegExp &rx, int from) const const |
bool | contains (const QRegExp &rx) const const |
int | count (const QRegExp &rx) const const |
int | indexOf (QRegExp &rx, int from) const const |
int | lastIndexOf (QRegExp &rx, int from) const const |
bool | contains (QRegExp &rx) const const |
int | indexOf (const QRegularExpression &re, int from) const const |
int | indexOf (const QRegularExpression &re, int from, QRegularExpressionMatch *rmatch) const const |
int | lastIndexOf (const QRegularExpression &re, int from) const const |
int | lastIndexOf (const QRegularExpression &re, int from, QRegularExpressionMatch *rmatch) const const |
bool | contains (const QRegularExpression &re) const const |
bool | contains (const QRegularExpression &re, QRegularExpressionMatch *rmatch) const const |
int | count (const QRegularExpression &re) const const |
QString | section (QChar sep, int start, int end, QString::SectionFlags flags) const const |
QString | section (const QString &sep, int start, int end, QString::SectionFlags flags) const const |
QString | section (const QRegExp ®, int start, int end, QString::SectionFlags flags) const const |
QString | section (const QRegularExpression &re, int start, int end, QString::SectionFlags flags) const const |
QString | left (int n) const const |
QString | right (int n) const const |
QString | mid (int position, int n) const const |
QString | chopped (int len) const const |
QStringRef | leftRef (int n) const const |
QStringRef | rightRef (int n) const const |
QStringRef | midRef (int position, int n) const const |
bool | startsWith (const QString &s, Qt::CaseSensitivity cs) const const |
bool | startsWith (const QStringRef &s, Qt::CaseSensitivity cs) const const |
bool | startsWith (QStringView str, Qt::CaseSensitivity cs) const const |
bool | startsWith (QLatin1String s, Qt::CaseSensitivity cs) const const |
bool | startsWith (QChar c, Qt::CaseSensitivity cs) const const |
bool | endsWith (const QString &s, Qt::CaseSensitivity cs) const const |
bool | endsWith (const QStringRef &s, Qt::CaseSensitivity cs) const const |
bool | endsWith (QStringView str, Qt::CaseSensitivity cs) const const |
bool | endsWith (QLatin1String s, Qt::CaseSensitivity cs) const const |
bool | endsWith (QChar c, Qt::CaseSensitivity cs) const const |
bool | isUpper () const const |
bool | isLower () const const |
QString | leftJustified (int width, QChar fill, bool truncate) const const |
QString | rightJustified (int width, QChar fill, bool truncate) const const |
QString | toLower () const const |
QString | toUpper () const const |
QString | toCaseFolded () const const |
QString | trimmed () const const |
QString | simplified () const const |
QString | toHtmlEscaped () const const |
QString & | insert (int position, QChar ch) |
QString & | insert (int position, const QChar *unicode, int size) |
QString & | insert (int position, const QString &str) |
QString & | insert (int position, const QStringRef &str) |
QString & | insert (int position, QStringView str) |
QString & | insert (int position, QLatin1String str) |
QString & | append (QChar ch) |
QString & | append (const QChar *str, int len) |
QString & | append (const QString &str) |
QString & | append (const QStringRef &reference) |
QString & | append (QLatin1String str) |
QString & | append (QStringView str) |
QString & | prepend (QChar ch) |
QString & | prepend (const QChar *str, int len) |
QString & | prepend (const QString &str) |
QString & | prepend (const QStringRef &str) |
QString & | prepend (QLatin1String str) |
QString & | prepend (QStringView str) |
QString & | operator+= (QChar ch) |
QString & | operator+= (const QString &other) |
QString & | operator+= (const QStringRef &str) |
QString & | operator+= (QLatin1String str) |
QString & | operator+= (QStringView str) |
QString & | remove (int position, int n) |
QString & | remove (QChar ch, Qt::CaseSensitivity cs) |
QString & | remove (QLatin1String str, Qt::CaseSensitivity cs) |
QString & | remove (const QString &str, Qt::CaseSensitivity cs) |
QString & | replace (int position, int n, QChar after) |
QString & | replace (int position, int n, const QChar *unicode, int size) |
QString & | replace (int position, int n, const QString &after) |
QString & | replace (QChar before, QChar after, Qt::CaseSensitivity cs) |
QString & | replace (const QChar *before, int blen, const QChar *after, int alen, Qt::CaseSensitivity cs) |
QString & | replace (QLatin1String before, QLatin1String after, Qt::CaseSensitivity cs) |
QString & | replace (QLatin1String before, const QString &after, Qt::CaseSensitivity cs) |
QString & | replace (const QString &before, QLatin1String after, Qt::CaseSensitivity cs) |
QString & | replace (const QString &before, const QString &after, Qt::CaseSensitivity cs) |
QString & | replace (QChar ch, const QString &after, Qt::CaseSensitivity cs) |
QString & | replace (QChar c, QLatin1String after, Qt::CaseSensitivity cs) |
QString & | replace (const QRegExp &rx, const QString &after) |
QString & | remove (const QRegExp &rx) |
QString & | replace (const QRegularExpression &re, const QString &after) |
QString & | remove (const QRegularExpression &re) |
QStringList | split (const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const |
QVector< QStringRef > | splitRef (const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const |
QStringList | split (QChar sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const |
QVector< QStringRef > | splitRef (QChar sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const |
QStringList | split (const QRegExp &rx, QString::SplitBehavior behavior) const const |
QVector< QStringRef > | splitRef (const QRegExp &rx, QString::SplitBehavior behavior) const const |
QStringList | split (const QRegularExpression &re, QString::SplitBehavior behavior) const const |
QVector< QStringRef > | splitRef (const QRegularExpression &re, QString::SplitBehavior behavior) const const |
QStringList | split (const QString &sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const |
QVector< QStringRef > | splitRef (const QString &sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const |
QStringList | split (QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const |
QVector< QStringRef > | splitRef (QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const |
QStringList | split (const QRegExp &rx, Qt::SplitBehavior behavior) const const |
QVector< QStringRef > | splitRef (const QRegExp &rx, Qt::SplitBehavior behavior) const const |
QStringList | split (const QRegularExpression &re, Qt::SplitBehavior behavior) const const |
QVector< QStringRef > | splitRef (const QRegularExpression &re, Qt::SplitBehavior behavior) const const |
QString | normalized (QString::NormalizationForm mode, QChar::UnicodeVersion version) const const |
QString | repeated (int times) const const |
const ushort * | utf16 () const const |
QByteArray | toLatin1 () const const |
QByteArray | toUtf8 () const const |
QByteArray | toLocal8Bit () const const |
QVector< uint > | toUcs4 () const const |
QByteArray | toAscii () const const |
int | toWCharArray (wchar_t *array) const const |
QString & | setRawData (const QChar *unicode, int size) |
QString & | setUnicode (const QChar *unicode, int size) |
QString & | setUtf16 (const ushort *unicode, int size) |
int | compare (const QString &other, Qt::CaseSensitivity cs) const const |
int | compare (const QStringRef &ref, Qt::CaseSensitivity cs) const const |
int | compare (QLatin1String other, Qt::CaseSensitivity cs) const const |
int | compare (QStringView s, Qt::CaseSensitivity cs) const const |
int | compare (QChar ch, Qt::CaseSensitivity cs) const const |
int | localeAwareCompare (const QString &other) const const |
int | localeAwareCompare (const QStringRef &other) const const |
short | toShort (bool *ok, int base) const const |
ushort | toUShort (bool *ok, int base) const const |
int | toInt (bool *ok, int base) const const |
uint | toUInt (bool *ok, int base) const const |
long | toLong (bool *ok, int base) const const |
ulong | toULong (bool *ok, int base) const const |
qlonglong | toLongLong (bool *ok, int base) const const |
qulonglong | toULongLong (bool *ok, int base) const const |
float | toFloat (bool *ok) const const |
double | toDouble (bool *ok) const const |
QString & | setNum (short n, int base) |
QString & | setNum (ushort n, int base) |
QString & | setNum (int n, int base) |
QString & | setNum (uint n, int base) |
QString & | setNum (long n, int base) |
QString & | setNum (ulong n, int base) |
QString & | setNum (qlonglong n, int base) |
QString & | setNum (qulonglong n, int base) |
QString & | setNum (float n, char format, int precision) |
QString & | setNum (double n, char format, int precision) |
bool | operator== (QLatin1String other) const const |
bool | operator< (QLatin1String other) const const |
bool | operator> (QLatin1String other) const const |
bool | operator!= (QLatin1String other) const const |
bool | operator<= (QLatin1String other) const const |
bool | operator>= (QLatin1String other) const const |
QString (const char *str) | |
QString (const QByteArray &ba) | |
QString & | operator= (const char *str) |
QString & | operator= (const QByteArray &ba) |
QString & | operator= (char ch) |
QString & | prepend (const char *str) |
QString & | prepend (const QByteArray &ba) |
QString & | append (const char *str) |
QString & | append (const QByteArray &ba) |
QString & | insert (int position, const char *str) |
QString & | insert (int position, const QByteArray &str) |
QString & | operator+= (const char *str) |
QString & | operator+= (const QByteArray &ba) |
QString & | operator+= (char ch) |
bool | operator== (const char *other) const const |
bool | operator!= (const char *other) const const |
bool | operator< (const char *other) const const |
bool | operator<= (const char *other) const const |
bool | operator> (const char *other) const const |
bool | operator>= (const char *other) const const |
bool | operator== (const QByteArray &other) const const |
bool | operator!= (const QByteArray &other) const const |
bool | operator< (const QByteArray &other) const const |
bool | operator> (const QByteArray &other) const const |
bool | operator<= (const QByteArray &other) const const |
bool | operator>= (const QByteArray &other) const const |
QString::iterator | begin () |
QString::const_iterator | begin () const const |
QString::const_iterator | cbegin () const const |
QString::const_iterator | constBegin () const const |
QString::iterator | end () |
QString::const_iterator | end () const const |
QString::const_iterator | cend () const const |
QString::const_iterator | constEnd () const const |
QString::reverse_iterator | rbegin () |
QString::reverse_iterator | rend () |
QString::const_reverse_iterator | rbegin () const const |
QString::const_reverse_iterator | rend () const const |
QString::const_reverse_iterator | crbegin () const const |
QString::const_reverse_iterator | crend () const const |
void | push_back (QChar ch) |
void | push_back (const QString &other) |
void | push_front (QChar ch) |
void | push_front (const QString &other) |
void | shrink_to_fit () |
std::string | toStdString () const const |
std::wstring | toStdWString () const const |
std::u16string | toStdU16String () const const |
std::u32string | toStdU32String () const const |
CFStringRef | toCFString () const const |
NSString * | toNSString () const const |
bool | isNull () const const |
bool | isRightToLeft () const const |
bool | isValidUtf16 () const const |
QT_RESTRICTED_CAST_FROM_ASCII QT_RESTRICTED_CAST_FROM_ASCII | |
QT_NO_CAST_FROM_ASCII QT_NO_CAST_FROM_ASCII | |
QT_NO_CAST_TO_ASCII QT_NO_CAST_TO_ASCII | |
bool | operator== (const QString &s1, const QString &s2) |
bool | operator< (const QString &s1, const QString &s2) |
bool | operator<= (const QString &s1, const QString &s2) |
bool | operator> (const QString &s1, const QString &s2) |
bool | operator>= (const QString &s1, const QString &s2) |
bool | operator!= (const QString &s1, const QString &s2) |
bool | operator== (const char *s1, const QString &s2) |
bool | operator!= (const char *s1, const QString &s2) |
bool | operator< (const char *s1, const QString &s2) |
bool | operator<= (const char *s1, const QString &s2) |
bool | operator> (const char *s1, const QString &s2) |
bool | operator>= (const char *s1, const QString &s2) |
const QString | operator+ (const QString &s1, const QString &s2) |
const QString | operator+ (const QString &s1, const char *s2) |
const QString | operator+ (const char *s1, const QString &s2) |
const QString | operator+ (const QString &s, char ch) |
const QString | operator+ (char ch, const QString &s) |
QDataStream & | operator<< (QDataStream &stream, const QString &string) |
QDataStream & | operator>> (QDataStream &stream, QString &string) |
QStringLiteral (str) | |
Public Attributes | |
QString | mRemainder |
QList< int > | mNumList |
![]() | |
typedef | SectionFlags |
typedef | iterator |
typedef | const_iterator |
typedef | Iterator |
typedef | ConstIterator |
typedef | reverse_iterator |
typedef | const_reverse_iterator |
typedef | size_type |
typedef | difference_type |
typedef | const_reference |
typedef | reference |
typedef | pointer |
typedef | const_pointer |
typedef | value_type |
SectionDefault | |
SectionSkipEmpty | |
SectionIncludeLeadingSep | |
SectionIncludeTrailingSep | |
SectionCaseInsensitiveSeps | |
KeepEmptyParts | |
SkipEmptyParts | |
NormalizationForm_D | |
NormalizationForm_C | |
NormalizationForm_KD | |
NormalizationForm_KC | |
Additional Inherited Members | |
![]() | |
enum | SectionFlag |
enum | SplitBehavior |
enum | NormalizationForm |
![]() | |
QString | vasprintf (const char *cformat, va_list ap) |
QString | asprintf (const char *cformat,...) |
QString | fromLatin1 (const char *str, int size) |
QString | fromUtf8 (const char *str, int size) |
QString | fromLocal8Bit (const char *str, int size) |
QString | fromLatin1 (const QByteArray &str) |
QString | fromUtf8 (const QByteArray &str) |
QString | fromLocal8Bit (const QByteArray &str) |
QString | fromUtf16 (const ushort *unicode, int size) |
QString | fromUcs4 (const uint *unicode, int size) |
QString | fromRawData (const QChar *unicode, int size) |
QString | fromUtf16 (const char16_t *str, int size) |
QString | fromUcs4 (const char32_t *str, int size) |
QString | fromAscii (const char *str, int size) |
QString | fromAscii (const QByteArray &str) |
QString | fromWCharArray (const wchar_t *string, int size) |
int | compare (const QString &s1, const QString &s2, Qt::CaseSensitivity cs) |
int | compare (const QString &s1, QLatin1String s2, Qt::CaseSensitivity cs) |
int | compare (QLatin1String s1, const QString &s2, Qt::CaseSensitivity cs) |
int | compare (const QString &s1, const QStringRef &s2, Qt::CaseSensitivity cs) |
int | localeAwareCompare (const QString &s1, const QString &s2) |
int | localeAwareCompare (const QString &s1, const QStringRef &s2) |
QString | number (int n, int base) |
QString | number (uint n, int base) |
QString | number (long n, int base) |
QString | number (ulong n, int base) |
QString | number (qlonglong n, int base) |
QString | number (qulonglong n, int base) |
QString | number (double n, char format, int precision) |
QString | fromStdString (const std::string &str) |
QString | fromStdWString (const std::wstring &str) |
QString | fromStdU16String (const std::u16string &str) |
QString | fromStdU32String (const std::u32string &str) |
QString | fromCFString (CFStringRef string) |
QString | fromNSString (const NSString *string) |
The NumeratedString class extends the information of a normal QString by extracting the in the QString contained numbers and saving these to a list. The remaining characters are saved as an additional string. Example: "a123bc9d" -> mNumList={123,9}, mRemainder="abcd"
hal::gui_utility::NumeratedString::NumeratedString | ( | const QString & | s | ) |
Definition at line 11 of file sort.cpp.
References QList::append(), mNumList, and mRemainder.
QList<int> hal::gui_utility::NumeratedString::mNumList |
Definition at line 51 of file sort.h.
Referenced by hal::gui_utility::numeratedOrderCompare(), and NumeratedString().
QString hal::gui_utility::NumeratedString::mRemainder |
Definition at line 50 of file sort.h.
Referenced by hal::gui_utility::numeratedOrderCompare(), and NumeratedString().