Function translate

Source
pub fn translate(
    s: &str,
    match_str: &str,
    replace_str: &str,
    writer: &mut impl Write,
)