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"
|
|
|
|
|
|
|
|
#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-08-29 07:01:51 +00:00
|
|
|
QStringMatcher* QStringMatcher_new2(const char* pattern, size_t pattern_Strlen);
|
|
|
|
QStringMatcher* QStringMatcher_new3(QChar* uc, int lenVal);
|
|
|
|
QStringMatcher* QStringMatcher_new4(QStringMatcher* other);
|
|
|
|
QStringMatcher* QStringMatcher_new5(const char* pattern, size_t pattern_Strlen, uintptr_t cs);
|
|
|
|
QStringMatcher* QStringMatcher_new6(QChar* uc, int lenVal, uintptr_t cs);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QStringMatcher_OperatorAssign(QStringMatcher* self, QStringMatcher* other);
|
|
|
|
void QStringMatcher_SetPattern(QStringMatcher* self, const char* pattern, size_t pattern_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QStringMatcher_SetCaseSensitivity(QStringMatcher* self, uintptr_t cs);
|
2024-08-25 04:08:24 +00:00
|
|
|
int QStringMatcher_IndexIn(QStringMatcher* self, const char* str, size_t str_Strlen);
|
|
|
|
int QStringMatcher_IndexIn2(QStringMatcher* self, QChar* str, int length);
|
|
|
|
void QStringMatcher_Pattern(QStringMatcher* self, char** _out, int* _out_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
uintptr_t QStringMatcher_CaseSensitivity(QStringMatcher* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
int QStringMatcher_IndexIn22(QStringMatcher* self, const char* str, size_t str_Strlen, int from);
|
|
|
|
int QStringMatcher_IndexIn3(QStringMatcher* self, QChar* str, int length, int from);
|
|
|
|
void QStringMatcher_Delete(QStringMatcher* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|