Lines Matching refs:search
778 cp = estrndup(RCAST(const char *, ms->search.s), in mprint()
779 ms->search.rm_len); in mprint()
781 file_oomem(ms, ms->search.rm_len); in mprint()
787 sbuf, sizeof(sbuf), scp, ms->search.rm_len)); in mprint()
941 o = CAST(int32_t, ms->search.offset); in moffset()
944 (ms->search.offset + ms->search.rm_len)); in moffset()
949 o = CAST(int32_t, ms->search.offset); in moffset()
951 o = CAST(int32_t, (ms->search.offset + m->vallen)); in moffset()
1345 ms->search.s = RCAST(const char *, s) + offset; in mcopy()
1346 ms->search.s_len = nbytes - offset; in mcopy()
1347 ms->search.offset = offset; in mcopy()
1359 ms->search.s_len = 0; in mcopy()
1360 ms->search.s = NULL; in mcopy()
1395 ms->search.s = buf; in mcopy()
1396 ms->search.s_len = last - buf; in mcopy()
1397 ms->search.offset = offset; in mcopy()
1398 ms->search.rm_len = 0; in mcopy()
2233 if (ms->search.s == NULL) in magiccheck()
2243 if (m->str_range == 0 || ms->search.s_len < idx) in magiccheck()
2244 idx = ms->search.s_len; in magiccheck()
2245 found = CAST(const char *, php_memnstr(ms->search.s, in magiccheck()
2246 m->value.s, slen, ms->search.s + idx)); in magiccheck()
2251 idx = found - ms->search.s; in magiccheck()
2252 ms->search.offset += idx; in magiccheck()
2253 ms->search.rm_len = ms->search.s_len - idx; in magiccheck()
2259 if (slen + idx > ms->search.s_len) { in magiccheck()
2264 v = file_strncmp(m->value.s, ms->search.s + idx, slen, in magiccheck()
2265 ms->search.s_len - idx, m->str_flags); in magiccheck()
2267 ms->search.offset += idx; in magiccheck()
2268 ms->search.rm_len = ms->search.s_len - idx; in magiccheck()
2301 haystack = zend_string_init(ms->search.s, ms->search.s_len, 0); in magiccheck()
2327 ms->search.s += Z_LVAL_P(offset); /* this is where the match starts */ in magiccheck()
2328 ms->search.offset += Z_LVAL_P(offset); /* this is where the match starts as size_t */ in magiccheck()
2329 ms->search.rm_len = Z_STRLEN_P(match) /* This is the length of the matched pattern */; in magiccheck()