Skip to main content

move_location

Function move_location 

Source
pub fn move_location(
    source_location: &mut SourceLocation,
    lines_map: &mut LineMap,
    str: &str,
    start: usize,
    end: Option<usize>,
)
Expand description

update the position (move()): the offsets are computed from the rendered string, its utf-16 code units are read in place (no copy)