Home
last modified time | relevance | path

Searched refs:nmatch (Results 1 – 9 of 9) sorted by relevance

/PHP-5.3/ext/pcre/pcrelib/
H A Dpcreposix.c311 regexec(const regex_t *preg, const char *string, size_t nmatch, in regexec() argument
332 if (nosub || pmatch == NULL) nmatch = 0; in regexec()
334 else if (nmatch > 0) in regexec()
336 if (nmatch <= POSIX_MALLOC_THRESHOLD) in regexec()
342 if (nmatch > INT_MAX/(sizeof(int) * 3)) return REG_ESPACE; in regexec()
343 ovector = (int *)malloc(sizeof(int) * nmatch * 3); in regexec()
366 0, options, ovector, (int)(nmatch * 3)); in regexec()
368 if (rc == 0) rc = (int)nmatch; /* All captured slots were filled in */ in regexec()
383 for (; i < nmatch; i++) pmatch[i].rm_so = pmatch[i].rm_eo = -1; in regexec()
H A DChangeLog1408 value for nmatch with a NULL value for pmatch, the value of
1409 nmatch is forced to zero.
2997 9. In the POSIX regexec() interface, if nmatch is specified as a ridiculously
3005 with this option is matched, the nmatch and pmatch options of regexec() are
/PHP-5.3/ext/mbstring/oniguruma/
H A Dregposix.c166 regexec(regex_t* reg, const char* str, size_t nmatch, in regexec() argument
178 if (nmatch == 0 || (reg->comp_options & REG_NOSUB) != 0) { in regexec()
180 nmatch = 0; in regexec()
182 else if ((int )nmatch < ONIG_C(reg)->num_mem + 1) { in regexec()
200 xmemcpy(pmatch, pm, sizeof(regmatch_t) * nmatch); in regexec()
205 for (i = 0; i < (int )nmatch; i++) in regexec()
216 if (reg->re_nsub > nmatch - 1) in regexec()
217 reg->re_nsub = (nmatch <= 1 ? 0 : nmatch - 1); in regexec()
H A Donigposix.h155 ONIG_EXTERN int regexec P_((regex_t* reg, const char* str, size_t nmatch, regmatch_t* matches, i…
H A DHISTORY790 fix nmatch argument of regexec() is smaller than
793 set pmatch to NULL if nmatch is 0 in regexec(). (POSIX API)
/PHP-5.3/ext/ereg/regex/
H A Dregexec.c113 regexec(preg, string, nmatch, pmatch, eflags)
116 size_t nmatch; variable
135 return(smatcher(g, (unsigned char *)string, nmatch, pmatch, eflags));
137 return(lmatcher(g, (unsigned char *)string, nmatch, pmatch, eflags));
H A Dengine.c66 matcher(g, string, nmatch, pmatch, eflags) in matcher() argument
69 size_t nmatch;
85 nmatch = 0;
128 if (nmatch == 0 && !g->backrefs)
141 if (nmatch == 1 && !g->backrefs)
203 if (nmatch > 0) {
207 if (nmatch > 1) {
209 for (i = 1; i < nmatch; i++)
H A Dengine.ih7 static int matcher(register struct re_guts *g, unsigned char *string, size_t nmatch, regmatch_t pma…
/PHP-5.3/ext/pcre/pcrelib/doc/
H A Dpcre.txt8982 size_t nmatch, regmatch_t pmatch[], int eflags);
9067 ing, the nmatch and pmatch arguments are ignored, and no captured
9172 nmatch. This is a BSD extension, compatible with but not specified by
9179 matched strings is returned. The nmatch and pmatch arguments of
9182 If the value of nmatch is zero, or if the value pmatch is NULL, no data
9187 an array of nmatch structures of type regmatch_t, containing the mem-

Completed in 78 milliseconds