Documentation
¶
Overview ¶
Package gond The algorithm implemented here is based on "An O(NP) Sequence Comparison Algorithm" by described by Sun Wu, Udi Manber and Gene Myers and "An O(ND) Difference Algorithm and Its Variations" by EUGENE W. MYERS
Index ¶
- type Diff
- func (diff *Diff) Compose()
- func (diff *Diff) Editdistance() int
- func (diff *Diff) FprintSes(w io.Writer)
- func (diff *Diff) Lcs() []string
- func (diff *Diff) LcsString() string
- func (diff *Diff) OnlyEd()
- func (diff *Diff) PrintSes()
- func (diff *Diff) Ses() []SesElem
- func (diff *Diff) SprintSes() string
- type Point
- type PointWithRoute
- type SesElem
- type SesType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diff ¶
type Diff struct {
// contains filtered or unexported fields
}
Diff is context for calculating difference between a and b
func (*Diff) Editdistance ¶
Editdistance returns edit distance between a and b
func (*Diff) PrintSes ¶
func (diff *Diff) PrintSes()
PrintSes prints shortest edit script between a and b
type Point ¶
type Point struct {
// contains filtered or unexported fields
}
Point is coordinate in edit graph
type PointWithRoute ¶
type PointWithRoute struct {
// contains filtered or unexported fields
}
PointWithRoute is coordinate in edit graph attached route
Click to show internal directories.
Click to hide internal directories.