Lines Matching refs:start_offset

568 	long			  start_offset = 0;	/* Where the new search starts */  in php_do_pcre_match()  local
571 &subject, &subject_len, &subpats, &flags, &start_offset) == FAILURE) { in php_do_pcre_match()
582 global, ZEND_NUM_ARGS() >= 4, flags, start_offset TSRMLS_CC); in php_do_pcre_match()
589 zval *subpats, int global, int use_flags, long flags, long start_offset TSRMLS_DC) in php_pcre_match_impl()
640 if (start_offset < 0) { in php_pcre_match_impl()
641 start_offset = subject_len + start_offset; in php_pcre_match_impl()
642 if (start_offset < 0) { in php_pcre_match_impl()
643 start_offset = 0; in php_pcre_match_impl()
694 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_match_impl()
807 if (g_notempty != 0 && start_offset < subject_len) { in php_pcre_match_impl()
808 int unit_len = calculate_unit_length(pce, subject + start_offset); in php_pcre_match_impl()
810 offsets[0] = start_offset; in php_pcre_match_impl()
811 offsets[1] = start_offset + unit_len; in php_pcre_match_impl()
826 start_offset = offsets[1]; in php_pcre_match_impl()
1085 int start_offset; /* Where the new search starts */ in php_pcre_replace_impl() local
1155 start_offset = 0; in php_pcre_replace_impl()
1160 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_impl()
1172 piece = subject + start_offset; in php_pcre_replace_impl()
1181 new_len = *result_len + offsets[0] - start_offset; /* part before the match */ in php_pcre_replace_impl()
1269 if (g_notempty != 0 && start_offset < subject_len) { in php_pcre_replace_impl()
1272 offsets[0] = start_offset; in php_pcre_replace_impl()
1273 offsets[1] = start_offset + unit_len; in php_pcre_replace_impl()
1277 new_len = *result_len + subject_len - start_offset; in php_pcre_replace_impl()
1286 memcpy(&result[*result_len], piece, subject_len - start_offset); in php_pcre_replace_impl()
1287 *result_len += subject_len - start_offset; in php_pcre_replace_impl()
1305 start_offset = offsets[1]; in php_pcre_replace_impl()
1576 int start_offset; /* Where the new search starts */ in php_pcre_split_impl() local
1616 start_offset = 0; in php_pcre_split_impl()
1624 subject_len, start_offset, in php_pcre_split_impl()
1678 if (g_notempty != 0 && start_offset < subject_len) { in php_pcre_split_impl()
1688 subject_len, start_offset, in php_pcre_split_impl()
1695 offsets[0] = start_offset; in php_pcre_split_impl()
1696 offsets[1] = start_offset + 1; in php_pcre_split_impl()
1712 start_offset = offsets[1]; in php_pcre_split_impl()
1716start_offset = last_match - subject; /* the offset might have been incremented, but without furthe… in php_pcre_split_impl()
1718 if (!no_empty || start_offset < subject_len) in php_pcre_split_impl()
1722 …add_offset_pair(return_value, &subject[start_offset], subject_len - start_offset, start_offset, NU… in php_pcre_split_impl()