HomeSort by: relevance | last modified time | path
    Searched defs:pmatch (Results 1 - 25 of 25) sorted by relevancy

  /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
81 switch (pmatch(string, pattern, estr)) {
  /src/external/bsd/tre/dist/tests/
test-str-source.c 110 regmatch_t pmatch[5]; local
117 if (tre_reguexec(&preg, source, elementsof(pmatch), pmatch, 0) == 0)
118 printf("Match: %d - %d\n", (int)pmatch[0].rm_so, (int)pmatch[0].rm_eo);
bench.c 107 regmatch_t pmatch[10]; local
115 if ((errcode = tre_regexec(reobj, str, 10, pmatch, 0))) {
131 printf("# pmatch[%d].rm_so = %d\n", i/2, (int)pmatch[i/2].rm_so);
132 printf("# pmatch[%d].rm_eo = %d\n", i/2, (int)pmatch[i/2].rm_eo);
  /src/usr.bin/grep/
util.c 290 regmatch_t pmatch; local
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/external/bsd/tre/dist/lib/
tre.h 147 regmatch_t pmatch[], int eflags);
154 regmatch_t pmatch[], int eflags);
174 size_t nmatch, regmatch_t pmatch[], int eflags);
184 size_t nmatch, regmatch_t pmatch[], int eflags);
192 size_t nmatch, regmatch_t pmatch[], int eflags);
200 size_t nmatch, regmatch_t pmatch[], int eflags);
220 size_t nmatch; /* Length of pmatch[] array. */
221 regmatch_t *pmatch; /* Submatch data. */ member in struct:__anon8203
273 size_t nmatch, regmatch_t pmatch[], int eflags);
tre-match-backtrack.c 123 if (pmatch) \
124 xfree(pmatch); \
138 if (pmatch) \
139 xfree(pmatch); \
232 regmatch_t *pmatch = NULL; local
255 pmatch = alloca(sizeof(*pmatch) * tnfa->num_submatches);
269 pmatch = xmalloc(sizeof(*pmatch) * tnfa->num_submatches);
270 if (!pmatch)
    [all...]
  /src/external/bsd/openldap/dist/servers/slapd/back-ldap/
search.c 605 struct berval pmatch; local
607 if ( dnPretty( NULL, &match, &pmatch, op->o_tmpmemctx ) != LDAP_SUCCESS ) {
608 pmatch.bv_val = match.bv_val;
611 rs->sr_matched = pmatch.bv_val;
  /src/usr.bin/m4/
gnum4.c 498 regmatch_t *pmatch; local
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
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/external/bsd/nvi/dist/regex/
engine.c 75 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member in struct:match
94 static int matcher __P((struct re_guts *g, RCHAR_T *string, size_t nmatch, regmatch_t pmatch[], int eflags));
134 == size_t nmatch, regmatch_t pmatch[], int eflags);
137 matcher(g, string, nmatch, pmatch, eflags)
141 regmatch_t pmatch[];
163 start = string + pmatch[0].rm_so;
164 stop = string + pmatch[0].rm_eo;
185 m->pmatch = NULL;
221 if (m->pmatch == NULL)
222 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1)
    [all...]
  /src/external/bsd/tre/dist/include/tre/
tre.h 136 regmatch_t pmatch[], int eflags);
156 size_t nmatch, regmatch_t pmatch[], int eflags);
166 size_t nmatch, regmatch_t pmatch[], int eflags);
174 size_t nmatch, regmatch_t pmatch[], int eflags);
194 size_t nmatch; /* Length of pmatch[] array. */
195 regmatch_t *pmatch; /* Submatch data. */ member in struct:__anon8173
242 size_t nmatch, regmatch_t pmatch[], int eflags);
  /src/external/bsd/tre/dist/src/
agrep.c 222 regmatch_t pmatch[1]; local
279 1, pmatch, 0);
288 record_len = pmatch[0].rm_so;
291 next_delim_len = pmatch[0].rm_eo - pmatch[0].rm_so;
292 next_record = next_record + pmatch[0].rm_eo;
420 regmatch_t pmatch[1]; local
427 match.pmatch = pmatch;
481 invert_match ? 0 : (int)pmatch[0].rm_so
    [all...]
  /src/external/ibm-public/postfix/dist/src/util/
dict_regexp.c 121 regmatch_t *pmatch; /* matched substring info */ member in struct:__anon23230
165 regmatch_t *pmatch; local
179 pmatch = dict_regexp->pmatch + n;
180 if (pmatch->rm_so < 0 || pmatch->rm_so == pmatch->rm_eo)
183 ctxt->lookup_string + pmatch->rm_so,
184 pmatch->rm_eo - pmatch->rm_so)
    [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
  /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/external/bsd/openldap/dist/contrib/slapd-modules/variant/
variant.c 65 regmatch_t *pmatch,
81 len += ( pmatch[i].rm_eo - pmatch[i].rm_so );
102 len = pmatch[i].rm_eo - pmatch[i].rm_so;
104 AC_MEMCPY( dest, ndn->bv_val + pmatch[i].rm_so, len );
129 regmatch_t *pmatch )
159 rc = variant_build_dn( op, vai, nmatch, pmatch, &ndn );
250 regmatch_t *pmatch )
270 if ( regexec( vei->regex, ndn->bv_val, nmatch, pmatch, 0 ) )
329 regmatch_t pmatch[10]; local
434 regmatch_t pmatch[10]; local
583 regmatch_t pmatch[10]; local
    [all...]
  /src/usr.bin/mail/
