Lines Matching refs:wanted_re
2570 $wanted_re = preg_replace('/\r\n/', "\n", $wanted);
2578 $length = strlen($wanted_re);
2580 $start = strpos($wanted_re, $r, $startOffset);
2583 $end = strpos($wanted_re, $r, $start + 2);
2593 $temp .= preg_quote(substr($wanted_re, $startOffset, $start - $startOffset), '/');
2596 $temp .= '(' . substr($wanted_re, $start + 2, $end - $start - 2) . ')';
2600 $wanted_re = $temp;
2603 $wanted_re = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $wanted_re);
2604 $wanted_re = str_replace('%s', '[^\r\n]+', $wanted_re);
2605 $wanted_re = str_replace('%S', '[^\r\n]*', $wanted_re);
2606 $wanted_re = str_replace('%a', '.+', $wanted_re);
2607 $wanted_re = str_replace('%A', '.*', $wanted_re);
2608 $wanted_re = str_replace('%w', '\s*', $wanted_re);
2609 $wanted_re = str_replace('%i', '[+-]?\d+', $wanted_re);
2610 $wanted_re = str_replace('%d', '\d+', $wanted_re);
2611 $wanted_re = str_replace('%x', '[0-9a-fA-F]+', $wanted_re);
2612 $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', $wanted_re);
2613 $wanted_re = str_replace('%c', '.', $wanted_re);
2621 if (preg_match("/^$wanted_re\$/s", $output)) {
2673 $wanted_re = null;
2682 if (isset($wanted_re)) {
2683 $wanted_re = preg_quote($wanted_headers . "\n--HEADERS--\n", '/') . $wanted_re;
2721 $diff = generate_diff($wanted, $wanted_re, $output);
2898 function generate_diff($wanted, $wanted_re, $output) argument
2902 $r = is_null($wanted_re) ? $w : explode("\n", $wanted_re);
2903 $diff = generate_array_diff($r, $o, !is_null($wanted_re), $w);