Skip to main content

search_replace_file

Function search_replace_file 

Source
pub fn search_replace_file(
    path: &Path,
    old_string: &str,
    new_string: &str,
    replace_all: bool,
) -> Result<usize>
Expand description

在文件内做精确 search_replace,返回替换次数