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

1 2 3

  /src/external/bsd/tre/dist/lib/
regexec.c 39 tre_fill_pmatch(size_t nmatch, regmatch_t pmatch[], int cflags,
58 pmatch[i].rm_so = match_eo;
60 pmatch[i].rm_so = tags[submatch_data[i].so_tag];
63 pmatch[i].rm_eo = match_eo;
65 pmatch[i].rm_eo = tags[submatch_data[i].eo_tag];
69 if (pmatch[i].rm_so == -1 || pmatch[i].rm_eo == -1)
70 pmatch[i].rm_so = pmatch[i].rm_eo = -1;
72 DPRINT(("pmatch[%d] = {t%d = %d, t%d = %d}\n", i
    [all...]
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...]
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);
  /src/external/gpl3/gdb.old/dist/gdbsupport/
gdb_regex.h 44 size_t nmatch, regmatch_t pmatch[],
gdb_regex.cc 45 regmatch_t pmatch[], int eflags) const
47 return regexec (&m_pattern, string, nmatch, pmatch, eflags);
  /src/external/gpl3/gdb/dist/gdbsupport/
gdb_regex.h 44 size_t nmatch, regmatch_t pmatch[],
gdb_regex.cc 45 regmatch_t pmatch[], int eflags) const
47 return regexec (&m_pattern, string, nmatch, pmatch, eflags);
  /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);
retest.c 138 size_t pmatch_len, regmatch_t *pmatch, int eflags)
164 result = tre_regnexec(&reobj, NULL, len, pmatch_len, pmatch, eflags);
166 result = tre_regnexec(&reobj, buf, len, pmatch_len, pmatch, eflags);
172 result = tre_regexec(&reobj, buf, pmatch_len, pmatch, eflags);
194 execute(const CHAR_T *data, int len, size_t pmatch_len, regmatch_t *pmatch,
205 ret = wrap_regexec(data, len, pmatch_len, pmatch, eflags);
217 return wrap_regexec(data, len, pmatch_len, pmatch, eflags);
223 size_t pmatch_len, regmatch_t *pmatch, int eflags)
267 if (pmatch[i].rm_so != rm_so
268 || pmatch[i].rm_eo != rm_eo
    [all...]
  /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/usr.bin/grep/
fastgrep.c 219 grep_search(fastgrep_t *fg, const unsigned char *data, size_t len, regmatch_t *pmatch)
224 if (pmatch->rm_so == (ssize_t)len)
227 if (fg->bol && pmatch->rm_so != 0) {
228 pmatch->rm_so = len;
229 pmatch->rm_eo = len;
247 pmatch->rm_so = j;
248 pmatch->rm_eo = j + fg->len;
258 pmatch->rm_so = j - fg->len;
259 pmatch->rm_eo = j;
270 j = pmatch->rm_so
    [all...]
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/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/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/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...]
regexec.c 229 regmatch_t pmatch[__restrict],
249 return(mmatcher(g, string, nmatch, pmatch, eflags));
251 return(smatcher(g, string, nmatch, pmatch, eflags));
253 return(lmatcher(g, string, nmatch, pmatch, eflags));
  /src/external/apache2/llvm/dist/llvm/lib/Support/
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[i].rm_so = m->pmatch[i].rm_eo = -1
    [all...]
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));
  /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...]
regexec.c 164 regexec(const regex_t *preg, const RCHAR_T *string, size_t nmatch, regmatch_t *pmatch, int eflags)
181 return(smatcher(g, (RCHAR_T *)__UNCONST(string), nmatch, pmatch, eflags));
183 return(lmatcher(g, (RCHAR_T *)__UNCONST(string), nmatch, pmatch, eflags));
  /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/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/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/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/tre/dist/python/
tre-python.c 179 regmatch_t *rm = &self->am.pmatch[i];
207 rm = &self->am.pmatch[gn];
261 if (self->am.pmatch != NULL)
262 PyMem_Del(self->am.pmatch);
366 mo->am.pmatch = pm;

Completed in 57 milliseconds

1 2 3