Lines Matching refs:wanted_re
2048 $wanted_re = preg_replace('/\r\n/', "\n", $wanted);
2056 $length = strlen($wanted_re);
2058 $start = strpos($wanted_re, $r, $startOffset);
2061 $end = strpos($wanted_re, $r, $start+2);
2071 $temp .= preg_quote(substr($wanted_re, $startOffset, $start - $startOffset), '/');
2074 $temp .= '(' . substr($wanted_re, $start+2, $end - $start-2). ')';
2078 $wanted_re = $temp;
2081 $wanted_re = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $wanted_re);
2082 $wanted_re = str_replace('%s', '[^\r\n]+', $wanted_re);
2083 $wanted_re = str_replace('%S', '[^\r\n]*', $wanted_re);
2084 $wanted_re = str_replace('%a', '.+', $wanted_re);
2085 $wanted_re = str_replace('%A', '.*', $wanted_re);
2086 $wanted_re = str_replace('%w', '\s*', $wanted_re);
2087 $wanted_re = str_replace('%i', '[+-]?\d+', $wanted_re);
2088 $wanted_re = str_replace('%d', '\d+', $wanted_re);
2089 $wanted_re = str_replace('%x', '[0-9a-fA-F]+', $wanted_re);
2090 $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', $wanted_re);
2091 $wanted_re = str_replace('%c', '.', $wanted_re);
2099 if (preg_match("/^$wanted_re\$/s", $output)) {
2143 $wanted_re = null;
2152 if (isset($wanted_re)) {
2153 $wanted_re = preg_quote($wanted_headers . "\n--HEADERS--\n", '/') . $wanted_re;
2191 $diff = generate_diff($wanted, $wanted_re, $output);
2361 function generate_diff($wanted, $wanted_re, $output) argument
2365 $r = is_null($wanted_re) ? $w : explode("\n", $wanted_re);
2366 $diff = generate_array_diff($r, $o, !is_null($wanted_re), $w);