Lines Matching refs:wanted_re
2637 $wanted_re = preg_replace('/\r\n/', "\n", $wanted);
2644 $length = strlen($wanted_re);
2646 $start = strpos($wanted_re, $r, $startOffset);
2649 $end = strpos($wanted_re, $r, $start + 2);
2659 $temp .= preg_quote(substr($wanted_re, $startOffset, $start - $startOffset), '/');
2662 $temp .= '(' . substr($wanted_re, $start + 2, $end - $start - 2) . ')';
2666 $wanted_re = $temp;
2669 $wanted_re = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $wanted_re);
2670 $wanted_re = str_replace('%s', '[^\r\n]+', $wanted_re);
2671 $wanted_re = str_replace('%S', '[^\r\n]*', $wanted_re);
2672 $wanted_re = str_replace('%a', '.+', $wanted_re);
2673 $wanted_re = str_replace('%A', '.*', $wanted_re);
2674 $wanted_re = str_replace('%w', '\s*', $wanted_re);
2675 $wanted_re = str_replace('%i', '[+-]?\d+', $wanted_re);
2676 $wanted_re = str_replace('%d', '\d+', $wanted_re);
2677 $wanted_re = str_replace('%x', '[0-9a-fA-F]+', $wanted_re);
2678 $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', $wanted_re);
2679 $wanted_re = str_replace('%c', '.', $wanted_re);
2683 if (preg_match("/^$wanted_re\$/s", $output)) {
2733 $wanted_re = null;
2742 if (isset($wanted_re)) {
2743 $wanted_re = preg_quote($wanted_headers . "\n--HEADERS--\n", '/') . $wanted_re;
2780 $diff = generate_diff($wanted, $wanted_re, $output);
3036 function generate_diff(string $wanted, ?string $wanted_re, string $output): string argument
3040 $r = is_null($wanted_re) ? $w : explode("\n", $wanted_re);
3041 $diff = generate_array_diff($r, $o, !is_null($wanted_re), $w);