19#include <QtCore/private/qglobal_p.h>
23#include <unicode/ucol.h>
24#elif defined(Q_OS_MACOS)
25#include <CoreServices/CoreServices.h>
26#elif defined(Q_OS_WIN)
27#include <qt_windows.h>
33typedef UCollator *CollatorType;
34typedef QByteArray CollatorKeyType;
35const CollatorType NoCollator =
nullptr;
37#elif defined(Q_OS_MACOS)
38typedef CollatorRef CollatorType;
39typedef QList<UCCollationValue> CollatorKeyType;
40const CollatorType NoCollator = 0;
42#elif defined(Q_OS_WIN)
43typedef QString CollatorKeyType;
44typedef int CollatorType;
45const CollatorType NoCollator = 0;
48typedef QList<
wchar_t> CollatorKeyType;
58#if defined(Q_OS_WIN) && !QT_CONFIG(icu)
70 bool isC() {
return locale.language() == QLocale::C; }
93 friend class QCollator;
95 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