Skip to main content

apply_edit_utf8

Function apply_edit_utf8 

Source
pub fn apply_edit_utf8(
    text: &mut String,
    start_byte: usize,
    old_end_byte: usize,
    replacement: &str,
)
Expand description

Apply UTF-8 edit to a string.

Replaces the byte range with the given replacement text.