mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Add case-sensitive & case-insensitive natural sort helper function
Fix helper function not being thread-safe Use QBT_USES_QT5 define
This commit is contained in:
parent
d25430f377
commit
5906a4a2de
10 changed files with 118 additions and 94 deletions
|
|
@ -47,7 +47,8 @@ namespace Utils
|
|||
// Taken from https://crackstation.net/hashing-security.htm
|
||||
bool slowEquals(const QByteArray &a, const QByteArray &b);
|
||||
|
||||
bool naturalCompare(const QString &left, const QString &right);
|
||||
bool naturalCompareCaseSensitive(const QString &left, const QString &right);
|
||||
bool naturalCompareCaseInsensitive(const QString &left, const QString &right);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue