Lines Matching refs:start_offset

541 	long			  start_offset = 0;	/* Where the new search starts */  in php_do_pcre_match()  local
544 &subject, &subject_len, &subpats, &flags, &start_offset) == FAILURE) { in php_do_pcre_match()
554 global, ZEND_NUM_ARGS() >= 4, flags, start_offset TSRMLS_CC); in php_do_pcre_match()
560 zval *subpats, int global, int use_flags, long flags, long start_offset TSRMLS_DC) in php_pcre_match_impl()
609 if (start_offset < 0) { in php_pcre_match_impl()
610 start_offset = subject_len + start_offset; in php_pcre_match_impl()
611 if (start_offset < 0) { in php_pcre_match_impl()
612 start_offset = 0; in php_pcre_match_impl()
659 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_match_impl()
756 if (g_notempty != 0 && start_offset < subject_len) { in php_pcre_match_impl()
757 offsets[0] = start_offset; in php_pcre_match_impl()
758 offsets[1] = start_offset + 1; in php_pcre_match_impl()
773 start_offset = offsets[1]; in php_pcre_match_impl()
1021 int start_offset; /* Where the new search starts */ in php_pcre_replace_impl() local
1082 start_offset = 0; in php_pcre_replace_impl()
1087 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_impl()
1099 piece = subject + start_offset; in php_pcre_replace_impl()
1108 new_len = *result_len + offsets[0] - start_offset; /* part before the match */ in php_pcre_replace_impl()
1196 if (g_notempty != 0 && start_offset < subject_len) { in php_pcre_replace_impl()
1197 offsets[0] = start_offset; in php_pcre_replace_impl()
1198 offsets[1] = start_offset + 1; in php_pcre_replace_impl()
1202 new_len = *result_len + subject_len - start_offset; in php_pcre_replace_impl()
1211 memcpy(&result[*result_len], piece, subject_len - start_offset); in php_pcre_replace_impl()
1212 *result_len += subject_len - start_offset; in php_pcre_replace_impl()
1230 start_offset = offsets[1]; in php_pcre_replace_impl()
1492 int start_offset; /* Where the new search starts */ in php_pcre_split_impl() local
1529 start_offset = 0; in php_pcre_split_impl()
1537 subject_len, start_offset, in php_pcre_split_impl()
1591 if (g_notempty != 0 && start_offset < subject_len) { in php_pcre_split_impl()
1601 subject_len, start_offset, in php_pcre_split_impl()
1608 offsets[0] = start_offset; in php_pcre_split_impl()
1609 offsets[1] = start_offset + 1; in php_pcre_split_impl()
1625 start_offset = offsets[1]; in php_pcre_split_impl()
1629start_offset = last_match - subject; /* the offset might have been incremented, but without furthe… in php_pcre_split_impl()
1631 if (!no_empty || start_offset < subject_len) in php_pcre_split_impl()
1635 …add_offset_pair(return_value, &subject[start_offset], subject_len - start_offset, start_offset, NU… in php_pcre_split_impl()