package commons

  1. Overview
  2. Docs
type t = {
  1. path : Common.filename;
  2. start : int;
  3. end_ : int;
  4. replacement_text : string;
}
type edit_application_result =
  1. | Success of string
  2. | Overlap of {
    1. partial_result : string;
    2. discarded_edits : t list;
    }
val apply_edits : dryrun:bool -> t list -> string list * t list
val apply_edits_to_text : string -> t list -> edit_application_result
val apply_edit_to_text : string -> t -> string
OCaml

Innovation. Community. Security.