Home
last modified time | relevance | path

Searched refs:pmatch (Results 1 – 25 of 25) 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/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/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/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.c218 regmatch_t pmatch[], int eflags)
220 return pcre2_regexec(preg, string, nmatch, pmatch, eflags);
353 regmatch_t pmatch[], int eflags) in pcre2_regexec() argument
369 if ((preg->re_cflags & REG_NOSUB) != 0 || pmatch == NULL) nmatch = 0; in pcre2_regexec()
378 if (pmatch == NULL) return REG_INVARG; in pcre2_regexec()
379 so = pmatch[0].rm_so; in pcre2_regexec()
380 eo = pmatch[0].rm_eo; in pcre2_regexec()
400 pmatch[i].rm_so = (ovector[i*2] == PCRE2_UNSET)? -1 : in pcre2_regexec()
402 pmatch[i].rm_eo = (ovector[i*2+1] == PCRE2_UNSET)? -1 : in pcre2_regexec()
405 for (; i < nmatch; i++) pmatch[i].rm_so = pmatch[i].rm_eo = -1; in pcre2_regexec()
Dpcre2test.c7161 regmatch_t *pmatch = NULL; in process_data() local
7193 pmatch = (regmatch_t *)malloc(sizeof(regmatch_t) * dat_datctl.oveccount); in process_data()
7194 if (pmatch == NULL) in process_data()
7204 pmatch[0].rm_so = dat_datctl.startend[0]; in process_data()
7205 pmatch[0].rm_eo = (dat_datctl.startend[1] != 0)? in process_data()
7214 rc = regexec(&preg, (const char *)pp, dat_datctl.oveccount, pmatch, eflags); in process_data()
7230 if (pmatch[i].rm_so >= 0) in process_data()
7232 PCRE2_SIZE start = pmatch[i].rm_so; in process_data()
7233 PCRE2_SIZE end = pmatch[i].rm_eo; in process_data()
7239 start = pmatch[i].rm_eo; in process_data()
[all …]
/third_party/curl/lib/vtls/
Dhostcheck.c49 static bool pmatch(const char *hostname, size_t hostlen, in pmatch() function
100 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch()
111 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch()
117 return pmatch(hostname_label_end, hostlen - skiphost, in hostmatch()
/third_party/musl/Benchmark/musl/
Dlibc_regex.cpp59 regmatch_t pmatch; in Bm_function_Regexec() local
61 benchmark::DoNotOptimize(regexec(&reg, "hello test world", 1, &pmatch, 0)); in Bm_function_Regexec()
74 regmatch_t pmatch; in Bm_function_Regall() local
80 regexec(&reg, "hello test world", 1, &pmatch, 0); in Bm_function_Regall()
/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/toybox/lib/
Dlib.c1318 regmatch_t *pmatch, int eflags) in regexec0() argument
1322 if (!nmatch) pmatch = &backup; in regexec0()
1323 pmatch->rm_so = 0; in regexec0()
1324 pmatch->rm_eo = len; in regexec0()
1325 return regexec(preg, string, nmatch, pmatch, eflags|REG_STARTEND); in regexec0()
Dlib.h275 regmatch_t pmatch[], int eflags);
/third_party/toybox/porting/liteos_a/lib/
Dlib.h267 regmatch_t pmatch[], int eflags);
/third_party/node/deps/ngtcp2/nghttp3/lib/
Dnghttp3_qpack.c790 nghttp3_qpack_entry **pmatch, in encoder_qpack_map_find() argument
798 *pmatch = NULL; in encoder_qpack_map_find()
809 if (!*pmatch) { in encoder_qpack_map_find()
810 *pmatch = p; in encoder_qpack_map_find()
816 *pmatch = p; in encoder_qpack_map_find()
/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.txt9973 size_t nmatch, regmatch_t pmatch[], int eflags);
10091 pcre2_regexec() for matching, the nmatch and pmatch arguments are ig-
10215 pmatch[0].rm_so and ends at string + pmatch[0].rm_eo, which should
10220 Whatever the value of pmatch[0].rm_so, the offsets of the matched
10223 relative to string + pmatch[0].rm_so, but this differs from other im-
10231 passing pmatch as NULL are mutually exclusive; the error REG_INVARG is
10235 matched strings is returned. The nmatch and pmatch arguments of
10239 The value of nmatch may be zero, and the value pmatch may be NULL (un-
10244 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/
DChangeLog1923 and pmatch when regexec() is called.
2417 was set when the pmatch argument was NULL. It now returns REG_INVARG.