Lines Matching refs:start_offset

515 	long			  start_offset = 0;	/* Where the new search starts */  in php_do_pcre_match()  local
518 &subject, &subject_len, &subpats, &flags, &start_offset) == FAILURE) { in php_do_pcre_match()
528 global, ZEND_NUM_ARGS() >= 4, flags, start_offset TSRMLS_CC); in php_do_pcre_match()
534 zval *subpats, int global, int use_flags, long flags, long start_offset TSRMLS_DC) in php_pcre_match_impl()
583 if (start_offset < 0) { in php_pcre_match_impl()
584 start_offset = subject_len + start_offset; in php_pcre_match_impl()
585 if (start_offset < 0) { in php_pcre_match_impl()
586 start_offset = 0; in php_pcre_match_impl()
633 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_match_impl()
730 if (g_notempty != 0 && start_offset < subject_len) { in php_pcre_match_impl()
731 offsets[0] = start_offset; in php_pcre_match_impl()
732 offsets[1] = start_offset + 1; in php_pcre_match_impl()
747 start_offset = offsets[1]; in php_pcre_match_impl()
995 int start_offset; /* Where the new search starts */ in php_pcre_replace_impl() local
1056 start_offset = 0; in php_pcre_replace_impl()
1061 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_impl()
1073 piece = subject + start_offset; in php_pcre_replace_impl()
1082 new_len = *result_len + offsets[0] - start_offset; /* part before the match */ in php_pcre_replace_impl()
1170 if (g_notempty != 0 && start_offset < subject_len) { in php_pcre_replace_impl()
1171 offsets[0] = start_offset; in php_pcre_replace_impl()
1172 offsets[1] = start_offset + 1; in php_pcre_replace_impl()
1176 new_len = *result_len + subject_len - start_offset; in php_pcre_replace_impl()
1185 memcpy(&result[*result_len], piece, subject_len - start_offset); in php_pcre_replace_impl()
1186 *result_len += subject_len - start_offset; in php_pcre_replace_impl()
1204 start_offset = offsets[1]; in php_pcre_replace_impl()
1466 int start_offset; /* Where the new search starts */ in php_pcre_split_impl() local
1503 start_offset = 0; in php_pcre_split_impl()
1511 subject_len, start_offset, in php_pcre_split_impl()
1565 if (g_notempty != 0 && start_offset < subject_len) { in php_pcre_split_impl()
1575 subject_len, start_offset, in php_pcre_split_impl()
1582 offsets[0] = start_offset; in php_pcre_split_impl()
1583 offsets[1] = start_offset + 1; in php_pcre_split_impl()
1599 start_offset = offsets[1]; in php_pcre_split_impl()
1603start_offset = last_match - subject; /* the offset might have been incremented, but without furthe… in php_pcre_split_impl()
1605 if (!no_empty || start_offset < subject_len) in php_pcre_split_impl()
1609 …add_offset_pair(return_value, &subject[start_offset], subject_len - start_offset, start_offset, NU… in php_pcre_split_impl()