HAL
hal::gui_utility::NumeratedString Class Reference

#include <sort.h>

Inheritance diagram for hal::gui_utility::NumeratedString:
Inheritance graph
Collaboration diagram for hal::gui_utility::NumeratedString:
Collaboration graph

Public Member Functions

 NumeratedString (const QString &s)
 
- Public Member Functions inherited from QString
 QString ()
 
 QString (const QChar *unicode, int size)
 
 QString (QChar ch)
 
 QString (int size, QChar ch)
 
 QString (QLatin1String str)
 
 QString (const QString &other)
 
 ~QString ()
 
QStringoperator= (QChar ch)
 
QStringoperator= (const QString &other)
 
QStringoperator= (QLatin1String str)
 
 QString (QString &&other)
 
QStringoperator= (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)
 
QStringfill (QChar ch, int size)
 
void truncate (int position)
 
void chop (int n)
 
int capacity () const const
 
void reserve (int size)
 
void squeeze ()
 
const QCharunicode () const const
 
QChardata ()
 
const QChardata () const const
 
const QCharconstData () 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
 
QStringvsprintf (const char *cformat, va_list ap)
 
QStringsprintf (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 &reg, 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
 
QStringinsert (int position, QChar ch)
 
QStringinsert (int position, const QChar *unicode, int size)
 
QStringinsert (int position, const QString &str)
 
QStringinsert (int position, const QStringRef &str)
 
QStringinsert (int position, QStringView str)
 
QStringinsert (int position, QLatin1String str)
 
QStringappend (QChar ch)
 
QStringappend (const QChar *str, int len)
 
QStringappend (const QString &str)
 
QStringappend (const QStringRef &reference)
 
QStringappend (QLatin1String str)
 
QStringappend (QStringView str)
 
QStringprepend (QChar ch)
 
QStringprepend (const QChar *str, int len)
 
QStringprepend (const QString &str)
 
QStringprepend (const QStringRef &str)
 
QStringprepend (QLatin1String str)
 
QStringprepend (QStringView str)
 
QStringoperator+= (QChar ch)
 
QStringoperator+= (const QString &other)
 
QStringoperator+= (const QStringRef &str)
 
QStringoperator+= (QLatin1String str)
 
QStringoperator+= (QStringView str)
 
QStringremove (int position, int n)
 
QStringremove (QChar ch, Qt::CaseSensitivity cs)
 
QStringremove (QLatin1String str, Qt::CaseSensitivity cs)
 
QStringremove (const QString &str, Qt::CaseSensitivity cs)
 
QStringreplace (int position, int n, QChar after)
 
QStringreplace (int position, int n, const QChar *unicode, int size)
 
QStringreplace (int position, int n, const QString &after)
 
QStringreplace (QChar before, QChar after, Qt::CaseSensitivity cs)
 
QStringreplace (const QChar *before, int blen, const QChar *after, int alen, Qt::CaseSensitivity cs)
 
QStringreplace (QLatin1String before, QLatin1String after, Qt::CaseSensitivity cs)
 
QStringreplace (QLatin1String before, const QString &after, Qt::CaseSensitivity cs)
 
QStringreplace (const QString &before, QLatin1String after, Qt::CaseSensitivity cs)
 
QStringreplace (const QString &before, const QString &after, Qt::CaseSensitivity cs)
 
QStringreplace (QChar ch, const QString &after, Qt::CaseSensitivity cs)
 
QStringreplace (QChar c, QLatin1String after, Qt::CaseSensitivity cs)
 
QStringreplace (const QRegExp &rx, const QString &after)
 
QStringremove (const QRegExp &rx)
 
QStringreplace (const QRegularExpression &re, const QString &after)
 
QStringremove (const QRegularExpression &re)
 
QStringList split (const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
 
QVector< QStringRefsplitRef (const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
 
QStringList split (QChar sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
 
QVector< QStringRefsplitRef (QChar sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
 
QStringList split (const QRegExp &rx, QString::SplitBehavior behavior) const const
 
QVector< QStringRefsplitRef (const QRegExp &rx, QString::SplitBehavior behavior) const const
 
QStringList split (const QRegularExpression &re, QString::SplitBehavior behavior) const const
 
QVector< QStringRefsplitRef (const QRegularExpression &re, QString::SplitBehavior behavior) const const
 
QStringList split (const QString &sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
 
QVector< QStringRefsplitRef (const QString &sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
 
QStringList split (QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
 
QVector< QStringRefsplitRef (QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
 
QStringList split (const QRegExp &rx, Qt::SplitBehavior behavior) const const
 
QVector< QStringRefsplitRef (const QRegExp &rx, Qt::SplitBehavior behavior) const const
 
QStringList split (const QRegularExpression &re, Qt::SplitBehavior behavior) const const
 
QVector< QStringRefsplitRef (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
 
QStringsetRawData (const QChar *unicode, int size)
 
QStringsetUnicode (const QChar *unicode, int size)
 
QStringsetUtf16 (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
 
QStringsetNum (short n, int base)
 
QStringsetNum (ushort n, int base)
 
QStringsetNum (int n, int base)
 
QStringsetNum (uint n, int base)
 
QStringsetNum (long n, int base)
 
QStringsetNum (ulong n, int base)
 
QStringsetNum (qlonglong n, int base)
 
QStringsetNum (qulonglong n, int base)
 
QStringsetNum (float n, char format, int precision)
 
QStringsetNum (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)
 
QStringoperator= (const char *str)
 
QStringoperator= (const QByteArray &ba)
 
QStringoperator= (char ch)
 
QStringprepend (const char *str)
 
QStringprepend (const QByteArray &ba)
 
QStringappend (const char *str)
 
QStringappend (const QByteArray &ba)
 
QStringinsert (int position, const char *str)
 
QStringinsert (int position, const QByteArray &str)
 
QStringoperator+= (const char *str)
 
QStringoperator+= (const QByteArray &ba)
 
QStringoperator+= (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)
 
QDataStreamoperator<< (QDataStream &stream, const QString &string)
 
QDataStreamoperator>> (QDataStream &stream, QString &string)
 
 QStringLiteral (str)
 

Public Attributes

QString mRemainder
 
QList< int > mNumList
 
- Public Attributes inherited from QString
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

- Public Types inherited from QString
enum  SectionFlag
 
enum  SplitBehavior
 
enum  NormalizationForm
 
- Static Public Member Functions inherited from QString
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)
 

Detailed Description

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"

Definition at line 47 of file sort.h.

Constructor & Destructor Documentation

◆ NumeratedString()

hal::gui_utility::NumeratedString::NumeratedString ( const QString s)

Definition at line 11 of file sort.cpp.

References QList::append(), mNumList, and mRemainder.

Member Data Documentation

◆ mNumList

QList<int> hal::gui_utility::NumeratedString::mNumList

Definition at line 51 of file sort.h.

Referenced by hal::gui_utility::numeratedOrderCompare(), and NumeratedString().

◆ mRemainder

QString hal::gui_utility::NumeratedString::mRemainder

Definition at line 50 of file sort.h.

Referenced by hal::gui_utility::numeratedOrderCompare(), and NumeratedString().


The documentation for this class was generated from the following files: