Home
last modified time | relevance | path

Searched refs:preg (Results 1 – 25 of 62) sorted by relevance

123

/external/pcre/dist2/src/
Dpcre2posix.c191 regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size) in regerror() argument
193 return pcre2_regerror(errcode, preg, errbuf, errbuf_size); in regerror()
199 regfree(regex_t *preg) in regfree() argument
201 pcre2_regfree(preg); in regfree()
207 regcomp(regex_t *preg, const char *pattern, int cflags) in regcomp() argument
209 return pcre2_regcomp(preg, pattern, cflags); in regcomp()
216 regexec(const regex_t *preg, const char *string, size_t nmatch, in regexec() argument
219 return pcre2_regexec(preg, string, nmatch, pmatch, eflags); in regexec()
229 pcre2_regerror(int errcode, const regex_t *preg, char *errbuf, in pcre2_regerror() argument
238 if (preg != NULL && (int)preg->re_erroffset != -1) in pcre2_regerror()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DRegex.cpp26 Regex::Regex() : preg(nullptr), error(REG_BADPAT) {} in Regex()
30 preg = new llvm_regex(); in Regex()
31 preg->re_endp = regex.end(); in Regex()
38 error = llvm_regcomp(preg, regex.data(), flags|REG_PEND); in Regex()
42 preg = regex.preg; in Regex()
44 regex.preg = nullptr; in Regex()
49 if (preg) { in ~Regex()
50 llvm_regfree(preg); in ~Regex()
51 delete preg; in ~Regex()
58 void RegexErrorToString(int error, struct llvm_regex *preg, in RegexErrorToString() argument
[all …]
Dregfree.c50 llvm_regfree(llvm_regex_t *preg) in llvm_regfree() argument
54 if (preg->re_magic != MAGIC1) /* oops */ in llvm_regfree()
57 g = preg->re_g; in llvm_regfree()
60 preg->re_magic = 0; /* mark it invalid */ in llvm_regfree()
Dregerror.c84 llvm_regerror(int errcode, const llvm_regex_t *preg, char *errbuf, size_t errbuf_size) in llvm_regerror() argument
93 s = regatoi(preg, convbuf, sizeof convbuf); in llvm_regerror()
123 regatoi(const llvm_regex_t *preg, char *localbuf, int localbufsize) in regatoi() argument
128 if (strcmp(r->name, preg->re_endp) == 0) in regatoi()
Dregexec.c141 llvm_regexec(const llvm_regex_t *preg, const char *string, size_t nmatch, in llvm_regexec() argument
144 struct re_guts *g = preg->re_g; in llvm_regexec()
151 if (preg->re_magic != MAGIC1 || g->magic != MAGIC2) in llvm_regexec()
/external/llvm-project/llvm/lib/Support/
DRegex.cpp27 Regex::Regex() : preg(nullptr), error(REG_BADPAT) {} in Regex()
31 preg = new llvm_regex(); in Regex()
32 preg->re_endp = regex.end(); in Regex()
39 error = llvm_regcomp(preg, regex.data(), flags|REG_PEND); in Regex()
46 preg = regex.preg; in Regex()
48 regex.preg = nullptr; in Regex()
53 if (preg) { in ~Regex()
54 llvm_regfree(preg); in ~Regex()
55 delete preg; in ~Regex()
62 void RegexErrorToString(int error, struct llvm_regex *preg, in RegexErrorToString() argument
[all …]
Dregfree.c50 llvm_regfree(llvm_regex_t *preg) in llvm_regfree() argument
54 if (preg->re_magic != MAGIC1) /* oops */ in llvm_regfree()
57 g = preg->re_g; in llvm_regfree()
60 preg->re_magic = 0; /* mark it invalid */ in llvm_regfree()
Dregerror.c84 llvm_regerror(int errcode, const llvm_regex_t *preg, char *errbuf, size_t errbuf_size) in llvm_regerror() argument
93 s = regatoi(preg, convbuf, sizeof convbuf); in llvm_regerror()
123 regatoi(const llvm_regex_t *preg, char *localbuf, int localbufsize) in regatoi() argument
128 if (strcmp(r->name, preg->re_endp) == 0) in regatoi()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DRegex.cpp22 Regex::Regex() : preg(nullptr), error(REG_BADPAT) {} in Regex()
26 preg = new llvm_regex(); in Regex()
27 preg->re_endp = regex.end(); in Regex()
34 error = llvm_regcomp(preg, regex.data(), flags|REG_PEND); in Regex()
38 preg = regex.preg; in Regex()
40 regex.preg = nullptr; in Regex()
45 if (preg) { in ~Regex()
46 llvm_regfree(preg); in ~Regex()
47 delete preg; in ~Regex()
55 size_t len = llvm_regerror(error, preg, nullptr, 0); in isValid()
[all …]
Dregfree.c50 llvm_regfree(llvm_regex_t *preg) in llvm_regfree() argument
54 if (preg->re_magic != MAGIC1) /* oops */ in llvm_regfree()
57 g = preg->re_g; in llvm_regfree()
60 preg->re_magic = 0; /* mark it invalid */ in llvm_regfree()
Dregerror.c84 llvm_regerror(int errcode, const llvm_regex_t *preg, char *errbuf, size_t errbuf_size) in llvm_regerror() argument
93 s = regatoi(preg, convbuf, sizeof convbuf); in llvm_regerror()
123 regatoi(const llvm_regex_t *preg, char *localbuf, int localbufsize) in regatoi() argument
128 if (strcmp(r->name, preg->re_endp) == 0) in regatoi()
Dregexec.c141 llvm_regexec(const llvm_regex_t *preg, const char *string, size_t nmatch, in llvm_regexec() argument
144 struct re_guts *g = preg->re_g; in llvm_regexec()
151 if (preg->re_magic != MAGIC1 || g->magic != MAGIC2) in llvm_regexec()
/external/llvm/lib/Support/
DRegex.cpp24 preg = new llvm_regex(); in Regex()
25 preg->re_endp = regex.end(); in Regex()
32 error = llvm_regcomp(preg, regex.data(), flags|REG_PEND); in Regex()
36 if (preg) { in ~Regex()
37 llvm_regfree(preg); in ~Regex()
38 delete preg; in ~Regex()
46 size_t len = llvm_regerror(error, preg, nullptr, 0); in isValid()
49 llvm_regerror(error, preg, &Error[0], len); in isValid()
56 return preg->re_nsub; in getNumMatches()
60 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; in match()
[all …]
Dregfree.c50 llvm_regfree(llvm_regex_t *preg) in llvm_regfree() argument
54 if (preg->re_magic != MAGIC1) /* oops */ in llvm_regfree()
57 g = preg->re_g; in llvm_regfree()
60 preg->re_magic = 0; /* mark it invalid */ in llvm_regfree()
Dregerror.c84 llvm_regerror(int errcode, const llvm_regex_t *preg, char *errbuf, size_t errbuf_size) in llvm_regerror() argument
93 s = regatoi(preg, convbuf, sizeof convbuf); in llvm_regerror()
123 regatoi(const llvm_regex_t *preg, char *localbuf, int localbufsize) in regatoi() argument
128 if (strcmp(r->name, preg->re_endp) == 0) in regatoi()
/external/llvm/include/llvm/Support/
DRegex.h50 std::swap(preg, regex.preg);
55 preg = regex.preg; in Regex()
57 regex.preg = nullptr; in Regex()
100 struct llvm_regex *preg; variable
/external/libcups/vcnet/regex/
Dregfree.c14 regfree(preg) in regfree() argument
15 regex_t *preg; in regfree()
19 if (preg->re_magic != MAGIC1) /* oops */
22 g = preg->re_g;
25 preg->re_magic = 0; /* mark it invalid */
Dregerror.c66 const regex_t *preg, in regerror() argument
77 s = regatoi(preg, convbuf); in regerror()
112 regatoi(preg, localbuf) in regatoi() argument
113 const regex_t *preg; in regatoi()
119 if (strcmp(r->name, preg->re_endp) == 0)
Dregexec.c113 regexec(preg, string, nmatch, pmatch, eflags) in regexec() argument
114 const regex_t *preg; in regexec()
120 register struct re_guts *g = preg->re_g;
127 if (preg->re_magic != MAGIC1 || g->magic != MAGIC2)
/external/strace/
Dbasic_filters.c111 regerror_msg_and_die(int errcode, const regex_t *preg, in regerror_msg_and_die() argument
116 regerror(errcode, preg, buf, sizeof(buf)); in regerror_msg_and_die()
123 regex_t preg; in qualify_syscall_regex() local
126 if ((rc = regcomp(&preg, s, REG_EXTENDED | REG_NOSUB)) != 0) in qualify_syscall_regex()
127 regerror_msg_and_die(rc, &preg, "regcomp", s); in qualify_syscall_regex()
136 rc = regexec(&preg, sysent_vec[p][i].sys_name, in qualify_syscall_regex()
147 rc = regexec(&preg, name_buf, 0, NULL, 0); in qualify_syscall_regex()
153 regerror_msg_and_die(rc, &preg, "regexec", s); in qualify_syscall_regex()
160 regfree(&preg); in qualify_syscall_regex()
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/
Dregex.cpp14 void test_matched(const regex_t *preg, const char *string) { in test_matched() argument
15 int rv = regexec(preg, string, 0, NULL, 0); in test_matched()
24 void test_print_matches(const regex_t *preg, const char *string) { in test_print_matches() argument
26 int rv = regexec(preg, string, __arraycount(rm), rm, 0); in test_print_matches()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DRegex.h51 std::swap(preg, regex.preg);
97 struct llvm_regex *preg; variable
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DRegex.h53 std::swap(preg, regex.preg);
104 struct llvm_regex *preg; variable
/external/llvm-project/llvm/include/llvm/Support/
DRegex.h57 std::swap(preg, regex.preg);
108 struct llvm_regex *preg; variable
/external/mesa3d/src/panfrost/midgard/
Dmidgard_ra_pipeline.c113 unsigned preg = SSA_FIXED_REGISTER(24 + pipeline_count); in mir_pipeline_ins() local
119 mir_rewrite_index_src_single(q, node, preg); in mir_pipeline_ins()
121 mir_rewrite_index_dst_single(q, node, preg); in mir_pipeline_ins()

123