Lines Matching refs:regex
2 tre_regcomp.c - TRE POSIX compatible regex compilation functions.
22 tre_regncomp(regex_t *preg, const char *regex, size_t n, int cflags)
43 const unsigned char *str = (const unsigned char *)regex;
61 consumed = tre_mbrtowc(wcptr, regex, n, &state);
66 if (*regex == '\0')
84 regex += consumed;
96 ret = tre_compile(preg, (const tre_char_t *)regex, n, cflags);
103 tre_regcomp(regex_t *preg, const char *regex, int cflags)
105 return tre_regncomp(preg, regex, regex ? strlen(regex) : 0, cflags);
111 tre_regwncomp(regex_t *preg, const wchar_t *regex, size_t n, int cflags)
113 return tre_compile(preg, regex, n, cflags);
117 tre_regwcomp(regex_t *preg, const wchar_t *regex, int cflags)
119 return tre_compile(preg, regex, regex ? wcslen(regex) : 0, cflags);