Rope.diff

Find the difference between the two ropes, in terms of a single contiguous region.

struct Rope
const
diff
(
const Rope other
)

Parameters

other Rope

Rope to compare this rope to.

Return Value

The region containing the change, in terms of two subropes. The first rope is a subrope exclusive to this rope, and the second is a subrope exclusive to the other.

The return value includes a start field which indicates the exact index the resulting range starts with.

Meta