Lines Matching refs:walk
411 const char *walk; /* used to walk replacement string for backrefs */ in php_ereg_replace() local
462 walk = replace; in php_ereg_replace()
463 while (*walk) { in php_ereg_replace()
464 …if ('\\' == *walk && isdigit((unsigned char)walk[1]) && ((unsigned char)walk[1]) - '0' <= (int)re.… in php_ereg_replace()
465 if (subs[walk[1] - '0'].rm_so > -1 && subs[walk[1] - '0'].rm_eo > -1) { in php_ereg_replace()
466 new_l += subs[walk[1] - '0'].rm_eo - subs[walk[1] - '0'].rm_so; in php_ereg_replace()
468 walk += 2; in php_ereg_replace()
471 walk++; in php_ereg_replace()
488 walk = replace; in php_ereg_replace()
489 while (*walk) { in php_ereg_replace()
490 …if ('\\' == *walk && isdigit((unsigned char)walk[1]) && (unsigned char)walk[1] - '0' <= (int)re.re… in php_ereg_replace()
491 if (subs[walk[1] - '0'].rm_so > -1 && subs[walk[1] - '0'].rm_eo > -1 in php_ereg_replace()
493 && subs[walk[1] - '0'].rm_so <= subs[walk[1] - '0'].rm_eo) { in php_ereg_replace()
495 tmp = subs[walk[1] - '0'].rm_eo - subs[walk[1] - '0'].rm_so; in php_ereg_replace()
496 memcpy (walkbuf, &string[pos + subs[walk[1] - '0'].rm_so], tmp); in php_ereg_replace()
499 walk += 2; in php_ereg_replace()
501 *walkbuf++ = *walk++; in php_ereg_replace()