mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
17 lines
532 B
C
17 lines
532 B
C
|
|
|
|
#ifndef __QNATURALSORTING_H
|
|
#define __QNATURALSORTING_H
|
|
|
|
#include <QString>
|
|
#include <QFileInfo>
|
|
#include "library_item.h"
|
|
|
|
int naturalCompare(const QString &s1, const QString &s2, Qt::CaseSensitivity caseSensitivity);
|
|
bool naturalSortLessThanCS(const QString &left, const QString &right);
|
|
bool naturalSortLessThanCI(const QString &left, const QString &right);
|
|
bool naturalSortLessThanCIFileInfo(const QFileInfo &left, const QFileInfo &right);
|
|
bool naturalSortLessThanCILibraryItem(LibraryItem *left, LibraryItem *right);
|
|
|
|
#endif
|