Lines Matching refs:start_offset

961 		zval *val, const char *subject, PCRE2_SIZE start_offset, PCRE2_SIZE end_offset) {  in populate_match_value_str()  argument
962 ZVAL_STRINGL_FAST(val, subject + start_offset, end_offset - start_offset); in populate_match_value_str()
966 zval *val, const char *subject, PCRE2_SIZE start_offset, PCRE2_SIZE end_offset, in populate_match_value() argument
968 if (PCRE2_UNSET == start_offset) { in populate_match_value()
975 populate_match_value_str(val, subject, start_offset, end_offset); in populate_match_value()
995 zval *result, const char *subject, PCRE2_SIZE start_offset, PCRE2_SIZE end_offset, in add_offset_pair() argument
1001 if (PCRE2_UNSET == start_offset) { in add_offset_pair()
1015 populate_match_value_str(&val1, subject, start_offset, end_offset); in add_offset_pair()
1016 ZVAL_LONG(&val2, start_offset); in add_offset_pair()
1021 add_named(result, name, &match_pair, start_offset == PCRE2_UNSET); in add_offset_pair()
1103 zend_long start_offset = 0; /* Where the new search starts */ in php_do_pcre_match() local
1111 Z_PARAM_LONG(start_offset) in php_do_pcre_match()
1121 global, ZEND_NUM_ARGS() >= 4, flags, start_offset); in php_do_pcre_match()
1127 zend_string *subject_str, PCRE2_SIZE start_offset) { in is_known_valid_utf8() argument
1133 if (start_offset == ZSTR_LEN(subject_str)) { in is_known_valid_utf8()
1139 return (ZSTR_VAL(subject_str)[start_offset] & 0xc0) != 0x80; in is_known_valid_utf8()
1144 zval *subpats, int global, int use_flags, zend_long flags, zend_off_t start_offset) in php_pcre_match_impl() argument
1202 if (start_offset < 0) { in php_pcre_match_impl()
1203 if ((PCRE2_SIZE)-start_offset <= subject_len) { in php_pcre_match_impl()
1204 start_offset2 = subject_len + start_offset; in php_pcre_match_impl()
1209 start_offset2 = (PCRE2_SIZE)start_offset; in php_pcre_match_impl()
1590 PCRE2_SIZE start_offset; /* Where the new search starts */ in php_pcre_replace_impl() local
1609 start_offset = 0; in php_pcre_replace_impl()
1629 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1633 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1744 start_offset = last_end_offset = offsets[1]; in php_pcre_replace_impl()
1750 if (start_offset == offsets[0]) { in php_pcre_replace_impl()
1751 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1754 piece = subject + start_offset; in php_pcre_replace_impl()
1762 if (start_offset < subject_len) { in php_pcre_replace_impl()
1764 start_offset += unit_len; in php_pcre_replace_impl()
1804 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1808 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1829 PCRE2_SIZE start_offset; /* Where the new search starts */ in php_pcre_replace_func_impl() local
1859 start_offset = 0; in php_pcre_replace_func_impl()
1885 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
1889 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
1953 start_offset = last_end_offset = offsets[1]; in php_pcre_replace_func_impl()
1959 if (start_offset == offsets[0]) { in php_pcre_replace_func_impl()
1960 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
1963 piece = subject + start_offset; in php_pcre_replace_func_impl()
1971 if (start_offset < subject_len) { in php_pcre_replace_func_impl()
1973 start_offset += unit_len; in php_pcre_replace_func_impl()
2012 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
2016 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
2507 PCRE2_SIZE start_offset; /* Where the new search starts */ in php_pcre_split_impl() local
2528 start_offset = 0; in php_pcre_split_impl()
2555 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2559 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2613 start_offset = last_match_offset = offsets[1]; in php_pcre_split_impl()
2619 if (start_offset == offsets[0]) { in php_pcre_split_impl()
2624 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2633 if (start_offset < ZSTR_LEN(subject_str)) { in php_pcre_split_impl()
2634 start_offset += calculate_unit_length(pce, subject + start_offset); in php_pcre_split_impl()
2658 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2662 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2675start_offset = last_match_offset; /* the offset might have been incremented, but without further s… in php_pcre_split_impl()
2677 if (!no_empty || start_offset < ZSTR_LEN(subject_str)) { in php_pcre_split_impl()
2680 add_offset_pair(return_value, subject, start_offset, ZSTR_LEN(subject_str), NULL, 0); in php_pcre_split_impl()
2683 if (start_offset == 0) { in php_pcre_split_impl()
2686 populate_match_value_str(&tmp, subject, start_offset, ZSTR_LEN(subject_str)); in php_pcre_split_impl()