Lines Matching refs:wanted_re
2071 $wanted_re = preg_replace('/\r\n/', "\n", $wanted);
2079 $length = strlen($wanted_re);
2081 $start = strpos($wanted_re, $r, $startOffset);
2084 $end = strpos($wanted_re, $r, $start+2);
2094 $temp = $temp . preg_quote(substr($wanted_re, $startOffset, ($start - $startOffset)), '/');
2097 $temp = $temp . '(' . substr($wanted_re, $start+2, ($end - $start-2)). ')';
2101 $wanted_re = $temp;
2103 $wanted_re = str_replace(
2106 $wanted_re
2108 $wanted_re = str_replace(
2111 $wanted_re
2113 $wanted_re = str_replace(
2116 $wanted_re
2118 $wanted_re = str_replace(
2121 $wanted_re
2124 $wanted_re = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $wanted_re);
2125 $wanted_re = str_replace('%s', '[^\r\n]+', $wanted_re);
2126 $wanted_re = str_replace('%S', '[^\r\n]*', $wanted_re);
2127 $wanted_re = str_replace('%a', '.+', $wanted_re);
2128 $wanted_re = str_replace('%A', '.*', $wanted_re);
2129 $wanted_re = str_replace('%w', '\s*', $wanted_re);
2130 $wanted_re = str_replace('%i', '[+-]?\d+', $wanted_re);
2131 $wanted_re = str_replace('%d', '\d+', $wanted_re);
2132 $wanted_re = str_replace('%x', '[0-9a-fA-F]+', $wanted_re);
2133 $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', $wanted_re);
2134 $wanted_re = str_replace('%c', '.', $wanted_re);
2142 if (preg_match("/^$wanted_re\$/s", $output)) {
2186 $wanted_re = null;
2195 if (isset($wanted_re)) {
2196 $wanted_re = preg_quote($wanted_headers . "\n--HEADERS--\n", '/') . $wanted_re;
2234 $diff = generate_diff($wanted, $wanted_re, $output);
2400 function generate_diff($wanted, $wanted_re, $output) argument
2404 $r = is_null($wanted_re) ? $w : explode("\n", $wanted_re);
2405 $diff = generate_array_diff($r, $o, !is_null($wanted_re), $w);