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.218-beta+101eee949414e414795e55a6e73d88938f0177b8
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