Lines Matching refs:walk

1506 	char *walk = *str;  in preg_get_backref()  local
1508 if (walk[1] == 0) in preg_get_backref()
1511 if (*walk == '$' && walk[1] == '{') { in preg_get_backref()
1513 walk++; in preg_get_backref()
1515 walk++; in preg_get_backref()
1517 if (*walk >= '0' && *walk <= '9') { in preg_get_backref()
1518 *backref = *walk - '0'; in preg_get_backref()
1519 walk++; in preg_get_backref()
1523 if (*walk && *walk >= '0' && *walk <= '9') { in preg_get_backref()
1524 *backref = *backref * 10 + *walk - '0'; in preg_get_backref()
1525 walk++; in preg_get_backref()
1529 if (*walk != '}') in preg_get_backref()
1532 walk++; in preg_get_backref()
1535 *str = walk; in preg_get_backref()
1617 *walk, /* Used to walk the replacement string */ in php_pcre_replace_impl() local
1693 walk = ZSTR_VAL(replace_str); in php_pcre_replace_impl()
1694 replace_end = walk + ZSTR_LEN(replace_str); in php_pcre_replace_impl()
1697 while (walk < replace_end) { in php_pcre_replace_impl()
1698 if ('\\' == *walk || '$' == *walk) { in php_pcre_replace_impl()
1701 walk++; in php_pcre_replace_impl()
1705 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1712 walk++; in php_pcre_replace_impl()
1713 walk_last = walk[-1]; in php_pcre_replace_impl()
1739 walk = ZSTR_VAL(replace_str); in php_pcre_replace_impl()
1741 while (walk < replace_end) { in php_pcre_replace_impl()
1742 if ('\\' == *walk || '$' == *walk) { in php_pcre_replace_impl()
1744 *(walkbuf-1) = *walk++; in php_pcre_replace_impl()
1748 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1759 *walkbuf++ = *walk++; in php_pcre_replace_impl()
1760 walk_last = walk[-1]; in php_pcre_replace_impl()