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

12

/freebsd-9.3-release/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.c130 size_t nmatch, regmatch_t pmatch[], int eflags)
136 type, nmatch, pmatch, eflags));
139 pmatch, eflags);
144 regmatch_t pmatch[], int eflags)
146 return tre_fastnexec(preg, string, (size_t)-1, nmatch, pmatch, eflags);
151 size_t nmatch, regmatch_t pmatch[], int eflags)
157 type, nmatch, pmatch, eflags));
160 pmatch, eflags);
165 size_t nmatch, regmatch_t pmatch[], int eflags)
167 return tre_fastwnexec(preg, string, (size_t)-1, nmatch, pmatch, eflag
129 tre_fastnexec(const fastmatch_t *preg, const char *string, size_t len, size_t nmatch, regmatch_t pmatch[], int eflags) argument
143 tre_fastexec(const fastmatch_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
150 tre_fastwnexec(const fastmatch_t *preg, const wchar_t *string, size_t len, size_t nmatch, regmatch_t pmatch[], int eflags) argument
164 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.c843 tre_str_type_t type, int nmatch, regmatch_t pmatch[], int eflags)
870 pmatch[0].rm_so = 0;
871 pmatch[0].rm_eo = len;
929 pmatch[0].rm_so = j;
930 pmatch[0].rm_eo = j + (type == STR_WIDE ? fg->wlen : fg->len);
953 pmatch[0].rm_so = j;
954 pmatch[0].rm_eo = j + ((type == STR_WIDE) ? fg->wlen : fg->len);
842 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-9.3-release/usr.sbin/ofwdump/
H A Dofwdump.c143 ofw_dump_properties(int fd, phandle_t n, int level, const char *pmatch, int raw, argument
155 if (pmatch != NULL && strcmp(pmatch, prop) != 0)
206 const char *pmatch, int raw, int str)
223 ofw_dump_properties(fd, n, level, pmatch, raw, str);
226 ofw_dump_node(fd, c, level + 1, rec, prop, pmatch,
233 ofw_dump(int fd, const char *start, int rec, int prop, const char *pmatch, argument
239 ofw_dump_node(fd, n, 0, rec, prop, pmatch, raw, str);
205 ofw_dump_node(int fd, phandle_t n, int level, int rec, int prop, const char *pmatch, int raw, int str) argument
/freebsd-9.3-release/usr.bin/grep/
H A Dutil.c274 regmatch_t pmatch; local
281 pmatch.rm_so = st;
282 pmatch.rm_eo = l->len;
288 l->dat, 1, &pmatch, eflags);
291 &pmatch, eflags);
295 : (size_t)pmatch.rm_eo;
300 if (pmatch.rm_so != 0 ||
301 (size_t)pmatch.rm_eo != l->len)
308 if (pmatch.rm_so != 0 &&
309 sscanf(&l->dat[pmatch
[all...]
/freebsd-9.3-release/contrib/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-9.3-release/lib/libc/regex/
H A Dengine.c84 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member in struct:match
104 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags);
147 == size_t nmatch, regmatch_t pmatch[], int eflags);
153 regmatch_t pmatch[],
177 start = string + pmatch[0].rm_so;
178 stop = string + pmatch[0].rm_eo;
233 m->pmatch = NULL;
256 if (m->pmatch != NULL)
257 free((char *)m->pmatch);
281 if (m->pmatch
150 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, (char *)string, nmatch, pmatch, eflags));
230 return(smatcher(g, (char *)string, nmatch, pmatch, eflags));
232 return(lmatcher(g, (char *)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-9.3-release/usr.bin/killall/
H A Dkillall.c97 regmatch_t pmatch; local
347 pmatch.rm_so = 0;
348 pmatch.rm_eo = strlen(thiscmd);
349 if (regexec(&rgx, thiscmd, 0, &pmatch,
373 pmatch.rm_so = 0;
374 pmatch.rm_eo = strlen(thiscmd);
375 if (regexec(&rgx, thiscmd, 0, &pmatch,
/freebsd-9.3-release/usr.bin/m4/
H A Dgnum4.c460 regmatch_t *pmatch; local
474 pmatch = xalloc(sizeof(regmatch_t) * (re.re_nsub+1), NULL);
476 argc > 4 && argv[4] != NULL ? argv[4] : "", pmatch);
477 free(pmatch);
488 regmatch_t *pmatch; local
506 pmatch = xalloc(sizeof(regmatch_t) * (re.re_nsub+1), NULL);
508 do_regexpindex(argv[2], &re, pmatch);
510 do_regexp(argv[2], &re, argv[4], pmatch);
511 free(pmatch);
/freebsd-9.3-release/gnu/lib/libregex/
H A Dregexec.c42 size_t nmatch, regmatch_t pmatch[],
53 static unsigned re_copy_regs (struct re_registers *regs, regmatch_t *pmatch,
68 static void update_regs (re_dfa_t *dfa, regmatch_t *pmatch,
83 size_t nmatch, regmatch_t *pmatch,
214 regexec (preg, string, nmatch, pmatch, eflags)
218 regmatch_t pmatch[];
229 start = pmatch[0].rm_so;
230 length = pmatch[0].rm_eo;
242 length, nmatch, pmatch, eflags);
257 regmatch_t pmatch[], in
254 __compat_regexec(const regex_t *__restrict preg, const char *__restrict string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
402 regmatch_t *pmatch; local
[all...]
/freebsd-9.3-release/usr.bin/split/
H A Dsplit.c294 regmatch_t pmatch; local
296 pmatch.rm_so = 0;
297 pmatch.rm_eo = len - 1;
298 if (regexec(&rgx, bfr, 0, &pmatch, REG_STARTEND) == 0)
/freebsd-9.3-release/contrib/ntp/ntpd/
H A Dntp_restrict.c319 const restrict_u * pmatch,
329 cb = sizeof(pmatch->u.v6);
332 cb = sizeof(pmatch->u.v4);
336 if (res->mflags == pmatch->mflags &&
337 !memcmp(&res->u, &pmatch->u, cb))
318 match_restrict_entry( const restrict_u * pmatch, int v6 ) argument
/freebsd-9.3-release/usr.sbin/setfmac/
H A Dsetfmac.c393 regmatch_t pmatch; local
415 pmatch.rm_so = 0;
416 pmatch.rm_eo = ftsent->fts_pathlen;
418 &pmatch, REG_STARTEND);
/freebsd-9.3-release/contrib/cvs/lib/
H A Dregex.h524 regmatch_t pmatch[], int eflags));
H A Dregex.c6275 regexec (preg, string, nmatch, pmatch, eflags)
6279 regmatch_t pmatch[];
6321 pmatch[r].rm_so = regs.start[r];
6322 pmatch[r].rm_eo = regs.end[r];
/freebsd-9.3-release/usr.bin/find/
H A Dfunction.c1367 regmatch_t pmatch; local
1377 pmatch.rm_so = 0;
1378 pmatch.rm_eo = len;
1380 errcode = regexec(pre, str, 1, &pmatch, REG_STARTEND);
1388 if (errcode == 0 && pmatch.rm_so == 0 && pmatch.rm_eo == len)
/freebsd-9.3-release/contrib/one-true-awk/
H A Dproto.h55 extern int pmatch(fa *, const char *);
H A Drun.c584 mf = pmatch;
1797 if (pmatch(pfa, t)) {
1859 if (pmatch(pfa, t)) {
1916 } while (pmatch(pfa,t));
/freebsd-9.3-release/contrib/file/src/
H A Dfuncs.c468 regmatch_t* pmatch, int eflags)
471 return regexec(&rx->rx, str, nmatch, pmatch, eflags);
467 file_regexec(file_regex_t *rx, const char *str, size_t nmatch, regmatch_t* pmatch, int eflags) argument
H A Dsoftmagic.c1989 regmatch_t pmatch[1]; local
2011 pmatch[0].rm_so = 0;
2012 pmatch[0].rm_eo = slen;
2015 1, pmatch, REG_STARTEND);
2021 ms->search.s += (int)pmatch[0].rm_so;
2022 ms->search.offset += (size_t)pmatch[0].rm_so;
2024 (size_t)(pmatch[0].rm_eo - pmatch[0].rm_so);
/freebsd-9.3-release/contrib/sendmail/src/
H A Dmap.c7018 regmatch_t pmatch[MAX_MATCH]; local
7031 name, MAX_MATCH, pmatch, 0);
7086 pmatch[*ip].rm_so < 0 || pmatch[*ip].rm_eo < 0)
7089 sp = name + pmatch[*ip].rm_so;
7090 endp = name + pmatch[*ip].rm_eo;

Completed in 281 milliseconds

12