Lines Matching refs:walk

1516 	char *walk = *str;  in preg_get_backref()  local
1518 if (walk[1] == 0) in preg_get_backref()
1521 if (*walk == '$' && walk[1] == '{') { in preg_get_backref()
1523 walk++; in preg_get_backref()
1525 walk++; in preg_get_backref()
1527 if (*walk >= '0' && *walk <= '9') { in preg_get_backref()
1528 *backref = *walk - '0'; in preg_get_backref()
1529 walk++; in preg_get_backref()
1533 if (*walk && *walk >= '0' && *walk <= '9') { in preg_get_backref()
1534 *backref = *backref * 10 + *walk - '0'; in preg_get_backref()
1535 walk++; in preg_get_backref()
1539 if (*walk != '}') in preg_get_backref()
1542 walk++; in preg_get_backref()
1545 *str = walk; in preg_get_backref()
1626 *walk, /* Used to walk the replacement string */ in php_pcre_replace_impl() local
1703 walk = ZSTR_VAL(replace_str); in php_pcre_replace_impl()
1704 replace_end = walk + ZSTR_LEN(replace_str); in php_pcre_replace_impl()
1707 while (walk < replace_end) { in php_pcre_replace_impl()
1708 if ('\\' == *walk || '$' == *walk) { in php_pcre_replace_impl()
1711 walk++; in php_pcre_replace_impl()
1715 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1722 walk++; in php_pcre_replace_impl()
1723 walk_last = walk[-1]; in php_pcre_replace_impl()
1749 walk = ZSTR_VAL(replace_str); in php_pcre_replace_impl()
1751 while (walk < replace_end) { in php_pcre_replace_impl()
1752 if ('\\' == *walk || '$' == *walk) { in php_pcre_replace_impl()
1754 *(walkbuf-1) = *walk++; in php_pcre_replace_impl()
1758 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()