The QCollatorSortKey class can be used to speed up string collation. More...
|qmake:||QT += core|
This class was introduced in Qt 5.2.
Note: All functions in this class are reentrant.
|QCollatorSortKey(const QCollatorSortKey &other)|
|QCollatorSortKey &||operator=(QCollatorSortKey &&other)|
|QCollatorSortKey &||operator=(const QCollatorSortKey &other)|
|int||compare(const QCollatorSortKey &otherKey) const|
|bool||operator<(const QCollatorSortKey &lhs, const QCollatorSortKey &rhs)|
The QCollatorSortKey class is always created by QCollator::sortKey() and is used for fast strings collation, for example when collating many strings.
Constructs a copy of the other collator key.
Move-assigns other to this collator key.
Assigns other to this collator key.
Destroys the collator key.
Compares this key to otherKey.
Returns a negative value if the key is less than otherKey, 0 if the key is equal to otherKey or a positive value if the key is greater than otherKey.
See also operator<().
Swaps this collator key with other.
According to the QCollator that created the keys, returns
true if lhs should be sorted before rhs; otherwise returns
See also QCollatorSortKey::compare().
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.