2024-11-17 19:21:37 +13:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QCOLLATOR_H
|
|
|
|
#define MIQT_QT_GEN_QCOLLATOR_H
|
2024-08-25 16:08:24 +12:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 18:07:56 +13:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-15 10:29:05 +12:00
|
|
|
|
2024-08-25 16:08:24 +12:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QChar;
|
|
|
|
class QCollator;
|
|
|
|
class QCollatorSortKey;
|
|
|
|
class QLocale;
|
|
|
|
#else
|
|
|
|
typedef struct QChar QChar;
|
|
|
|
typedef struct QCollator QCollator;
|
|
|
|
typedef struct QCollatorSortKey QCollatorSortKey;
|
|
|
|
typedef struct QLocale QLocale;
|
|
|
|
#endif
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QCollatorSortKey* QCollatorSortKey_new(QCollatorSortKey* other);
|
2025-02-01 13:45:16 +13:00
|
|
|
void QCollatorSortKey_operatorAssign(QCollatorSortKey* self, QCollatorSortKey* other);
|
|
|
|
void QCollatorSortKey_swap(QCollatorSortKey* self, QCollatorSortKey* other);
|
|
|
|
int QCollatorSortKey_compare(const QCollatorSortKey* self, QCollatorSortKey* key);
|
|
|
|
void QCollatorSortKey_delete(QCollatorSortKey* self);
|
2024-08-25 16:08:24 +12:00
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QCollator* QCollator_new();
|
|
|
|
QCollator* QCollator_new2(QLocale* locale);
|
|
|
|
QCollator* QCollator_new3(QCollator* param1);
|
2025-02-01 13:45:16 +13:00
|
|
|
void QCollator_operatorAssign(QCollator* self, QCollator* param1);
|
|
|
|
void QCollator_swap(QCollator* self, QCollator* other);
|
|
|
|
void QCollator_setLocale(QCollator* self, QLocale* locale);
|
|
|
|
QLocale* QCollator_locale(const QCollator* self);
|
|
|
|
int QCollator_caseSensitivity(const QCollator* self);
|
|
|
|
void QCollator_setCaseSensitivity(QCollator* self, int cs);
|
|
|
|
void QCollator_setNumericMode(QCollator* self, bool on);
|
|
|
|
bool QCollator_numericMode(const QCollator* self);
|
|
|
|
void QCollator_setIgnorePunctuation(QCollator* self, bool on);
|
|
|
|
bool QCollator_ignorePunctuation(const QCollator* self);
|
|
|
|
int QCollator_compare(const QCollator* self, struct miqt_string s1, struct miqt_string s2);
|
|
|
|
int QCollator_compare3(const QCollator* self, QChar* s1, int len1, QChar* s2, int len2);
|
|
|
|
bool QCollator_operatorCall(const QCollator* self, struct miqt_string s1, struct miqt_string s2);
|
|
|
|
QCollatorSortKey* QCollator_sortKey(const QCollator* self, struct miqt_string string);
|
|
|
|
void QCollator_delete(QCollator* self);
|
2024-08-25 16:08:24 +12:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
2025-02-01 13:45:16 +13:00
|
|
|
#endif
|
2024-08-25 16:08:24 +12:00
|
|
|
|
|
|
|
#endif
|