Lines Matching refs:walk

1517 	char *walk = *str;  in preg_get_backref()  local
1519 if (walk[1] == 0) in preg_get_backref()
1522 if (*walk == '$' && walk[1] == '{') { in preg_get_backref()
1524 walk++; in preg_get_backref()
1526 walk++; in preg_get_backref()
1528 if (*walk >= '0' && *walk <= '9') { in preg_get_backref()
1529 *backref = *walk - '0'; in preg_get_backref()
1530 walk++; in preg_get_backref()
1534 if (*walk && *walk >= '0' && *walk <= '9') { in preg_get_backref()
1535 *backref = *backref * 10 + *walk - '0'; in preg_get_backref()
1536 walk++; in preg_get_backref()
1540 if (*walk != '}') in preg_get_backref()
1543 walk++; in preg_get_backref()
1546 *str = walk; in preg_get_backref()
1628 *walk, /* Used to walk the replacement string */ in php_pcre_replace_impl() local
1704 walk = ZSTR_VAL(replace_str); in php_pcre_replace_impl()
1705 replace_end = walk + ZSTR_LEN(replace_str); in php_pcre_replace_impl()
1708 while (walk < replace_end) { in php_pcre_replace_impl()
1709 if ('\\' == *walk || '$' == *walk) { in php_pcre_replace_impl()
1712 walk++; in php_pcre_replace_impl()
1716 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1723 walk++; in php_pcre_replace_impl()
1724 walk_last = walk[-1]; in php_pcre_replace_impl()
1750 walk = ZSTR_VAL(replace_str); in php_pcre_replace_impl()
1752 while (walk < replace_end) { in php_pcre_replace_impl()
1753 if ('\\' == *walk || '$' == *walk) { in php_pcre_replace_impl()
1755 *(walkbuf-1) = *walk++; in php_pcre_replace_impl()
1759 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1768 *walkbuf++ = *walk++; in php_pcre_replace_impl()
1769 walk_last = walk[-1]; in php_pcre_replace_impl()