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.253-beta+ffb7163c9e3b771705bc5b9aa3f09870f2cb9e2c
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