Lines Matching refs:search
3367 - cp = strndup(RCAST(const char *, ms->search.s),
3368 + cp = estrndup(RCAST(const char *, ms->search.s),
3369 ms->search.rm_len);
3371 - file_oomem(ms, ms->search.rm_len);
3375 - file_printable(sbuf, sizeof(sbuf), cp, ms->search.rm_len));
3377 + file_printable(sbuf, sizeof(sbuf), cp, ms->search.rm_len));
3501 - const char *search;
3506 - if (ms->search.s == NULL)
3529 - size_t slen = ms->search.s_len;
3540 - memcpy(copy, ms->search.s, slen);
3542 - search = copy;
3551 + /* Cut the search len from haystack, equals to REG_STARTEND */
3552 + haystack = zend_string_init(ms->search.s, ms->search.s_len, 0);
3578 + ms->search.s += Z_LVAL_P(offset); /* this is where the match starts */
3579 + ms->search.offset += Z_LVAL_P(offset); /* this is where the match starts as size_t */
3580 + ms->search.rm_len = Z_STRLEN_P(match) /* This is the length of the matched pattern */;
3592 - search = CCAST(char *, "");
3595 - rc = file_regexec(&rx, RCAST(const char *, search),
3600 - ms->search.s += CAST(int, pmatch.rm_so);
3601 - ms->search.offset += CAST(size_t, pmatch.rm_so);
3602 - ms->search.rm_len = CAST(size_t,