The QCollatorSortKey class can be used to speed up string collation. More...
|CMake:|| find_package(Qt6 REQUIRED COMPONENTS Core) |
target_link_libraries(mytarget PRIVATE Qt6::Core)
|qmake:||QT += core|
- List of all members, including inherited members
- QCollatorSortKey is part of Classes for String Data and Implicitly Shared Classes.
Note: All functions in this class are reentrant.
|QCollatorSortKey(const QCollatorSortKey &other)|
|int||compare(const QCollatorSortKey &otherKey) const|
|QCollatorSortKey &||operator=(const QCollatorSortKey &other)|
|QCollatorSortKey &||operator=(QCollatorSortKey &&other)|
|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.
Member Function Documentation
QCollatorSortKey::QCollatorSortKey(const QCollatorSortKey &other)
Constructs a copy of the other collator key.
Destroys the collator key.
int QCollatorSortKey::compare(const QCollatorSortKey &otherKey) const
Returns a negative value if this key sorts before otherKey, 0 if the two keys are equal or a positive value if this key sorts after otherKey.
See also operator<().
void QCollatorSortKey::swap(QCollatorSortKey &other)
Swaps this collator key with other.
QCollatorSortKey &QCollatorSortKey::operator=(const QCollatorSortKey &other)
Assigns other to this collator key.
QCollatorSortKey &QCollatorSortKey::operator=(QCollatorSortKey &&other)
Move-assigns other to this collator key.
bool operator<(const QCollatorSortKey &lhs, const QCollatorSortKey &rhs)
See also QCollatorSortKey::compare().
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.