Lines Matching refs:start_offset

980 		zval *val, const char *subject, PCRE2_SIZE start_offset, PCRE2_SIZE end_offset) {  in populate_match_value_str()  argument
981 ZVAL_STRINGL_FAST(val, subject + start_offset, end_offset - start_offset); in populate_match_value_str()
985 zval *val, const char *subject, PCRE2_SIZE start_offset, PCRE2_SIZE end_offset, in populate_match_value() argument
987 if (PCRE2_UNSET == start_offset) { in populate_match_value()
994 populate_match_value_str(val, subject, start_offset, end_offset); in populate_match_value()
1014 zval *result, const char *subject, PCRE2_SIZE start_offset, PCRE2_SIZE end_offset, in add_offset_pair() argument
1020 if (PCRE2_UNSET == start_offset) { in add_offset_pair()
1034 populate_match_value_str(&val1, subject, start_offset, end_offset); in add_offset_pair()
1035 ZVAL_LONG(&val2, start_offset); in add_offset_pair()
1040 add_named(result, name, &match_pair, start_offset == PCRE2_UNSET); in add_offset_pair()
1122 zend_long start_offset = 0; /* Where the new search starts */ in php_do_pcre_match() local
1130 Z_PARAM_LONG(start_offset) in php_do_pcre_match()
1140 global, ZEND_NUM_ARGS() >= 4, flags, start_offset); in php_do_pcre_match()
1146 zend_string *subject_str, PCRE2_SIZE start_offset) { in is_known_valid_utf8() argument
1152 if (start_offset == ZSTR_LEN(subject_str)) { in is_known_valid_utf8()
1158 return (ZSTR_VAL(subject_str)[start_offset] & 0xc0) != 0x80; in is_known_valid_utf8()
1163 zval *subpats, int global, int use_flags, zend_long flags, zend_off_t start_offset) in php_pcre_match_impl() argument
1221 if (start_offset < 0) { in php_pcre_match_impl()
1222 if ((PCRE2_SIZE)-start_offset <= subject_len) { in php_pcre_match_impl()
1223 start_offset2 = subject_len + start_offset; in php_pcre_match_impl()
1228 start_offset2 = (PCRE2_SIZE)start_offset; in php_pcre_match_impl()
1609 PCRE2_SIZE start_offset; /* Where the new search starts */ in php_pcre_replace_impl() local
1628 start_offset = 0; in php_pcre_replace_impl()
1648 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1652 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1763 start_offset = last_end_offset = offsets[1]; in php_pcre_replace_impl()
1769 if (start_offset == offsets[0]) { in php_pcre_replace_impl()
1770 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1773 piece = subject + start_offset; in php_pcre_replace_impl()
1781 if (start_offset < subject_len) { in php_pcre_replace_impl()
1783 start_offset += unit_len; in php_pcre_replace_impl()
1823 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1827 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1848 PCRE2_SIZE start_offset; /* Where the new search starts */ in php_pcre_replace_func_impl() local
1878 start_offset = 0; in php_pcre_replace_func_impl()
1904 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
1908 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
1972 start_offset = last_end_offset = offsets[1]; in php_pcre_replace_func_impl()
1978 if (start_offset == offsets[0]) { in php_pcre_replace_func_impl()
1979 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
1982 piece = subject + start_offset; in php_pcre_replace_func_impl()
1990 if (start_offset < subject_len) { in php_pcre_replace_func_impl()
1992 start_offset += unit_len; in php_pcre_replace_func_impl()
2031 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
2035 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
2526 PCRE2_SIZE start_offset; /* Where the new search starts */ in php_pcre_split_impl() local
2547 start_offset = 0; in php_pcre_split_impl()
2574 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2578 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2632 start_offset = last_match_offset = offsets[1]; in php_pcre_split_impl()
2638 if (start_offset == offsets[0]) { in php_pcre_split_impl()
2643 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2652 if (start_offset < ZSTR_LEN(subject_str)) { in php_pcre_split_impl()
2653 start_offset += calculate_unit_length(pce, subject + start_offset); in php_pcre_split_impl()
2677 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2681 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2694start_offset = last_match_offset; /* the offset might have been incremented, but without further s… in php_pcre_split_impl()
2696 if (!no_empty || start_offset < ZSTR_LEN(subject_str)) { in php_pcre_split_impl()
2699 add_offset_pair(return_value, subject, start_offset, ZSTR_LEN(subject_str), NULL, 0); in php_pcre_split_impl()
2702 if (start_offset == 0) { in php_pcre_split_impl()
2705 populate_match_value_str(&tmp, subject, start_offset, ZSTR_LEN(subject_str)); in php_pcre_split_impl()