20#include <QtCore/private/qglobal_p.h>
24#include <unicode/ucol.h>
25#elif defined(Q_OS_MACOS)
26#include <CoreServices/CoreServices.h>
27#elif defined(Q_OS_WIN)
28#include <qt_windows.h>
34typedef UCollator *CollatorType;
35typedef QByteArray CollatorKeyType;
36const CollatorType NoCollator =
nullptr;
38#elif defined(Q_OS_MACOS)
39typedef CollatorRef CollatorType;
40typedef QList<UCCollationValue> CollatorKeyType;
41const CollatorType NoCollator = 0;
43#elif defined(Q_OS_WIN)
44typedef QByteArray CollatorKeyType;
45typedef int CollatorType;
46const CollatorType NoCollator = 0;
49typedef QList<
wchar_t> CollatorKeyType;
68 bool isC()
const {
return locale.language() == QLocale::C; }
91 friend class QCollator;
93 template <
typename...T>
QCollatorPrivate(const QLocale &locale)
Qt::CaseSensitivity caseSensitivity
QCollatorSortKeyPrivate(T &&...args)
Combined button and popup list for selecting options.
const CollatorType NoCollator
GenerationalCollator(const QCollator ©)
GenerationalCollator()=default