Skip to main content

replace_ranges

Function replace_ranges 

Source
pub fn replace_ranges(text: &str, ranges: &[Range<usize>], with: &str) -> String
Expand description

A text with some ranges of it, counted in characters and not overlapping, replaced by another text.