/freebsd-11.0-release/usr.bin/grep/regex/ |
H A D | glue.h | 46 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 D | fastmatch.c | 130 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 D | tre-fastmatch.h | 18 tre_str_type_t type, int nmatch, regmatch_t pmatch[], int eflags);
|
H A D | fastmatch.h | 45 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 D | tre-fastmatch.c | 843 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-11.0-release/usr.bin/sort/ |
H A D | sort.c | 631 regmatch_t pmatch[4]; local 645 if (regexec(&re, s, nmatch, pmatch, 0) != 0) 648 if (pmatch[0].rm_eo <= pmatch[0].rm_so) 651 if (pmatch[1].rm_eo <= pmatch[1].rm_so) 654 len = pmatch[1].rm_eo - pmatch[1].rm_so; 657 strncpy(f, s + pmatch[1].rm_so, len); 680 if (pmatch[ 787 regmatch_t pmatch[4]; local [all...] |
/freebsd-11.0-release/usr.bin/grep/ |
H A D | util.c | 274 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-11.0-release/contrib/llvm/lib/Support/ |
H A D | regengine.inc | 74 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 D | regexec.c | 142 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.0-release/lib/libc/regex/ |
H A D | engine.c | 84 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 D | regexec.c | 210 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-11.0-release/contrib/nvi/regex/ |
H A D | engine.c | 72 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 D | regexec.c | 153 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.0-release/usr.sbin/ofwdump/ |
H A D | ofwdump.c | 212 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.0-release/usr.bin/killall/ |
H A D | killall.c | 99 regmatch_t pmatch; local 362 pmatch.rm_so = 0; 363 pmatch.rm_eo = strlen(thiscmd); 364 if (regexec(&rgx, thiscmd, 0, &pmatch, 388 pmatch.rm_so = 0; 389 pmatch.rm_eo = strlen(thiscmd); 390 if (regexec(&rgx, thiscmd, 0, &pmatch,
|
/freebsd-11.0-release/usr.bin/m4/ |
H A D | gnum4.c | 465 regmatch_t *pmatch; local 480 pmatch = xreallocarray(NULL, re.re_nsub+1, sizeof(regmatch_t), 483 argc > 4 && argv[4] != NULL ? argv[4] : "", pmatch); 484 free(pmatch); 495 regmatch_t *pmatch; local 514 pmatch = xreallocarray(NULL, re.re_nsub+1, sizeof(regmatch_t), NULL); 516 do_regexpindex(argv[2], &re, source, pmatch); 518 do_regexp(argv[2], &re, source, argv[4], pmatch); 519 free(pmatch);
|
/freebsd-11.0-release/contrib/libgnuregex/ |
H A D | regexec.c | 41 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.0-release/usr.bin/split/ |
H A D | split.c | 282 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.0-release/contrib/ntp/ntpd/ |
H A D | ntp_restrict.c | 319 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-11.0-release/usr.sbin/setfmac/ |
H A D | setfmac.c | 393 regmatch_t pmatch; local 415 pmatch.rm_so = 0; 416 pmatch.rm_eo = ftsent->fts_pathlen; 418 &pmatch, REG_STARTEND);
|
/freebsd-11.0-release/usr.bin/find/ |
H A D | function.c | 1394 regmatch_t pmatch; local 1404 pmatch.rm_so = 0; 1405 pmatch.rm_eo = len; 1407 errcode = regexec(pre, str, 1, &pmatch, REG_STARTEND); 1415 if (errcode == 0 && pmatch.rm_so == 0 && pmatch.rm_eo == len)
|
/freebsd-11.0-release/contrib/one-true-awk/ |
H A D | proto.h | 55 extern int pmatch(fa *, const char *);
|
H A D | run.c | 584 mf = pmatch; 1799 if (pmatch(pfa, t)) { 1861 if (pmatch(pfa, t)) { 1918 } while (pmatch(pfa,t));
|
/freebsd-11.0-release/contrib/file/src/ |
H A D | softmagic.c | 2077 regmatch_t pmatch; local 2097 1, &pmatch, 0); 2101 ms->search.s += (int)pmatch.rm_so; 2102 ms->search.offset += (size_t)pmatch.rm_so; 2104 (size_t)(pmatch.rm_eo - pmatch.rm_so);
|
H A D | funcs.c | 508 regmatch_t* pmatch, int eflags) 511 return regexec(&rx->rx, str, nmatch, pmatch, eflags); 507 file_regexec(file_regex_t *rx, const char *str, size_t nmatch, regmatch_t* pmatch, int eflags) argument
|