Lines Matching refs:preg

41 tre_fixncomp(fastmatch_t *preg, const char *regex, size_t n, int cflags)
53 ret = tre_compile_literal(preg, wregex, wlen, cflags);
58 return tre_compile_literal(preg, NULL, 0, cflags);
62 tre_fastncomp(fastmatch_t *preg, const char *regex, size_t n, int cflags)
75 ? tre_compile_literal(preg, wregex, wlen, cflags)
76 : tre_compile_fast(preg, wregex, wlen, cflags);
81 return tre_compile_literal(preg, NULL, 0, cflags);
86 tre_fixcomp(fastmatch_t *preg, const char *regex, int cflags)
88 return tre_fixncomp(preg, regex, regex ? strlen(regex) : 0, cflags);
92 tre_fastcomp(fastmatch_t *preg, const char *regex, int cflags)
94 return tre_fastncomp(preg, regex, regex ? strlen(regex) : 0, cflags);
98 tre_fixwncomp(fastmatch_t *preg, const wchar_t *regex, size_t n, int cflags)
100 return tre_compile_literal(preg, regex, n, cflags);
104 tre_fastwncomp(fastmatch_t *preg, const wchar_t *regex, size_t n, int cflags)
107 tre_compile_literal(preg, regex, n, cflags) :
108 tre_compile_fast(preg, regex, n, cflags);
112 tre_fixwcomp(fastmatch_t *preg, const wchar_t *regex, int cflags)
114 return tre_fixwncomp(preg, regex, regex ? tre_strlen(regex) : 0, cflags);
118 tre_fastwcomp(fastmatch_t *preg, const wchar_t *regex, int cflags)
120 return tre_fastwncomp(preg, regex, regex ? tre_strlen(regex) : 0, cflags);
124 tre_fastfree(fastmatch_t *preg)
126 tre_free_fast(preg);
130 tre_fastnexec(const fastmatch_t *preg, const char *string, size_t len,
136 CALL_WITH_OFFSET(tre_match_fast(preg, &string[offset], slen,
139 return tre_match_fast(preg, string, len, type, nmatch,
144 tre_fastexec(const fastmatch_t *preg, const char *string, size_t nmatch,
147 return tre_fastnexec(preg, string, (size_t)-1, nmatch, pmatch, eflags);
151 tre_fastwnexec(const fastmatch_t *preg, const wchar_t *string, size_t len,
157 CALL_WITH_OFFSET(tre_match_fast(preg, &string[offset], slen,
160 return tre_match_fast(preg, string, len, type, nmatch,
165 tre_fastwexec(const fastmatch_t *preg, const wchar_t *string,
168 return tre_fastwnexec(preg, string, (size_t)-1, nmatch, pmatch, eflags);