17#ifndef SORT_DIGITSASNUMBERS
18#define SORT_DIGITSASNUMBERS 8
53 return s2.size() ? -1 : 0;
70 const int ret = CompareString(d->localeID, d->
collator,
71 reinterpret_cast<const wchar_t *
>(
s1.data()),
s1.size(),
72 reinterpret_cast<const wchar_t *
>(
s2.data()),
s2.size());
76 switch (DWORD
error = GetLastError()) {
77 case ERROR_INVALID_FLAGS:
80 case ERROR_INVALID_PARAMETER:
81 qWarning(
"Invalid parameter for QCollator::compare()");
84 qWarning(
"Failed (%ld) comparison in QCollator::compare()",
long(
error));
100 int size = LCMapStringW(d->localeID, LCMAP_SORTKEY | d->
collator,
101 reinterpret_cast<const wchar_t*
>(
string.constData()),
string.size(),
105 int finalSize = LCMapStringW(d->localeID, LCMAP_SORTKEY | d->
collator,
106 reinterpret_cast<const wchar_t*
>(
string.constData()),
string.size(),
107 reinterpret_cast<wchar_t*
>(
ret.data()),
ret.size());
108 if (finalSize == 0) {
110 <<
"there were problems when generating the ::sortKey by LCMapStringW with error:"
Qt::CaseSensitivity caseSensitivity
QExplicitlySharedDataPointer< QCollatorSortKeyPrivate > d
int compare(const QCollatorSortKey &key) const
Compares this key to otherKey, which must have been created by the same QCollator's sortKey() as this...
QCollatorSortKey sortKey(const QString &string) const
Returns a sortKey for string.
int compare(const QString &s1, const QString &s2) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
static const QLocalePrivate * get(const QLocale &l)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
constexpr Initialization Uninitialized
#define SORT_DIGITSASNUMBERS
LCID qt_inIsoNametoLCID(const char *name)
DBusConnection const char DBusError * error
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1