26 if (
Q_UNLIKELY(generation != currentGeneration)) {
28 generation = currentGeneration;
119 if (
this != &
other) {
162void QCollator::detach()
346 return defaultCollator->localData().collator().compare(
s1,
s2);
359 return defaultCollator->localData().collator().sortKey(
key.toString());
421 if (
this != &
other) {
T loadRelaxed() const noexcept
Qt::CaseSensitivity caseSensitivity
QExplicitlySharedDataPointer< QCollatorSortKeyPrivate > d
QCollatorSortKey(const QCollatorSortKey &other)
Constructs a copy of the other collator key.
~QCollatorSortKey()
Destroys the collator key.
QCollatorSortKey & operator=(const QCollatorSortKey &other)
Assigns other to this collator key.
bool numericMode() const
Returns true if numeric sorting is enabled, false otherwise.
QLocale locale() const
Returns the locale of the collator.
void setIgnorePunctuation(bool on)
Ignores punctuation and symbols if on is true, attends to them if false.
QCollator & operator=(const QCollator &)
Assigns other to this collator.
void setNumericMode(bool on)
Enables numeric sorting mode when on is true.
bool ignorePunctuation() const
Returns whether punctuation and symbols are ignored when collating.
void setCaseSensitivity(Qt::CaseSensitivity cs)
Sets the case-sensitivity of the collator to cs.
void setLocale(const QLocale &locale)
Sets the locale of the collator to locale.
static int defaultCompare(QStringView s1, QStringView s2)
Qt::CaseSensitivity caseSensitivity() const
Returns case sensitivity of the collator.
static QCollatorSortKey defaultSortKey(QStringView key)
~QCollator()
Destroys this collator.
static QBasicAtomicInt s_generation
Combined button and popup list for selecting options.
static jboolean copy(JNIEnv *, jobject)
#define Q_GLOBAL_STATIC(TYPE, NAME,...)
GLint GLint GLint GLint GLint x
[0]
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
GenerationalCollator(const QCollator ©)
GenerationalCollator()=default