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

12

/freebsd-10.0-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-10.0-release/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-10.0-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-10.0-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-10.0-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-10.0-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-10.0-release/contrib/nvi/regex/
H A Dengine.c76 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member in struct:match
95 static int matcher __P((struct re_guts *g, const RCHAR_T *string, size_t nmatch, regmatch_t pmatch[], int eflags));
135 == size_t nmatch, regmatch_t pmatch[], int eflags);
138 matcher(g, string, nmatch, pmatch, eflags)
142 regmatch_t pmatch[];
159 start = string + pmatch[0].rm_so;
160 stop = string + pmatch[0].rm_eo;
181 m->pmatch = NULL;
217 if (m->pmatch == NULL)
218 m->pmatch
[all...]
H A Dregexec.c160 regexec(const regex_t *preg, const RCHAR_T *string, size_t nmatch, regmatch_t *pmatch, int eflags) argument
177 return(smatcher(g, string, nmatch, pmatch, eflags));
179 return(lmatcher(g, string, nmatch, pmatch, eflags));
/freebsd-10.0-release/usr.bin/killall/
H A Dkillall.c97 regmatch_t pmatch; local
356 pmatch.rm_so = 0;
357 pmatch.rm_eo = strlen(thiscmd);
358 if (regexec(&rgx, thiscmd, 0, &pmatch,
382 pmatch.rm_so = 0;
383 pmatch.rm_eo = strlen(thiscmd);
384 if (regexec(&rgx, thiscmd, 0, &pmatch,
/freebsd-10.0-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-10.0-release/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-10.0-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-10.0-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-10.0-release/usr.bin/find/
H A Dfunction.c1376 regmatch_t pmatch; local
1386 pmatch.rm_so = 0;
1387 pmatch.rm_eo = len;
1389 errcode = regexec(pre, str, 1, &pmatch, REG_STARTEND);
1397 if (errcode == 0 && pmatch.rm_so == 0 && pmatch.rm_eo == len)
/freebsd-10.0-release/contrib/file/
H A Dsoftmagic.c1859 regmatch_t pmatch[1]; local
1866 pmatch[0].rm_so = 0;
1867 pmatch[0].rm_eo = ms->search.s_len;
1870 1, pmatch, REG_STARTEND);
1876 ms->search.s += (int)pmatch[0].rm_so;
1877 ms->search.offset += (size_t)pmatch[0].rm_so;
1879 (size_t)(pmatch[0].rm_eo - pmatch[0].rm_so);
/freebsd-10.0-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));
H A Db.c506 int pmatch(fa *f, const char *p0) /* longest match, for sub */ function
553 overflo("out of space in pmatch");
/freebsd-10.0-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 169 milliseconds

12