Lines Matching refs:walk
822 register char *walk = *str; in preg_get_backref() local
824 if (walk[1] == 0) in preg_get_backref()
827 if (*walk == '$' && walk[1] == '{') { in preg_get_backref()
829 walk++; in preg_get_backref()
831 walk++; in preg_get_backref()
833 if (*walk >= '0' && *walk <= '9') { in preg_get_backref()
834 *backref = *walk - '0'; in preg_get_backref()
835 walk++; in preg_get_backref()
839 if (*walk && *walk >= '0' && *walk <= '9') { in preg_get_backref()
840 *backref = *backref * 10 + *walk - '0'; in preg_get_backref()
841 walk++; in preg_get_backref()
845 if (*walk == 0 || *walk != '}') in preg_get_backref()
848 walk++; in preg_get_backref()
851 *str = walk; in preg_get_backref()
904 *walk, /* Used to walk the code string */ in preg_do_eval() local
915 walk = segment = eval_str; in preg_do_eval()
918 while (walk < eval_str_end) { in preg_do_eval()
920 if ('\\' == *walk || '$' == *walk) { in preg_do_eval()
921 smart_str_appendl(&code, segment, walk - segment); in preg_do_eval()
923 code.c[code.len-1] = *walk++; in preg_do_eval()
924 segment = walk; in preg_do_eval()
928 segment = walk; in preg_do_eval()
929 if (preg_get_backref(&walk, &backref)) { in preg_do_eval()
947 segment = walk; in preg_do_eval()
955 walk++; in preg_do_eval()
956 walk_last = walk[-1]; in preg_do_eval()
958 smart_str_appendl(&code, segment, walk - segment); in preg_do_eval()
1028 *walk, /* Used to walk the replacement string */ in php_pcre_replace_impl() local
1120 walk = replace; in php_pcre_replace_impl()
1122 while (walk < replace_end) { in php_pcre_replace_impl()
1123 if ('\\' == *walk || '$' == *walk) { in php_pcre_replace_impl()
1125 walk++; in php_pcre_replace_impl()
1129 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1136 walk++; in php_pcre_replace_impl()
1137 walk_last = walk[-1]; in php_pcre_replace_impl()
1162 walk = replace; in php_pcre_replace_impl()
1164 while (walk < replace_end) { in php_pcre_replace_impl()
1165 if ('\\' == *walk || '$' == *walk) { in php_pcre_replace_impl()
1167 *(walkbuf-1) = *walk++; in php_pcre_replace_impl()
1171 if (preg_get_backref(&walk, &backref)) { in php_pcre_replace_impl()
1180 *walkbuf++ = *walk++; in php_pcre_replace_impl()
1181 walk_last = walk[-1]; in php_pcre_replace_impl()