26 # define __DLL_IMPORT__ __declspec(dllimport) 27 # define __DLL_EXPORT__ __declspec(dllexport) 29 # define __DLL_IMPORT__ __attribute__((dllimport)) extern 30 # define __DLL_EXPORT__ __attribute__((dllexport)) extern 33 #if (defined __WIN32__) || (defined _WIN32) 34 # if defined BUILD_LIBTRE_DLL || defined TRE_EXPORTS 35 # define LIBTRE_DLL_IMPEXP __DLL_EXPORT__ 36 # elif defined(LIBTRE_STATIC) 37 # define LIBTRE_DLL_IMPEXP 38 # elif defined (USE_LIBTRE_DLL) 39 # define LIBTRE_DLL_IMPEXP __DLL_IMPORT__ 40 # elif defined (USE_LIBTRE_STATIC) 41 # define LIBTRE_DLL_IMPEXP 43 # define LIBTRE_DLL_IMPEXP __DLL_IMPORT__ 46 # define LIBTRE_DLL_IMPEXP 51 #ifdef HAVE_SYS_TYPES_H 52 #include <sys/types.h> 59 #ifdef TRE_USE_SYSTEM_REGEX_H 62 #include TRE_SYSTEM_REGEX_H_PATH 69 #ifdef TRE_USE_SYSTEM_REGEX_H 75 #ifndef HAVE_REG_ERRCODE_T 79 #if !defined(REG_NOSPEC) && !defined(REG_LITERAL) 80 #define REG_LITERAL 0x1000 87 #define REG_RIGHT_ASSOC (REG_LITERAL << 1) 88 #define REG_UNGREEDY (REG_RIGHT_ASSOC << 1) 91 #define REG_APPROX_MATCHER 0x1000 92 #define REG_BACKTRACKING_MATCHER (REG_APPROX_MATCHER << 1) 131 #define REG_EXTENDED 1 132 #define REG_ICASE (REG_EXTENDED << 1) 133 #define REG_NEWLINE (REG_ICASE << 1) 134 #define REG_NOSUB (REG_NEWLINE << 1) 138 #define REG_LITERAL (REG_NOSUB << 1) 139 #define REG_RIGHT_ASSOC (REG_LITERAL << 1) 140 #define REG_UNGREEDY (REG_RIGHT_ASSOC << 1) 144 #define REG_NOTEOL (REG_NOTBOL << 1) 147 #define REG_APPROX_MATCHER (REG_NOTEOL << 1) 148 #define REG_BACKTRACKING_MATCHER (REG_APPROX_MATCHER << 1) 153 #if defined(REG_LITERAL) && !defined(REG_NOSPEC) 154 #define REG_NOSPEC REG_LITERAL 155 #elif defined(REG_NOSPEC) && !defined(REG_LITERAL) 156 #define REG_LITERAL REG_NOSPEC 161 #define RE_DUP_MAX 255 189 size_t nmatch,
regmatch_t pmatch[],
int eflags);
199 size_t nmatch,
regmatch_t pmatch[],
int eflags);
207 size_t nmatch,
regmatch_t pmatch[],
int eflags);
247 regawexec(
const regex_t *preg,
const wchar_t *
string,
267 int (*get_next_char)(tre_char_t *c,
unsigned int *pos_add,
void *context);
268 void (*rewind)(
size_t pos,
void *context);
269 int (*compare)(
size_t pos1,
size_t pos2,
size_t len,
void *context);
275 size_t nmatch,
regmatch_t pmatch[],
int eflags);
LIBTRE_DLL_IMPEXP int tre_have_backrefs(const regex_t *preg)
LIBTRE_DLL_IMPEXP void regaparams_default(regaparams_t *params)
#define LIBTRE_DLL_IMPEXP
LIBTRE_DLL_IMPEXP int tre_have_approx(const regex_t *preg)
LIBTRE_DLL_IMPEXP int regncomp(regex_t *preg, const char *regex, size_t len, int cflags)
LIBTRE_DLL_IMPEXP int tre_config(int query, void *result)
LIBTRE_DLL_IMPEXP void regfree(regex_t *preg)
LIBTRE_DLL_IMPEXP int regcomp(regex_t *preg, const char *regex, int cflags)
LIBTRE_DLL_IMPEXP char * tre_version(void)
LIBTRE_DLL_IMPEXP int reganexec(const regex_t *preg, const char *string, size_t len, regamatch_t *match, regaparams_t params, int eflags)
LIBTRE_DLL_IMPEXP size_t regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)
LIBTRE_DLL_IMPEXP int regaexec(const regex_t *preg, const char *string, regamatch_t *match, regaparams_t params, int eflags)
LIBTRE_DLL_IMPEXP int regnexec(const regex_t *preg, const char *string, size_t len, size_t nmatch, regmatch_t pmatch[], int eflags)
LIBTRE_DLL_IMPEXP int reguexec(const regex_t *preg, const tre_str_source *string, size_t nmatch, regmatch_t pmatch[], int eflags)
LIBTRE_DLL_IMPEXP int regexec(const regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags)