QCollatorSortKey Class

The QCollatorSortKey class can be used to speed up string collation. More...

Header: #include <QCollatorSortKey>
qmake: QT += core
Since: Qt 5.2

Note: All functions in this class are reentrant.

Public Functions

QCollatorSortKey(const QCollatorSortKey &other)
~QCollatorSortKey()
QCollatorSortKey &operator=(const QCollatorSortKey &other)
bool operator<(const QCollatorSortKey &lhs, const QCollatorSortKey &rhs)

Detailed Description

The QCollatorSortKey class can be used to speed up string collation.

The QCollatorSortKey class is always created by QCollator::sortKey() and is used for fast strings collation, for example when collating many strings.

See also QCollator and QCollator::sortKey().

Member Function Documentation

QCollatorSortKey::QCollatorSortKey(const QCollatorSortKey &other)

Constructs a copy of the other collator key.

QCollatorSortKey::~QCollatorSortKey()

Destroys the collator key.

QCollatorSortKey &QCollatorSortKey::operator=(const QCollatorSortKey &other)

Assigns other to this collator key.

Related Non-Members

bool operator<(const QCollatorSortKey &lhs, const QCollatorSortKey &rhs)

According to the QCollator that created the keys, returns true if lhs should be sorted before rhs; otherwise returns false.

See also QCollatorSortKey::compare().