Lines Matching refs:wanted_re
1993 $wanted_re = preg_replace('/\r\n/', "\n", $wanted);
2001 $length = strlen($wanted_re);
2003 $start = strpos($wanted_re, $r, $startOffset);
2006 $end = strpos($wanted_re, $r, $start+2);
2016 $temp = $temp . preg_quote(substr($wanted_re, $startOffset, ($start - $startOffset)), '/');
2019 $temp = $temp . '(' . substr($wanted_re, $start+2, ($end - $start-2)). ')';
2023 $wanted_re = $temp;
2025 $wanted_re = str_replace(
2028 $wanted_re
2030 $wanted_re = str_replace(
2033 $wanted_re
2035 $wanted_re = str_replace(
2038 $wanted_re
2040 $wanted_re = str_replace(
2043 $wanted_re
2046 $wanted_re = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $wanted_re);
2047 $wanted_re = str_replace('%s', '[^\r\n]+', $wanted_re);
2048 $wanted_re = str_replace('%S', '[^\r\n]*', $wanted_re);
2049 $wanted_re = str_replace('%a', '.+', $wanted_re);
2050 $wanted_re = str_replace('%A', '.*', $wanted_re);
2051 $wanted_re = str_replace('%w', '\s*', $wanted_re);
2052 $wanted_re = str_replace('%i', '[+-]?\d+', $wanted_re);
2053 $wanted_re = str_replace('%d', '\d+', $wanted_re);
2054 $wanted_re = str_replace('%x', '[0-9a-fA-F]+', $wanted_re);
2055 $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', $wanted_re);
2056 $wanted_re = str_replace('%c', '.', $wanted_re);
2064 if (preg_match("/^$wanted_re\$/s", $output)) {
2115 $wanted_re = null;
2124 if (isset($wanted_re)) {
2125 $wanted_re = preg_quote($wanted_headers . "\n--HEADERS--\n", '/') . $wanted_re;
2159 $diff = generate_diff($wanted, $wanted_re, $output);
2331 function generate_diff($wanted, $wanted_re, $output) argument
2335 $r = is_null($wanted_re) ? $w : explode("\n", $wanted_re);
2336 $diff = generate_array_diff($r, $o, !is_null($wanted_re), $w);