34 #define J_PCRE_FLAGS (PCRE_CASELESS | PCRE_DOTALL) 36 #define J_PCRE_FLAGS 0 39 #define JREGCOMP_FLAGS (REG_ICASE | REG_EXTENDED) 40 #define JREGEXEC_FLAGS 0 43 static bool use_pcre =
TRUE;
45 static bool use_pcre =
FALSE;
59 if ((re == NULL) || (expr == NULL))
79 const char *errptr = NULL;
96 re->
result = regcomp(&re->
re, expr, flags);
105 re->
expr = strdup(expr);
116 #define DIM_VECTOR (3 * 32) 151 re->
result = regexec(&re->
re, s, 1, &pm, flags);
209 if ((s == NULL) || (expr == NULL))
212 memset(&re, 0,
sizeof (re));
216 for (p = s;
zeRegexExec(&re, p, NULL, &pf, 0); p += pf)
239 if ((s == NULL) || (expr == NULL))
243 memset(&re, 0,
sizeof (re));
int zeRegexCount(char *s, char *expr)
bool zeRegexExec(zeRegex_T *re, char *s, long *pi, long *pf, int flags)
char * zeRegexError(zeRegex_T *re)
#define ZE_LogMsgInfo(level,...)
#define ZE_LogMsgError(level,...)
bool zeRegexLookup(char *s, char *expr, long *pi, long *pf)
void zeRegexFree(zeRegex_T *re)
#define ZE_MessageInfo(level,...)
bool zeRegexComp(zeRegex_T *re, char *expr, int flags)