Lines Matching refs:walk
879 register char *walk = *str; in preg_get_backref() local
881 if (walk[1] == 0) in preg_get_backref()
884 if (*walk == '$' && walk[1] == '{') { in preg_get_backref()
886 walk++; in preg_get_backref()
888 walk++; in preg_get_backref()
890 if (*walk >= '0' && *walk <= '9') { in preg_get_backref()
891 *backref = *walk - '0'; in preg_get_backref()
892 walk++; in preg_get_backref()
896 if (*walk && *walk >= '0' && *walk <= '9') { in preg_get_backref()
897 *backref = *backref * 10 + *walk - '0'; in preg_get_backref()
898 walk++; in preg_get_backref()
902 if (*walk == 0 || *walk != '}') in preg_get_backref()
905 walk++; in preg_get_backref()
908 *str = walk; in preg_get_backref()
964 *walk, /* Used to walk the code string */ in preg_do_eval() local
975 walk = segment = eval_str; in preg_do_eval()
978 while (walk < eval_str_end) { in preg_do_eval()
980 if ('\\' == *walk || '$' == *walk) { in preg_do_eval()
981 smart_str_appendl(&code, segment, walk - segment); in preg_do_eval()
983 code.c[code.len-1] = *walk++; in preg_do_eval()
984 segment = walk; in preg_do_eval()
988 segment = walk; in preg_do_eval()
989 if (preg_get_backref(&walk, &backref)) { in preg_do_eval()
1007 segment = walk; in preg_do_eval()
1015 walk++; in preg_do_eval()
1016 walk_last = walk[-1]; in preg_do_eval()
1018 smart_str_appendl(&code, segment, walk - segment); in preg_do_eval()
1092 *walk, /* Used to walk the replacement string */ in php_pcre_replace_impl() local
1193 walk = replace; in php_pcre_replace_impl()
1195 while (walk < replace_end) { in php_pcre_replace_impl()
1196 if ('\\' == *walk || '$' == *walk) { in php_pcre_replace_impl()
1198 walk++; in php_pcre_replace_impl()
1202 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1209 walk++; in php_pcre_replace_impl()
1210 walk_last = walk[-1]; in php_pcre_replace_impl()
1235 walk = replace; in php_pcre_replace_impl()
1237 while (walk < replace_end) { in php_pcre_replace_impl()
1238 if ('\\' == *walk || '$' == *walk) { in php_pcre_replace_impl()
1240 *(walkbuf-1) = *walk++; in php_pcre_replace_impl()
1244 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1253 *walkbuf++ = *walk++; in php_pcre_replace_impl()
1254 walk_last = walk[-1]; in php_pcre_replace_impl()