Home
last modified time | relevance | path

Searched refs:pmatch (Results 1 – 24 of 24) sorted by relevance

/external/pcre/dist2/src/
Dpcre2posix.c217 regmatch_t pmatch[], int eflags) in regexec() argument
219 return pcre2_regexec(preg, string, nmatch, pmatch, eflags); in regexec()
350 regmatch_t pmatch[], int eflags) in pcre2_regexec() argument
364 if ((preg->re_cflags & REG_NOSUB) != 0 || pmatch == NULL) nmatch = 0; in pcre2_regexec()
373 if (pmatch == NULL) return REG_INVARG; in pcre2_regexec()
374 so = pmatch[0].rm_so; in pcre2_regexec()
375 eo = pmatch[0].rm_eo; in pcre2_regexec()
395 pmatch[i].rm_so = (ovector[i*2] == PCRE2_UNSET)? -1 : in pcre2_regexec()
397 pmatch[i].rm_eo = (ovector[i*2+1] == PCRE2_UNSET)? -1 : in pcre2_regexec()
400 for (; i < nmatch; i++) pmatch[i].rm_so = pmatch[i].rm_eo = -1; in pcre2_regexec()
Dpcre2test.c7073 regmatch_t *pmatch = NULL; in process_data() local
7105 pmatch = (regmatch_t *)malloc(sizeof(regmatch_t) * dat_datctl.oveccount); in process_data()
7106 if (pmatch == NULL) in process_data()
7116 pmatch[0].rm_so = dat_datctl.startend[0]; in process_data()
7117 pmatch[0].rm_eo = (dat_datctl.startend[1] != 0)? in process_data()
7126 rc = regexec(&preg, (const char *)pp, dat_datctl.oveccount, pmatch, eflags); in process_data()
7142 if (pmatch[i].rm_so >= 0) in process_data()
7144 PCRE2_SIZE start = pmatch[i].rm_so; in process_data()
7145 PCRE2_SIZE end = pmatch[i].rm_eo; in process_data()
7151 start = pmatch[i].rm_eo; in process_data()
[all …]
/external/libcups/vcnet/regex/
Dengine.c35 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member
66 matcher(g, string, nmatch, pmatch, eflags) in matcher() argument
70 regmatch_t pmatch[];
87 start = string + pmatch[0].rm_so;
88 stop = string + pmatch[0].rm_eo;
109 m->pmatch = NULL;
145 if (m->pmatch == NULL)
146 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) *
148 if (m->pmatch == NULL) {
153 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
[all …]
Dregexec.c113 regexec(preg, string, nmatch, pmatch, eflags) in regexec() argument
117 regmatch_t pmatch[];
135 return(smatcher(g, (char *)string, nmatch, pmatch, eflags));
137 return(lmatcher(g, (char *)string, nmatch, pmatch, eflags));
Dengine.ih7 static int matcher(register struct re_guts *g, char *string, size_t nmatch, regmatch_t pmatch[], in…
/external/llvm-project/llvm/lib/Support/
Dregengine.inc74 llvm_regmatch_t *pmatch; /* [nsub+1] (0 element unused) */
132 llvm_regmatch_t pmatch[],
149 start = string + pmatch[0].rm_so;
150 stop = string + pmatch[0].rm_eo;
171 m->pmatch = NULL;
187 free(m->pmatch);
209 if (m->pmatch == NULL)
210 m->pmatch = (llvm_regmatch_t *)malloc((m->g->nsub + 1) *
212 if (m->pmatch == NULL) {
217 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
[all …]
Dregexec.c142 llvm_regmatch_t pmatch[], int eflags) in llvm_regexec() argument
159 return(smatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
161 return(lmatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
/external/llvm/lib/Support/
Dregengine.inc74 llvm_regmatch_t *pmatch; /* [nsub+1] (0 element unused) */
132 llvm_regmatch_t pmatch[],
149 start = string + pmatch[0].rm_so;
150 stop = string + pmatch[0].rm_eo;
171 m->pmatch = NULL;
187 free(m->pmatch);
209 if (m->pmatch == NULL)
210 m->pmatch = (llvm_regmatch_t *)malloc((m->g->nsub + 1) *
212 if (m->pmatch == NULL) {
217 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
[all …]
Dregexec.c142 llvm_regmatch_t pmatch[], int eflags) in llvm_regexec() argument
159 return(smatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
161 return(lmatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
Dregengine.inc74 llvm_regmatch_t *pmatch; /* [nsub+1] (0 element unused) */
132 llvm_regmatch_t pmatch[],
149 start = string + pmatch[0].rm_so;
150 stop = string + pmatch[0].rm_eo;
171 m->pmatch = NULL;
187 free(m->pmatch);
209 if (m->pmatch == NULL)
210 m->pmatch = (llvm_regmatch_t *)malloc((m->g->nsub + 1) *
212 if (m->pmatch == NULL) {
217 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
[all …]
Dregexec.c142 llvm_regmatch_t pmatch[], int eflags) in llvm_regexec() argument
159 return(smatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
161 return(lmatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
Dregengine.inc74 llvm_regmatch_t *pmatch; /* [nsub+1] (0 element unused) */
132 llvm_regmatch_t pmatch[],
149 start = string + pmatch[0].rm_so;
150 stop = string + pmatch[0].rm_eo;
171 m->pmatch = NULL;
187 free(m->pmatch);
209 if (m->pmatch == NULL)
210 m->pmatch = (llvm_regmatch_t *)malloc((m->g->nsub + 1) *
212 if (m->pmatch == NULL) {
217 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
[all …]
Dregexec.c142 llvm_regmatch_t pmatch[], int eflags) in llvm_regexec() argument
159 return(smatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
161 return(lmatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
/external/toybox/lib/
Dlib.c1353 regmatch_t *pmatch, int eflags) in regexec0() argument
1357 if (!nmatch) pmatch = &backup; in regexec0()
1358 pmatch->rm_so = 0; in regexec0()
1359 pmatch->rm_eo = len; in regexec0()
1360 return regexec(preg, string, nmatch, pmatch, eflags|REG_STARTEND); in regexec0()
Dlib.h269 regmatch_t pmatch[], int eflags);
/external/one-true-awk/
Dproto.h55 extern int pmatch(fa *, const char *);
Drun.c589 mf = pmatch; in matchop()
1951 if (pmatch(pfa, t)) { in sub()
2014 if (pmatch(pfa, t)) { in gsub()
2071 } while (pmatch(pfa,t)); in gsub()
Db.c559 int pmatch(fa *f, const char *p0) /* longest match, for sub */ in pmatch() function
/external/rust/crates/libc/src/unix/bsd/
Dmod.rs843 pmatch: *mut regmatch_t, in regexec()
/external/rust/crates/libc/src/unix/linux_like/android/
Dmod.rs2700 pmatch: *mut regmatch_t, in regexec()
/external/rust/crates/libc/src/unix/linux_like/linux/
Dmod.rs3562 pmatch: *mut regmatch_t, in regexec()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors.inc7750 struct __sanitizer_regmatch *pmatch[], int eflags) {
7752 COMMON_INTERCEPTOR_ENTER(ctx, regexec, preg, string, nmatch, pmatch, eflags);
7757 int res = REAL(regexec)(preg, string, nmatch, pmatch, eflags);
7758 if (!res && pmatch)
7759 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, pmatch, nmatch * struct_regmatch_sz);
/external/pcre/dist2/doc/
Dpcre2.txt9868 size_t nmatch, regmatch_t pmatch[], int eflags);
9982 pcre2_regexec() for matching, the nmatch and pmatch arguments are ig-
10106 pmatch[0].rm_so and ends at string + pmatch[0].rm_eo, which should
10111 Whatever the value of pmatch[0].rm_so, the offsets of the matched
10114 relative to string + pmatch[0].rm_so, but this differs from other im-
10122 passing pmatch as NULL are mutually exclusive; the error REG_INVARG is
10126 matched strings is returned. The nmatch and pmatch arguments of
10130 The value of nmatch may be zero, and the value pmatch may be NULL (un-
10135 captured substrings, are returned via the pmatch argument, which points
/external/pcre/dist2/
DChangeLog1530 and pmatch when regexec() is called.
2024 was set when the pmatch argument was NULL. It now returns REG_INVARG.