Lines Matching refs:backref
876 static int preg_get_backref(char **str, int *backref) in preg_get_backref() argument
891 *backref = *walk - '0'; in preg_get_backref()
897 *backref = *backref * 10 + *walk - '0'; in preg_get_backref()
970 int backref; /* Current backref */ in preg_do_eval() local
989 if (preg_get_backref(&walk, &backref)) { in preg_do_eval()
990 if (backref < count) { in preg_do_eval()
993 match = subject + offsets[backref<<1]; in preg_do_eval()
994 match_len = offsets[(backref<<1)+1] - offsets[backref<<1]; in preg_do_eval()
1083 int backref; /* Backreference number */ in php_pcre_replace_impl() local
1202 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1203 if (backref < count) in php_pcre_replace_impl()
1204 new_len += offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1244 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1245 if (backref < count) { in php_pcre_replace_impl()
1246 match_len = offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1247 memcpy(walkbuf, subject + offsets[backref<<1], match_len); in php_pcre_replace_impl()