Click or drag to resize

DiffMatchPatchDiffXIndex Method

loc is a location in text1, compute and return the equivalent location in text2. e.g. "The cat" vs "The big cat", 1->1, 5->8

Namespace: GSF.Text
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.191-beta+925724bd48239ba1d4417fe63f8c4977892ab734
Syntax
public int DiffXIndex(
	List<Diff> diffs,
	int loc
)
View Source

Parameters

diffs  ListDiff
List of Diff objects
loc  Int32
Location within text1

Return Value

Int32
Location within text2
See Also