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 QString CollatorKeyType;
45typedef int CollatorType;
46const CollatorType NoCollator = 0;
49typedef QList<
wchar_t> CollatorKeyType;
59#if defined(Q_OS_WIN) && !QT_CONFIG(icu)
71 bool isC() {
return locale.language() == QLocale::C; }
94 friend class QCollator;
96 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