fn abs_pattern(base_dir: &Path, pattern: Pattern) -> Pattern {
        if Self::is_absolute(&pattern) {
            pattern
        } else {
            let base_dir_pat = base_dir.to_string_lossy();
            let base_dir_pat = base_dir_pat.replace("\u{FFFD}", "?");
            let base_dir_pat = Pattern::literal(Self::append_sep(base_dir_pat).as_str());
            base_dir_pat + pattern
        }
    }
/// Returns an absolute pattern.
/// If pattern is relative (i.e. does not start with fs root), then the base_dir is appended.
Returns an absolute pattern.
If pattern is relative , then the base_dir is appended.
Returns an absolute pattern . If pattern is relative then the base_dir is appended .
fn abs_pattern(base_dir: &Path, pattern: Pattern) -> Pattern {
        if Self::is_absolute(&pattern) {
            pattern
        } else {
            let base_dir_pat = base_dir.to_string_lossy();
            let base_dir_pat = base_dir_pat.replace("\u{FFFD}", "?");
            let base_dir_pat = Pattern::literal(Self::append_sep(base_dir_pat).as_str());
            base_dir_pat + pattern
        }
    }
fn abs_pattern ( base_dir : & Path , pattern : Pattern ) -> Pattern { if Self :: is_absolute ( & pattern ) { pattern } else { let base_dir_pat = base_dir . to_string_lossy ( ) ; let base_dir_pat = base_dir_pat . replace ( " \u{FFFD} " , " " ) ; let base_dir_pat = Pattern :: literal ( Self :: append_sep ( base_dir_pat ) . as_str ( ) ) ; base_dir_pat + pattern } }
Returns an absolute pattern.
Returns an absolute pattern .
base_dir
&Path
pattern
Pattern
base_dir
&Path
pattern
Pattern