Searched defs:nmatch (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/ext/mbstring/oniguruma/
H A Dregposix.c166 regexec(regex_t* reg, const char* str, size_t nmatch, argument
178 if (nmatch == 0 || (reg->comp_options & REG_NOSUB) != 0) {
180 nmatch = 0;
182 else if ((int )nmatch < ONIG_C(reg)->num_mem + 1) {
200 xmemcpy(pmatch, pm, sizeof(regmatch_t) * nmatch);
205 for (i = 0; i < (int )nmatch; i++)
216 if (reg->re_nsub > nmatch - 1)
217 reg->re_nsub = (nmatch <= 1 ? 0 : nmatch - 1);
/PHP_TRUNK/ext/pcre/pcrelib/
H A Dpcreposix.c315 be set. When this is the case, the nmatch and pmatch arguments are ignored, and
319 regexec(const regex_t *preg, const char *string, size_t nmatch, argument
337 to put it, ensure that nmatch is zero. Otherwise, ensure the vector for holding
340 if (nosub || pmatch == NULL) nmatch = 0;
342 else if (nmatch > 0)
344 if (nmatch <= POSIX_MALLOC_THRESHOLD)
350 if (nmatch > INT_MAX/(sizeof(int) * 3)) return REG_ESPACE;
351 ovector = (int *)malloc(sizeof(int) * nmatch * 3);
374 0, options, ovector, (int)(nmatch * 3));
376 if (rc == 0) rc = (int)nmatch; /* Al
[all...]

Completed in 4 milliseconds