Searched refs:pmatch (Results 1 - 25 of 31) sorted by relevance

12

/freebsd-11-stable/usr.bin/grep/regex/
H A Dglue.h46 size_t slen = (size_t)(pmatch[0].rm_eo - pmatch[0].rm_so); \
47 size_t offset = pmatch[0].rm_so; \
50 if ((long long)pmatch[0].rm_eo - pmatch[0].rm_so < 0) \
55 pmatch[i].rm_so += offset; \
56 pmatch[i].rm_eo += offset; \
H A Dfastmatch.c131 size_t nmatch, regmatch_t pmatch[], int eflags)
137 type, nmatch, pmatch, eflags));
140 pmatch, eflags);
145 regmatch_t pmatch[], int eflags)
147 return tre_fastnexec(preg, string, (size_t)-1, nmatch, pmatch, eflags);
152 size_t nmatch, regmatch_t pmatch[], int eflags)
158 type, nmatch, pmatch, eflags));
161 pmatch, eflags);
166 size_t nmatch, regmatch_t pmatch[], int eflags)
168 return tre_fastwnexec(preg, string, (size_t)-1, nmatch, pmatch, eflag
130 tre_fastnexec(const fastmatch_t *preg, const char *string, size_t len, size_t nmatch, regmatch_t pmatch[], int eflags) argument
144 tre_fastexec(const fastmatch_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
151 tre_fastwnexec(const fastmatch_t *preg, const wchar_t *string, size_t len, size_t nmatch, regmatch_t pmatch[], int eflags) argument
165 tre_fastwexec(const fastmatch_t *preg, const wchar_t *string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
[all...]
H A Dtre-fastmatch.h18 tre_str_type_t type, int nmatch, regmatch_t pmatch[], int eflags);
H A Dfastmatch.h45 regmatch_t pmatch[], int eflags);
58 size_t nmatch, regmatch_t pmatch[], int eflags);
70 size_t nmatch, regmatch_t pmatch[], int eflags);
80 size_t nmatch, regmatch_t pmatch[], int eflags);
H A Dtre-fastmatch.c871 tre_str_type_t type, int nmatch, regmatch_t pmatch[], int eflags)
898 pmatch[0].rm_so = 0;
899 pmatch[0].rm_eo = len;
957 pmatch[0].rm_so = j;
958 pmatch[0].rm_eo = j + (type == STR_WIDE ? fg->wlen : fg->len);
981 pmatch[0].rm_so = j;
982 pmatch[0].rm_eo = j + ((type == STR_WIDE) ? fg->wlen : fg->len);
870 tre_match_fast(const fastmatch_t *fg, const void *data, size_t len, tre_str_type_t type, int nmatch, regmatch_t pmatch[], int eflags) argument
/freebsd-11-stable/usr.bin/grep/
H A Dutil.c78 size_t nmatch, regmatch_t pmatch[]);
401 regmatch_t pmatch[])
413 ofs = pmatch[0].rm_so;
414 stringlen = pmatch[0].rm_eo;
432 /* Fill in pmatch if necessary */
434 pmatch[idx].rm_so = ofs + (sub - search);
435 pmatch[idx].rm_eo = pmatch[idx].rm_so + pat->len;
438 ofs = pmatch[idx].rm_so + 1;
446 pmatch[
400 litexec(const struct pat *pat, const char *string, size_t nmatch, regmatch_t pmatch[]) argument
464 regmatch_t pmatch, lastmatch, chkmatch; local
[all...]
/freebsd-11-stable/usr.bin/sort/
H A Dsort.c627 regmatch_t pmatch[4]; local
641 if (regexec(&re, s, nmatch, pmatch, 0) != 0)
644 if (pmatch[0].rm_eo <= pmatch[0].rm_so)
647 if (pmatch[1].rm_eo <= pmatch[1].rm_so)
650 len = pmatch[1].rm_eo - pmatch[1].rm_so;
653 strncpy(f, s + pmatch[1].rm_so, len);
676 if (pmatch[
783 regmatch_t pmatch[4]; local
[all...]
/freebsd-11-stable/lib/libc/regex/
H A Dengine.c83 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member in struct:match
103 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags);
145 == size_t nmatch, regmatch_t pmatch[], int eflags);
151 regmatch_t pmatch[],
175 start = string + pmatch[0].rm_so;
176 stop = string + pmatch[0].rm_eo;
231 m->pmatch = NULL;
254 if (m->pmatch != NULL)
255 free((char *)m->pmatch);
279 if (m->pmatch
148 matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
[all...]
H A Dregexec.c210 regmatch_t pmatch[__restrict],
228 return(mmatcher(g, string, nmatch, pmatch, eflags));
230 return(smatcher(g, string, nmatch, pmatch, eflags));
232 return(lmatcher(g, string, nmatch, pmatch, eflags));
207 regexec(const regex_t * __restrict preg, const char * __restrict string, size_t nmatch, regmatch_t pmatch[__restrict], int eflags) argument
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A 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[
[all...]
H A Dregexec.c142 llvm_regmatch_t pmatch[], int eflags)
159 return(smatcher(g, string, nmatch, pmatch, eflags));
161 return(lmatcher(g, string, nmatch, pmatch, eflags));
141 llvm_regexec(const llvm_regex_t *preg, const char *string, size_t nmatch, llvm_regmatch_t pmatch[], int eflags) argument
/freebsd-11-stable/contrib/nvi/regex/
H A Dengine.c72 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member in struct:match
91 static int matcher(struct re_guts *g, const RCHAR_T *string, size_t nmatch, regmatch_t pmatch[], int eflags);
133 regmatch_t pmatch[], int eflags)
149 start = string + pmatch[0].rm_so;
150 stop = string + pmatch[0].rm_eo;
171 m->pmatch = NULL;
207 if (m->pmatch == NULL)
208 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) *
210 if (m->pmatch == NULL) {
215 m->pmatch[
132 matcher(struct re_guts *g, const RCHAR_T *string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
[all...]
H A Dregexec.c153 regmatch_t *pmatch, int eflags)
170 return(smatcher(g, string, nmatch, pmatch, eflags));
172 return(lmatcher(g, string, nmatch, pmatch, eflags));
152 regexec(const regex_t *preg, const RCHAR_T *string, size_t nmatch, regmatch_t *pmatch, int eflags) argument
/freebsd-11-stable/usr.sbin/ofwdump/
H A Dofwdump.c212 const char *pmatch, int raw, int str)
229 if (pmatch)
230 ofw_dump_property(fd, n, level, pmatch, raw, str);
236 ofw_dump_node(fd, c, level + 1, rec, prop, pmatch,
243 ofw_dump(int fd, const char *start, int rec, int prop, const char *pmatch, argument
249 ofw_dump_node(fd, n, 0, rec, prop, pmatch, raw, str);
211 ofw_dump_node(int fd, phandle_t n, int level, int rec, int prop, const char *pmatch, int raw, int str) argument
/freebsd-11-stable/usr.bin/killall/
H A Dkillall.c101 regmatch_t pmatch; local
364 pmatch.rm_so = 0;
365 pmatch.rm_eo = strlen(thiscmd);
366 if (regexec(&rgx, thiscmd, 0, &pmatch,
390 pmatch.rm_so = 0;
391 pmatch.rm_eo = strlen(thiscmd);
392 if (regexec(&rgx, thiscmd, 0, &pmatch,
/freebsd-11-stable/usr.bin/m4/
H A Dgnum4.c486 regmatch_t *pmatch; local
501 pmatch = xreallocarray(NULL, re.re_nsub+1, sizeof(regmatch_t),
504 argc > 4 && argv[4] != NULL ? argv[4] : "", pmatch);
505 free(pmatch);
516 regmatch_t *pmatch; local
535 pmatch = xreallocarray(NULL, re.re_nsub+1, sizeof(regmatch_t), NULL);
537 do_regexpindex(argv[2], &re, source, pmatch);
539 do_regexp(argv[2], &re, source, argv[4], pmatch);
540 free(pmatch);
/freebsd-11-stable/contrib/libgnuregex/
H A Dregexec.c41 size_t nmatch, regmatch_t pmatch[],
52 static unsigned re_copy_regs (struct re_registers *regs, regmatch_t *pmatch,
61 static void update_regs (const re_dfa_t *dfa, regmatch_t *pmatch,
71 size_t nmatch, regmatch_t *pmatch,
221 regexec (preg, string, nmatch, pmatch, eflags)
225 regmatch_t pmatch[];
237 start = pmatch[0].rm_so;
238 length = pmatch[0].rm_eo;
252 length, nmatch, pmatch, eflags);
268 regmatch_t pmatch[], in
265 __compat_regexec(const regex_t *__restrict preg, const char *__restrict string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
414 regmatch_t *pmatch; local
1415 set_regs(const regex_t *preg, const re_match_context_t *mctx, size_t nmatch, regmatch_t *pmatch, int fl_backtrack) argument
1539 update_regs(const re_dfa_t *dfa, regmatch_t *pmatch, regmatch_t *prev_idx_match, int cur_node, int cur_idx, int nmatch) argument
[all...]
/freebsd-11-stable/usr.bin/split/
H A Dsplit.c282 regmatch_t pmatch; local
284 pmatch.rm_so = 0;
285 pmatch.rm_eo = len - 1;
286 if (regexec(&rgx, bfr, 0, &pmatch, REG_STARTEND) == 0)
/freebsd-11-stable/usr.sbin/setfmac/
H A Dsetfmac.c395 regmatch_t pmatch; local
417 pmatch.rm_so = 0;
418 pmatch.rm_eo = ftsent->fts_pathlen;
420 &pmatch, REG_STARTEND);
/freebsd-11-stable/contrib/ntp/ntpd/
H A Dntp_restrict.c404 const restrict_u * pmatch,
414 cb = sizeof(pmatch->u.v6);
417 cb = sizeof(pmatch->u.v4);
421 if (res->mflags == pmatch->mflags &&
422 !memcmp(&res->u, &pmatch->u, cb))
403 match_restrict_entry( const restrict_u * pmatch, int v6 ) argument
/freebsd-11-stable/contrib/file/src/
H A Dfuncs.c655 regmatch_t* pmatch, int eflags)
660 memset(pmatch, 0, nmatch * sizeof(*pmatch));
661 return regexec(&rx->rx, str, nmatch, pmatch, eflags);
654 file_regexec(file_regex_t *rx, const char *str, size_t nmatch, regmatch_t* pmatch, int eflags) argument
H A Dsoftmagic.c2186 regmatch_t pmatch; local
2206 1, &pmatch, 0);
2210 ms->search.s += CAST(int, pmatch.rm_so);
2211 ms->search.offset += CAST(size_t, pmatch.rm_so);
2213 pmatch.rm_eo - pmatch.rm_so);
/freebsd-11-stable/usr.bin/find/
H A Dfunction.c1399 regmatch_t pmatch; local
1409 pmatch.rm_so = 0;
1410 pmatch.rm_eo = len;
1412 errcode = regexec(pre, str, 1, &pmatch, REG_STARTEND);
1420 if (errcode == 0 && pmatch.rm_so == 0 && pmatch.rm_eo == len)
/freebsd-11-stable/contrib/one-true-awk/
H A Dproto.h55 extern int pmatch(fa *, const char *);
H A Drun.c584 mf = pmatch;
1799 if (pmatch(pfa, t)) {
1861 if (pmatch(pfa, t)) {
1918 } while (pmatch(pfa,t));

Completed in 181 milliseconds

12