Lines Matching refs:start_offset
562 long start_offset = 0; /* Where the new search starts */ in php_do_pcre_match() local
565 &subject, &subject_len, &subpats, &flags, &start_offset) == FAILURE) { in php_do_pcre_match()
576 global, ZEND_NUM_ARGS() >= 4, flags, start_offset TSRMLS_CC); in php_do_pcre_match()
583 zval *subpats, int global, int use_flags, long flags, long start_offset TSRMLS_DC) in php_pcre_match_impl()
632 if (start_offset < 0) { in php_pcre_match_impl()
633 start_offset = subject_len + start_offset; in php_pcre_match_impl()
634 if (start_offset < 0) { in php_pcre_match_impl()
635 start_offset = 0; in php_pcre_match_impl()
682 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_match_impl()
779 if (g_notempty != 0 && start_offset < subject_len) { in php_pcre_match_impl()
780 int unit_len = calculate_unit_length(pce, subject + start_offset); in php_pcre_match_impl()
782 offsets[0] = start_offset; in php_pcre_match_impl()
783 offsets[1] = start_offset + unit_len; in php_pcre_match_impl()
798 start_offset = offsets[1]; in php_pcre_match_impl()
1050 int start_offset; /* Where the new search starts */ in php_pcre_replace_impl() local
1115 start_offset = 0; in php_pcre_replace_impl()
1120 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_impl()
1132 piece = subject + start_offset; in php_pcre_replace_impl()
1141 new_len = *result_len + offsets[0] - start_offset; /* part before the match */ in php_pcre_replace_impl()
1229 if (g_notempty != 0 && start_offset < subject_len) { in php_pcre_replace_impl()
1232 offsets[0] = start_offset; in php_pcre_replace_impl()
1233 offsets[1] = start_offset + unit_len; in php_pcre_replace_impl()
1237 new_len = *result_len + subject_len - start_offset; in php_pcre_replace_impl()
1246 memcpy(&result[*result_len], piece, subject_len - start_offset); in php_pcre_replace_impl()
1247 *result_len += subject_len - start_offset; in php_pcre_replace_impl()
1265 start_offset = offsets[1]; in php_pcre_replace_impl()
1529 int start_offset; /* Where the new search starts */ in php_pcre_split_impl() local
1566 start_offset = 0; in php_pcre_split_impl()
1574 subject_len, start_offset, in php_pcre_split_impl()
1628 if (g_notempty != 0 && start_offset < subject_len) { in php_pcre_split_impl()
1638 subject_len, start_offset, in php_pcre_split_impl()
1645 offsets[0] = start_offset; in php_pcre_split_impl()
1646 offsets[1] = start_offset + 1; in php_pcre_split_impl()
1662 start_offset = offsets[1]; in php_pcre_split_impl()
1666 …start_offset = last_match - subject; /* the offset might have been incremented, but without furthe… in php_pcre_split_impl()
1668 if (!no_empty || start_offset < subject_len) in php_pcre_split_impl()
1672 …add_offset_pair(return_value, &subject[start_offset], subject_len - start_offset, start_offset, NU… in php_pcre_split_impl()