miqt/qt/gen_qregexp.h

55 lines
2.0 KiB
C
Raw Normal View History

#ifndef GEN_QREGEXP_H
#define GEN_QREGEXP_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QRegExp;
#else
typedef struct QRegExp QRegExp;
#endif
QRegExp* QRegExp_new();
QRegExp* QRegExp_new2(QRegExp* rx);
void QRegExp_OperatorAssign(QRegExp* self, QRegExp* rx);
void QRegExp_Swap(QRegExp* self, QRegExp* other);
bool QRegExp_OperatorEqual(QRegExp* self, QRegExp* rx);
bool QRegExp_OperatorNotEqual(QRegExp* self, QRegExp* rx);
bool QRegExp_IsEmpty(QRegExp* self);
bool QRegExp_IsValid(QRegExp* self);
void QRegExp_Pattern(QRegExp* self, char** _out, int* _out_Strlen);
void QRegExp_SetPattern(QRegExp* self, const char* pattern, size_t pattern_Strlen);
bool QRegExp_IsMinimal(QRegExp* self);
void QRegExp_SetMinimal(QRegExp* self, bool minimal);
bool QRegExp_ExactMatch(QRegExp* self, const char* str, size_t str_Strlen);
int QRegExp_MatchedLength(QRegExp* self);
int QRegExp_CaptureCount(QRegExp* self);
void QRegExp_CapturedTexts(QRegExp* self, char*** _out, int** _out_Lengths, size_t* _out_len);
void QRegExp_CapturedTexts2(QRegExp* self, char*** _out, int** _out_Lengths, size_t* _out_len);
void QRegExp_Cap(QRegExp* self, char** _out, int* _out_Strlen);
void QRegExp_Cap2(QRegExp* self, char** _out, int* _out_Strlen);
int QRegExp_Pos(QRegExp* self);
int QRegExp_Pos2(QRegExp* self);
void QRegExp_ErrorString(QRegExp* self, char** _out, int* _out_Strlen);
void QRegExp_ErrorString2(QRegExp* self, char** _out, int* _out_Strlen);
void QRegExp_Escape(const char* str, size_t str_Strlen, char** _out, int* _out_Strlen);
void QRegExp_Cap1(QRegExp* self, int nth, char** _out, int* _out_Strlen);
void QRegExp_Cap1WithNth(QRegExp* self, int nth, char** _out, int* _out_Strlen);
int QRegExp_Pos1(QRegExp* self, int nth);
int QRegExp_Pos1WithNth(QRegExp* self, int nth);
void QRegExp_Delete(QRegExp* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif