2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QSTRINGMATCHER_H
|
|
|
|
#define GEN_QSTRINGMATCHER_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QChar;
|
|
|
|
class QStringMatcher;
|
|
|
|
#else
|
|
|
|
typedef struct QChar QChar;
|
|
|
|
typedef struct QStringMatcher QStringMatcher;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QStringMatcher* QStringMatcher_new();
|
2024-09-14 22:29:05 +00:00
|
|
|
QStringMatcher* QStringMatcher_new2(struct miqt_string* pattern);
|
2024-08-29 07:01:51 +00:00
|
|
|
QStringMatcher* QStringMatcher_new3(QChar* uc, int lenVal);
|
|
|
|
QStringMatcher* QStringMatcher_new4(QStringMatcher* other);
|
2024-09-18 00:12:02 +00:00
|
|
|
QStringMatcher* QStringMatcher_new5(struct miqt_string* pattern, int cs);
|
|
|
|
QStringMatcher* QStringMatcher_new6(QChar* uc, int lenVal, int cs);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QStringMatcher_OperatorAssign(QStringMatcher* self, QStringMatcher* other);
|
2024-09-14 22:29:05 +00:00
|
|
|
void QStringMatcher_SetPattern(QStringMatcher* self, struct miqt_string* pattern);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QStringMatcher_SetCaseSensitivity(QStringMatcher* self, int cs);
|
2024-09-14 22:29:05 +00:00
|
|
|
int QStringMatcher_IndexIn(const QStringMatcher* self, struct miqt_string* str);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QStringMatcher_IndexIn2(const QStringMatcher* self, QChar* str, int length);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QStringMatcher_Pattern(const QStringMatcher* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QStringMatcher_CaseSensitivity(const QStringMatcher* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
int QStringMatcher_IndexIn22(const QStringMatcher* self, struct miqt_string* str, int from);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QStringMatcher_IndexIn3(const QStringMatcher* self, QChar* str, int length, int from);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QStringMatcher_Delete(QStringMatcher* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|