pub fn adjust_subsequent_range(
replaced_range: (DocCharOffset, DocCharOffset),
replacement_len: RelCharOffset,
prefer_advance: bool,
range: &mut (DocCharOffset, DocCharOffset),
)Expand description
Adjust a range based on a text replacement. Positions before the replacement generally are not adjusted,
positions after the replacement generally are, and positions within the replacement are adjusted to the end of
the replacement if prefer_advance is true or are adjusted to the start of the replacement otherwise.