Lines Matching refs:backref
844 static int preg_get_backref(char **str, int *backref) in preg_get_backref() argument
859 *backref = *walk - '0'; in preg_get_backref()
865 *backref = *backref * 10 + *walk - '0'; in preg_get_backref()
935 int backref; /* Current backref */ in preg_do_eval() local
954 if (preg_get_backref(&walk, &backref)) { in preg_do_eval()
955 if (backref < count) { in preg_do_eval()
958 match = subject + offsets[backref<<1]; in preg_do_eval()
959 match_len = offsets[(backref<<1)+1] - offsets[backref<<1]; in preg_do_eval()
1048 int backref; /* Backreference number */ in php_pcre_replace_impl() local
1162 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1163 if (backref < count) in php_pcre_replace_impl()
1164 new_len += offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1204 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1205 if (backref < count) { in php_pcre_replace_impl()
1206 match_len = offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1207 memcpy(walkbuf, subject + offsets[backref<<1], match_len); in php_pcre_replace_impl()