Searched defs:nmatch (Results 1 - 2 of 2) sorted by relevance
| /PHP_TRUNK/ext/mbstring/oniguruma/ |
| H A D | regposix.c | 166 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 D | pcreposix.c | 307 be set. When this is the case, the nmatch and pmatch arguments are ignored, and 311 regexec(const regex_t *preg, const char *string, size_t nmatch, argument 329 to put it, ensure that nmatch is zero. Otherwise, ensure the vector for holding 332 if (nosub || pmatch == NULL) nmatch = 0; 334 else if (nmatch > 0) 336 if (nmatch <= POSIX_MALLOC_THRESHOLD) 342 if (nmatch > INT_MAX/(sizeof(int) * 3)) return REG_ESPACE; 343 ovector = (int *)malloc(sizeof(int) * nmatch * 3); 366 0, options, ovector, (int)(nmatch * 3)); 368 if (rc == 0) rc = (int)nmatch; /* Al [all...] |
Completed in 8 milliseconds