Home
last modified time | relevance | path

Searched refs:pmatch (Results 1 – 20 of 20) 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_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/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/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/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
379 if ((preg->re_cflags & REG_NOSUB) != 0 || pmatch == NULL) nmatch = 0; in pcre2_regexec()
388 if (pmatch == NULL) return REG_INVARG; in pcre2_regexec()
389 so = pmatch[0].rm_so; in pcre2_regexec()
390 eo = pmatch[0].rm_eo; in pcre2_regexec()
410 pmatch[i].rm_so = (ovector[i*2] == PCRE2_UNSET)? -1 : in pcre2_regexec()
412 pmatch[i].rm_eo = (ovector[i*2+1] == PCRE2_UNSET)? -1 : in pcre2_regexec()
415 for (; i < nmatch; i++) pmatch[i].rm_so = pmatch[i].rm_eo = -1; in pcre2_regexec()
Dpcre2test.c7076 regmatch_t *pmatch = NULL; in process_data() local
7108 pmatch = (regmatch_t *)malloc(sizeof(regmatch_t) * dat_datctl.oveccount); in process_data()
7109 if (pmatch == NULL) in process_data()
7119 pmatch[0].rm_so = dat_datctl.startend[0]; in process_data()
7120 pmatch[0].rm_eo = (dat_datctl.startend[1] != 0)? in process_data()
7129 rc = regexec(&preg, (const char *)pp, dat_datctl.oveccount, pmatch, eflags); in process_data()
7145 if (pmatch[i].rm_so >= 0) in process_data()
7147 PCRE2_SIZE start = pmatch[i].rm_so; in process_data()
7148 PCRE2_SIZE end = pmatch[i].rm_eo; in process_data()
7154 start = pmatch[i].rm_eo; in process_data()
[all …]
/third_party/curl/lib/
Dhostcheck.c48 static bool pmatch(const char *hostname, size_t hostlen, in pmatch() function
99 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch()
109 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch()
115 return pmatch(hostname_label_end, hostlen - skiphost, in hostmatch()
/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.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.h266 regmatch_t pmatch[], int eflags);
/third_party/boost/libs/regex/doc/
Dposix_api.qbk132 [[REG_STARTEND][The string searched starts at buf + pmatch\[0\].rm_so and ends at buf + pmatch\[0\]…
/third_party/toybox/porting/liteos_a/lib/
Dlib.h267 regmatch_t pmatch[], int eflags);
/third_party/pcre2/pcre2/doc/
Dpcre2.txt9898 size_t nmatch, regmatch_t pmatch[], int eflags);
10016 pcre2_regexec() for matching, the nmatch and pmatch arguments are ig-
10140 pmatch[0].rm_so and ends at string + pmatch[0].rm_eo, which should
10145 Whatever the value of pmatch[0].rm_so, the offsets of the matched
10148 relative to string + pmatch[0].rm_so, but this differs from other im-
10156 passing pmatch as NULL are mutually exclusive; the error REG_INVARG is
10160 matched strings is returned. The nmatch and pmatch arguments of
10164 The value of nmatch may be zero, and the value pmatch may be NULL (un-
10169 captured substrings, are returned via the pmatch argument, which points
/third_party/pcre2/pcre2/
DChangeLog1705 and pmatch when regexec() is called.
2199 was set when the pmatch argument was NULL. It now returns REG_INVARG.