Lines Matching refs:walk
1071 register char *walk = *str; in preg_get_backref() local
1073 if (walk[1] == 0) in preg_get_backref()
1076 if (*walk == '$' && walk[1] == '{') { in preg_get_backref()
1078 walk++; in preg_get_backref()
1080 walk++; in preg_get_backref()
1082 if (*walk >= '0' && *walk <= '9') { in preg_get_backref()
1083 *backref = *walk - '0'; in preg_get_backref()
1084 walk++; in preg_get_backref()
1088 if (*walk && *walk >= '0' && *walk <= '9') { in preg_get_backref()
1089 *backref = *backref * 10 + *walk - '0'; in preg_get_backref()
1090 walk++; in preg_get_backref()
1094 if (*walk != '}') in preg_get_backref()
1097 walk++; in preg_get_backref()
1100 *str = walk; in preg_get_backref()
1191 *walk, /* Used to walk the replacement string */ in php_pcre_replace_impl() local
1290 walk = replace; in php_pcre_replace_impl()
1293 while (walk < replace_end) { in php_pcre_replace_impl()
1294 if ('\\' == *walk || '$' == *walk) { in php_pcre_replace_impl()
1296 walk++; in php_pcre_replace_impl()
1300 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1307 walk++; in php_pcre_replace_impl()
1308 walk_last = walk[-1]; in php_pcre_replace_impl()
1327 walk = replace; in php_pcre_replace_impl()
1329 while (walk < replace_end) { in php_pcre_replace_impl()
1330 if ('\\' == *walk || '$' == *walk) { in php_pcre_replace_impl()
1332 *(walkbuf-1) = *walk++; in php_pcre_replace_impl()
1336 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1345 *walkbuf++ = *walk++; in php_pcre_replace_impl()
1346 walk_last = walk[-1]; in php_pcre_replace_impl()