Skip to main content

Module splice

Module splice 

Source

Functionsยง

apply
Apply non-overlapping byte-range replacements to a source string.
compute_line_offsets
Compute byte offsets of each line start in the source.
diff
Compute a unified-diff-style display of planned edits.
offset_to_line
Convert a byte offset to a 0-based line number.
offset_to_line_col
Convert a byte offset to (1-based line, 1-based column).