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.248-beta+a497a19de709fd99e2448886199a2c8824265ddf
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