Documentation ¶
Overview ¶
package lcs contains code to find longest-common-subsequences (and diffs)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diff ¶
type Diff struct {
Start, End int // offsets of portion to delete in A
ReplStart, ReplEnd int // offset of replacement text in B
}
A Diff is a replacement of a portion of A by a portion of B.
func DiffBytes ¶
DiffBytes returns the differences between two byte sequences. It does not respect rune boundaries.
func DiffStrings ¶
DiffStrings returns the differences between two strings. It does not respect rune boundaries.
Click to show internal directories.
Click to hide internal directories.