Home
last modified time | relevance | path

Searched refs:pmatch (Results 1 – 23 of 23) sorted by relevance

/third_party/skia/third_party/externals/microhttpd/src/examples/
Dmhd2spdy_structures.c77 regmatch_t pmatch[10]; in parse_uri() local
79 if (0 != (ret = regexec(preg, full_uri, nmatch, pmatch, 0))) in parse_uri()
88 asprintf(&((*uri)->scheme), "%.*s",pmatch[2].rm_eo - pmatch[2].rm_so, &full_uri[pmatch[2].rm_so]); in parse_uri()
89 …asprintf(&((*uri)->host_and_port), "%.*s",pmatch[4].rm_eo - pmatch[4].rm_so, &full_uri[pmatch[4].r… in parse_uri()
90 asprintf(&((*uri)->path), "%.*s",pmatch[5].rm_eo - pmatch[5].rm_so, &full_uri[pmatch[5].rm_so]); in parse_uri()
91 …asprintf(&((*uri)->path_and_more), "%.*s",pmatch[9].rm_eo - pmatch[5].rm_so, &full_uri[pmatch[5].r… in parse_uri()
92 asprintf(&((*uri)->query), "%.*s",pmatch[7].rm_eo - pmatch[7].rm_so, &full_uri[pmatch[7].rm_so]); in parse_uri()
93 …asprintf(&((*uri)->fragment), "%.*s",pmatch[9].rm_eo - pmatch[9].rm_so, &full_uri[pmatch[9].rm_so]… in parse_uri()
/third_party/musl/src/regex/
Dregexec.c46 tre_fill_pmatch(size_t nmatch, regmatch_t pmatch[], int cflags,
536 if (pmatch) \
537 xfree(pmatch); \
551 if (pmatch) \
552 xfree(pmatch); \
634 regmatch_t *pmatch = NULL; in tre_tnfa_run_backtrack() local
663 pmatch = xmalloc(sizeof(*pmatch) * tnfa->num_submatches); in tre_tnfa_run_backtrack()
664 if (!pmatch) in tre_tnfa_run_backtrack()
779 tre_fill_pmatch(bt + 1, pmatch, tnfa->cflags & ~REG_NOSUB, in tre_tnfa_run_backtrack()
781 so = pmatch[bt].rm_so; in tre_tnfa_run_backtrack()
[all …]
/third_party/musl/porting/liteos_m_iccarm/kernel/src/regex/
Dregexec.c46 tre_fill_pmatch(size_t nmatch, regmatch_t pmatch[], int cflags,
536 if (pmatch) \
537 xfree(pmatch); \
551 if (pmatch) \
552 xfree(pmatch); \
634 regmatch_t *pmatch = NULL; in tre_tnfa_run_backtrack() local
663 pmatch = xmalloc(sizeof(*pmatch) * tnfa->num_submatches); in tre_tnfa_run_backtrack()
664 if (!pmatch) in tre_tnfa_run_backtrack()
779 tre_fill_pmatch(bt + 1, pmatch, tnfa->cflags & ~REG_NOSUB, in tre_tnfa_run_backtrack()
781 so = pmatch[bt].rm_so; in tre_tnfa_run_backtrack()
[all …]
/third_party/musl/porting/liteos_m/kernel/src/regex/
Dregexec.c46 tre_fill_pmatch(size_t nmatch, regmatch_t pmatch[], int cflags,
536 if (pmatch) \
537 xfree(pmatch); \
551 if (pmatch) \
552 xfree(pmatch); \
634 regmatch_t *pmatch = NULL; in tre_tnfa_run_backtrack() local
663 pmatch = xmalloc(sizeof(*pmatch) * tnfa->num_submatches); in tre_tnfa_run_backtrack()
664 if (!pmatch) in tre_tnfa_run_backtrack()
779 tre_fill_pmatch(bt + 1, pmatch, tnfa->cflags & ~REG_NOSUB, in tre_tnfa_run_backtrack()
781 so = pmatch[bt].rm_so; in tre_tnfa_run_backtrack()
[all …]
/third_party/musl/porting/uniproton/kernel/src/regex/
Dregexec.c46 tre_fill_pmatch(size_t nmatch, regmatch_t pmatch[], int cflags,
536 if (pmatch) \
537 xfree(pmatch); \
551 if (pmatch) \
552 xfree(pmatch); \
634 regmatch_t *pmatch = NULL; in tre_tnfa_run_backtrack() local
663 pmatch = xmalloc(sizeof(*pmatch) * tnfa->num_submatches); in tre_tnfa_run_backtrack()
664 if (!pmatch) in tre_tnfa_run_backtrack()
779 tre_fill_pmatch(bt + 1, pmatch, tnfa->cflags & ~REG_NOSUB, in tre_tnfa_run_backtrack()
781 so = pmatch[bt].rm_so; in tre_tnfa_run_backtrack()
[all …]
/third_party/pcre2/pcre2/src/
Dpcre2posix.c232 regmatch_t pmatch[], int eflags)
234 return pcre2_regexec(preg, string, nmatch, pmatch, eflags);
365 regmatch_t pmatch[], int eflags) in pcre2_regexec() argument
381 if ((preg->re_cflags & REG_NOSUB) != 0 || pmatch == NULL) nmatch = 0; in pcre2_regexec()
390 if (pmatch == NULL) return REG_INVARG; in pcre2_regexec()
391 so = pmatch[0].rm_so; in pcre2_regexec()
392 eo = pmatch[0].rm_eo; in pcre2_regexec()
412 pmatch[i].rm_so = (ovector[i*2] == PCRE2_UNSET)? -1 : in pcre2_regexec()
414 pmatch[i].rm_eo = (ovector[i*2+1] == PCRE2_UNSET)? -1 : in pcre2_regexec()
417 for (; i < nmatch; i++) pmatch[i].rm_so = pmatch[i].rm_eo = -1; in pcre2_regexec()
Dpcre2test.c7096 regmatch_t *pmatch = NULL; in process_data() local
7128 pmatch = (regmatch_t *)malloc(sizeof(regmatch_t) * dat_datctl.oveccount); in process_data()
7129 if (pmatch == NULL) in process_data()
7139 pmatch[0].rm_so = dat_datctl.startend[0]; in process_data()
7140 pmatch[0].rm_eo = (dat_datctl.startend[1] != 0)? in process_data()
7149 rc = regexec(&preg, (const char *)pp, dat_datctl.oveccount, pmatch, eflags); in process_data()
7165 if (pmatch[i].rm_so >= 0) in process_data()
7167 PCRE2_SIZE start = pmatch[i].rm_so; in process_data()
7168 PCRE2_SIZE end = pmatch[i].rm_eo; in process_data()
7174 start = pmatch[i].rm_eo; in process_data()
[all …]
/third_party/skia/third_party/externals/microhttpd/src/spdy2http/
Dproxy.c240 regmatch_t pmatch[10]; in parse_uri() local
242 if (0 != (ret = regexec(preg, full_uri, nmatch, pmatch, 0))) in parse_uri()
253 (int) (pmatch[2].rm_eo - pmatch[2].rm_so), in parse_uri()
254 &full_uri[pmatch[2].rm_so]); in parse_uri()
256 (int) (pmatch[4].rm_eo - pmatch[4].rm_so), in parse_uri()
257 &full_uri[pmatch[4].rm_so]); in parse_uri()
260 (int) (pmatch[5].rm_eo - pmatch[5].rm_so), in parse_uri()
261 &full_uri[pmatch[5].rm_so]); in parse_uri()
264 (int) (pmatch[9].rm_eo - pmatch[5].rm_so), in parse_uri()
265 &full_uri[pmatch[5].rm_so]); in parse_uri()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
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[i].rm_so = m->pmatch[i].rm_eo = -1;
[all …]
Dregexec.c142 llvm_regmatch_t pmatch[], int eflags) in llvm_regexec() argument
159 return(smatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
161 return(lmatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
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[i].rm_so = m->pmatch[i].rm_eo = -1;
[all …]
Dregexec.c142 llvm_regmatch_t pmatch[], int eflags) in llvm_regexec() argument
159 return(smatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
161 return(lmatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
/third_party/musl/libc-test/src/functional/
Dtest-malloc-stats-print.c52 regmatch_t pmatch[REGEX_NMATCH]; in find_thread_in_output() local
53 int match_result = regexec(&thread_data_regex, output, REGEX_NMATCH, pmatch, 0); in find_thread_in_output()
58 return output + pmatch[0].rm_so; in find_thread_in_output()
/third_party/curl/
Dbackport-CVE-2023-28321.patch34 +static bool pmatch(const char *hostname, size_t hostlen,
101 + return pmatch(hostname, hostlen, pattern, patternlen);
121 + return pmatch(hostname, hostlen, pattern, patternlen);
127 + return pmatch(hostname_label_end, hostlen - skiphost,
/third_party/toybox/lib/
Dlib.c1295 regmatch_t *pmatch, int eflags) in regexec0() argument
1299 if (!nmatch) pmatch = &backup; in regexec0()
1300 pmatch->rm_so = 0; in regexec0()
1301 pmatch->rm_eo = len; in regexec0()
1302 return regexec(preg, string, nmatch, pmatch, eflags|REG_STARTEND); in regexec0()
Dlib.h273 regmatch_t pmatch[], int eflags);
/third_party/toybox/porting/liteos_a/lib/
Dlib.h267 regmatch_t pmatch[], int eflags);
/third_party/rust/crates/libc/src/unix/bsd/
Dmod.rs868 pmatch: *mut regmatch_t, in regexec()
/third_party/rust/crates/libc/src/unix/haiku/
Dmod.rs1842 pmatch: *mut regmatch_t, in regexec()
/third_party/rust/crates/libc/src/unix/linux_like/android/
Dmod.rs3449 pmatch: *mut regmatch_t, in regexec()
/third_party/pcre2/pcre2/doc/
Dpcre2.txt9953 size_t nmatch, regmatch_t pmatch[], int eflags);
10071 pcre2_regexec() for matching, the nmatch and pmatch arguments are ig-
10195 pmatch[0].rm_so and ends at string + pmatch[0].rm_eo, which should
10200 Whatever the value of pmatch[0].rm_so, the offsets of the matched
10203 relative to string + pmatch[0].rm_so, but this differs from other im-
10211 passing pmatch as NULL are mutually exclusive; the error REG_INVARG is
10215 matched strings is returned. The nmatch and pmatch arguments of
10219 The value of nmatch may be zero, and the value pmatch may be NULL (un-
10224 captured substrings, are returned via the pmatch argument, which points
/third_party/rust/crates/libc/src/unix/linux_like/linux/
Dmod.rs4425 pmatch: *mut regmatch_t, in regexec()
/third_party/pcre2/pcre2/
DChangeLog1810 and pmatch when regexec() is called.
2304 was set when the pmatch argument was NULL. It now returns REG_INVARG.