/src/sys/lib/libkern/ |
pmatch.c | 1 /* $NetBSD: pmatch.c,v 1.9 2024/10/09 23:16:03 gutteridge Exp $ */ 38 int pmatch(const char *, const char *, const char **); 42 * pmatch(): 50 pmatch(const char *string, const char *pattern, const char **estr) function in typeref:typename:int 81 switch (pmatch(string, pattern, estr)) {
|
/src/usr.bin/grep/ |
util.c | 290 regmatch_t pmatch; local in function:procline 297 pmatch.rm_so = st; 298 pmatch.rm_eo = l->len; 309 l->len, &pmatch); 311 st = pmatch.rm_eo; 314 &pmatch, eflags); 316 st = pmatch.rm_eo; 322 (pmatch.rm_so != 0 || 323 (size_t)pmatch.rm_eo != l->len)) 326 if (fg_pattern[i].word && pmatch.rm_so != 0) [all...] |
/src/usr.bin/m4/ |
gnum4.c | 498 regmatch_t *pmatch; local in function:dopatsubst 512 pmatch = xalloc(sizeof(regmatch_t) * (re.re_nsub+1), NULL); 514 argc > 4 && argv[4] != NULL ? argv[4] : "", pmatch); 515 free(pmatch); 526 regmatch_t *pmatch; local in function:doregexp 545 pmatch = xalloc(sizeof(regmatch_t) * (re.re_nsub+1), NULL); 547 do_regexpindex(pat, argv[2], &re, pmatch); 549 do_regexp(pat, argv[2], &re, argv[4], pmatch); 550 free(pmatch);
|
/src/lib/libc/regex/ |
engine.c | 93 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member in struct:match 113 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags); 197 == size_t nmatch, regmatch_t pmatch[], int eflags); 203 regmatch_t pmatch[], 226 /* pmatch checked below */ 232 _DIAGASSERT(pmatch != NULL); 233 start = string + (size_t)pmatch[0].rm_so; 234 stop = string + (size_t)pmatch[0].rm_eo; 289 m->pmatch = NULL; 338 if (m->pmatch == NULL [all...] |
/src/bin/csh/ |
glob.c | 92 static int pmatch(const Char *, const Char *); 809 gres |= pmatch(string, *p); 816 pmatch(const Char *name, const Char *pat) function in typeref:typename:int
|
/src/usr.bin/mail/ |
list.c | 470 regmatch_t pmatch[1]; local in function:regexcmp 486 pmatch[0].rm_so = 0; 487 pmatch[0].rm_eo = line[len - 1] == '\n' ? len - 1 : len; 488 pmp = pmatch;
|