list.c 470 regmatch_t pmatch[1]; local
486 pmatch[0].rm_so = 0;
487 pmatch[0].rm_eo = line[len - 1] == '\n' ? len - 1 : len;
488 pmp = pmatch;
  /src/external/bsd/file/dist/src/
softmagic.c 2312 regmatch_t pmatch; local
2341 1, &pmatch, 0);
2345 ms->search.s += CAST(int, pmatch.rm_so);
2346 ms->search.offset += CAST(size_t, pmatch.rm_so);
2348 pmatch.rm_eo - pmatch.rm_so);
  /src/external/historical/nawk/dist/
b.c 717 /* return pmatch(f, p0); does it matter whether longest or shortest? */
740 int pmatch(fa *f, const char *p0) /* longest match, for sub */ function
  /src/external/gpl2/xcvs/dist/lib/
regexec.c 44 size_t nmatch, regmatch_t pmatch[],
57 static unsigned re_copy_regs (struct re_registers *regs, regmatch_t *pmatch,
67 static void update_regs (re_dfa_t *dfa, regmatch_t *pmatch,
76 size_t nmatch, regmatch_t *pmatch,
193 `regcomp', we ignore PMATCH. Otherwise, we assume PMATCH has at
205 size_t nmatch, regmatch_t pmatch[], int eflags)
218 start = pmatch[0].rm_so;
219 length = pmatch[0].rm_eo;
233 length, nmatch, pmatch, eflags)
385 regmatch_t *pmatch; local
    [all...]
  /src/external/gpl3/gdb/dist/gdb/
utils.c 1882 regmatch_t pmatch;
1884 while (*str && highlight.exec (str, 1, &pmatch, 0) == 0)
1886 size_t n_highlight = pmatch.rm_eo - pmatch.rm_so;
1888 /* Output the part before pmatch with current style. */
1889 while (pmatch.rm_so > 0)
1892 pmatch.rm_so--;
1896 /* Output pmatch with the highlight style. */
1876 regmatch_t pmatch; local
  /src/external/gpl3/gdb.old/dist/gdb/
utils.c 1829 regmatch_t pmatch;
1831 while (*str && highlight.exec (str, 1, &pmatch, 0) == 0)
1833 size_t n_highlight = pmatch.rm_eo - pmatch.rm_so;
1835 /* Output the part before pmatch with current style. */
1836 while (pmatch.rm_so > 0)
1839 pmatch.rm_so--;
1843 /* Output pmatch with the highlight style. */
1823 regmatch_t pmatch; local
  /src/external/gpl3/gcc/dist/gcc/
gengtype.cc 2081 * file name, using the PMATCH array. */
2083 matching_file_name_substitute (const char *filnam, regmatch_t pmatch[10],
2107 int so = pmatch[dolnum].rm_so;
2108 int eo = pmatch[dolnum].rm_eo;
2206 /* We have exactly ten pmatch-s, one for each $0, $1, $2,
2208 regmatch_t pmatch[10];
2209 memset (pmatch, 0, sizeof (pmatch));
2211 inpfname, 10, pmatch, 0))
2217 matching_file_name_substitute (inpfname, pmatch,
2201 regmatch_t pmatch[10]; local
    [all...]
  /src/external/gpl3/gcc.old/dist/gcc/
gengtype.cc 2111 * file name, using the PMATCH array. */
2113 matching_file_name_substitute (const char *filnam, regmatch_t pmatch[10],
2137 int so = pmatch[dolnum].rm_so;
2138 int eo = pmatch[dolnum].rm_eo;
2236 /* We have exactly ten pmatch-s, one for each $0, $1, $2,
2238 regmatch_t pmatch[10];
2239 memset (pmatch, 0, sizeof (pmatch));
2241 inpfname, 10, pmatch, 0))
2247 matching_file_name_substitute (inpfname, pmatch,
2231 regmatch_t pmatch[10]; local
    [all...]
  /src/external/gpl2/grep/dist/lib/
regex.c 7766 `regcomp', we ignore PMATCH. Otherwise, we assume PMATCH has at
7777 regexec (preg, string, nmatch, pmatch, eflags)
7781 regmatch_t pmatch[];
7823 pmatch[r].rm_so = regs.start[r];
7824 pmatch[r].rm_eo = regs.end[r];
7757 regmatch_t pmatch[]; variable
  /src/external/gpl3/gcc/dist/gcc/cp/
call.cc 12788 enum class pmatch { original, current }; class
12791 cand_parms_match (z_candidate *c1, z_candidate *c2, pmatch match_kind)
12795 bool reversed = (match_kind == pmatch::current
12801 if (match_kind == pmatch::original)
13015 && cand_parms_match (cand1, cand2, pmatch::original))
13216 && cand_parms_match (cand1, cand2, pmatch::current))

Completed in 73 milliseconds