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.249-beta+56964f8aed6f3f2e54faec1539f7ce0ba6548fdf
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