Change

data class Change(val fromA: Int, val toA: Int, val fromB: Int, val toB: Int)

A single changed range between two documents, spanning fromA..toA in document A and fromB..toB in document B.

Constructors

Link copied to clipboard
constructor(fromA: Int, toA: Int, fromB: Int, toB: Int)

Properties

Link copied to clipboard
val fromA: Int
Link copied to clipboard
val fromB: Int
Link copied to clipboard
val toA: Int
Link copied to clipboard
val toB: Int

Functions

Link copied to clipboard
fun offset(offA: Int, offB: Int = offA): Change

Return a new Change with both ranges shifted by the given offsets.