Class DiffMatchPatch
Inheritance
System.Object
DiffMatchPatch
Assembly: AutoCheck.Core.dll
Syntax
public class DiffMatchPatch : object
Fields
|
Improve this Doc
View Source
DiffEditCost
Declaration
public short DiffEditCost
Field Value
Type |
Description |
System.Int16 |
|
|
Improve this Doc
View Source
DiffTimeout
Declaration
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
MatchDistance
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
MatchThreshold
Declaration
public float MatchThreshold
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
PatchDeleteThreshold
Declaration
public float PatchDeleteThreshold
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
PatchMargin
Declaration
Field Value
Type |
Description |
System.Int16 |
|
Methods
|
Improve this Doc
View Source
diff_bisect(String, String, DateTime)
Declaration
protected List<Diff> diff_bisect(string text1, string text2, DateTime deadline)
Parameters
Type |
Name |
Description |
System.String |
text1 |
|
System.String |
text2 |
|
DateTime |
deadline |
|
Returns
Type |
Description |
List<Diff> |
|
|
Improve this Doc
View Source
diff_charsToLines(ICollection<Diff>, IList<String>)
Declaration
protected void diff_charsToLines(ICollection<Diff> diffs, IList<string> lineArray)
Parameters
Type |
Name |
Description |
ICollection<Diff> |
diffs |
|
IList<System.String> |
lineArray |
|
|
Improve this Doc
View Source
diff_commonOverlap(String, String)
Declaration
protected int diff_commonOverlap(string text1, string text2)
Parameters
Type |
Name |
Description |
System.String |
text1 |
|
System.String |
text2 |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
diff_halfMatch(String, String)
Declaration
protected string[] diff_halfMatch(string text1, string text2)
Parameters
Type |
Name |
Description |
System.String |
text1 |
|
System.String |
text2 |
|
Returns
Type |
Description |
System.String[] |
|
|
Improve this Doc
View Source
diff_linesToChars(String, String)
Declaration
protected Object[] diff_linesToChars(string text1, string text2)
Parameters
Type |
Name |
Description |
System.String |
text1 |
|
System.String |
text2 |
|
Returns
Type |
Description |
Object[] |
|
|
Improve this Doc
View Source
DiffCleanupEfficiency(List<Diff>)
Declaration
public void DiffCleanupEfficiency(List<Diff> diffs)
Parameters
Type |
Name |
Description |
List<Diff> |
diffs |
|
|
Improve this Doc
View Source
DiffCleanupMerge(List<Diff>)
Declaration
public void DiffCleanupMerge(List<Diff> diffs)
Parameters
Type |
Name |
Description |
List<Diff> |
diffs |
|
|
Improve this Doc
View Source
DiffCleanupSemantic(List<Diff>)
Declaration
public void DiffCleanupSemantic(List<Diff> diffs)
Parameters
Type |
Name |
Description |
List<Diff> |
diffs |
|
|
Improve this Doc
View Source
DiffCleanupSemanticLossless(List<Diff>)
Declaration
public void DiffCleanupSemanticLossless(List<Diff> diffs)
Parameters
Type |
Name |
Description |
List<Diff> |
diffs |
|
|
Improve this Doc
View Source
DiffCommonPrefix(String, String)
Declaration
public int DiffCommonPrefix(string text1, string text2)
Parameters
Type |
Name |
Description |
System.String |
text1 |
|
System.String |
text2 |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
DiffCommonSuffix(String, String)
Declaration
public int DiffCommonSuffix(string text1, string text2)
Parameters
Type |
Name |
Description |
System.String |
text1 |
|
System.String |
text2 |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
DiffFromDelta(String, String)
Declaration
public List<Diff> DiffFromDelta(string text1, string delta)
Parameters
Type |
Name |
Description |
System.String |
text1 |
|
System.String |
delta |
|
Returns
Type |
Description |
List<Diff> |
|
|
Improve this Doc
View Source
DiffLevenshtein(List<Diff>)
Declaration
public int DiffLevenshtein(List<Diff> diffs)
Parameters
Type |
Name |
Description |
List<Diff> |
diffs |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
DiffMain(String, String)
Declaration
public List<Diff> DiffMain(string text1, string text2)
Parameters
Type |
Name |
Description |
System.String |
text1 |
|
System.String |
text2 |
|
Returns
Type |
Description |
List<Diff> |
|
|
Improve this Doc
View Source
DiffMain(String, String, Boolean)
Declaration
public List<Diff> DiffMain(string text1, string text2, bool checklines)
Parameters
Type |
Name |
Description |
System.String |
text1 |
|
System.String |
text2 |
|
System.Boolean |
checklines |
|
Returns
Type |
Description |
List<Diff> |
|
|
Improve this Doc
View Source
DiffPrettyHtml(List<Diff>)
Declaration
public string DiffPrettyHtml(List<Diff> diffs)
Parameters
Type |
Name |
Description |
List<Diff> |
diffs |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DiffText1(List<Diff>)
Declaration
public string DiffText1(List<Diff> diffs)
Parameters
Type |
Name |
Description |
List<Diff> |
diffs |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DiffText2(List<Diff>)
Declaration
public string DiffText2(List<Diff> diffs)
Parameters
Type |
Name |
Description |
List<Diff> |
diffs |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DiffToDelta(List<Diff>)
Declaration
public string DiffToDelta(List<Diff> diffs)
Parameters
Type |
Name |
Description |
List<Diff> |
diffs |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
DiffxIndex(List<Diff>, Int32)
Declaration
public int DiffxIndex(List<Diff> diffs, int loc)
Parameters
Type |
Name |
Description |
List<Diff> |
diffs |
|
System.Int32 |
loc |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
EncodeURI(String)
Declaration
public static string EncodeURI(string str)
Parameters
Type |
Name |
Description |
System.String |
str |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
match_alphabet(String)
Declaration
protected Dictionary<char, int> match_alphabet(string pattern)
Parameters
Type |
Name |
Description |
System.String |
pattern |
|
Returns
Type |
Description |
Dictionary<System.Char, System.Int32> |
|
|
Improve this Doc
View Source
match_bitap(String, String, Int32)
Declaration
protected int match_bitap(string text, string pattern, int loc)
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.String |
pattern |
|
System.Int32 |
loc |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
MatchMain(String, String, Int32)
Declaration
public int MatchMain(string text, string pattern, int loc)
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.String |
pattern |
|
System.Int32 |
loc |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
patch_addContext(Patch, String)
Declaration
protected void patch_addContext(Patch patch, string text)
Parameters
Type |
Name |
Description |
Patch |
patch |
|
System.String |
text |
|
|
Improve this Doc
View Source
PatchAddPadding(List<Patch>)
Declaration
public string PatchAddPadding(List<Patch> patches)
Parameters
Type |
Name |
Description |
List<Patch> |
patches |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
PatchApply(List<Patch>, String)
Declaration
public Object[] PatchApply(List<Patch> patches, string text)
Parameters
Type |
Name |
Description |
List<Patch> |
patches |
|
System.String |
text |
|
Returns
Type |
Description |
Object[] |
|
|
Improve this Doc
View Source
PatchDeepCopy(List<Patch>)
Declaration
public List<Patch> PatchDeepCopy(List<Patch> patches)
Parameters
Type |
Name |
Description |
List<Patch> |
patches |
|
Returns
Type |
Description |
List<Patch> |
|
|
Improve this Doc
View Source
PatchFromText(String)
Declaration
public List<Patch> PatchFromText(string textline)
Parameters
Type |
Name |
Description |
System.String |
textline |
|
Returns
Type |
Description |
List<Patch> |
|
|
Improve this Doc
View Source
PatchMake(List<Diff>)
Declaration
public List<Patch> PatchMake(List<Diff> diffs)
Parameters
Type |
Name |
Description |
List<Diff> |
diffs |
|
Returns
Type |
Description |
List<Patch> |
|
|
Improve this Doc
View Source
PatchMake(String, List<Diff>)
Declaration
public List<Patch> PatchMake(string text1, List<Diff> diffs)
Parameters
Type |
Name |
Description |
System.String |
text1 |
|
List<Diff> |
diffs |
|
Returns
Type |
Description |
List<Patch> |
|
|
Improve this Doc
View Source
PatchMake(String, String)
Declaration
public List<Patch> PatchMake(string text1, string text2)
Parameters
Type |
Name |
Description |
System.String |
text1 |
|
System.String |
text2 |
|
Returns
Type |
Description |
List<Patch> |
|
|
Improve this Doc
View Source
PatchMake(String, String, List<Diff>)
Declaration
public List<Patch> PatchMake(string text1, string text2, List<Diff> diffs)
Parameters
Type |
Name |
Description |
System.String |
text1 |
|
System.String |
text2 |
|
List<Diff> |
diffs |
|
Returns
Type |
Description |
List<Patch> |
|
|
Improve this Doc
View Source
PatchSplitMax(List<Patch>)
Declaration
public void PatchSplitMax(List<Patch> patches)
Parameters
Type |
Name |
Description |
List<Patch> |
patches |
|
|
Improve this Doc
View Source
PatchToText(List<Patch>)
Declaration
public string PatchToText(List<Patch> patches)
Parameters
Type |
Name |
Description |
List<Patch> |
patches |
|
Returns
Type |
Description |
System.String |
|
Extension Methods
ObjectExtensions.DeepClone<T>(T)