1
+ using CSharpDiff . Diff . Models ;
2
+
3
+ namespace CSharpDiff . Diff
4
+ {
5
+ public interface IDiff
6
+ {
7
+ bool UseLongestToken { get ; set ; }
8
+
9
+ /// <summary>
10
+ /// Defines whether we ignore white space.
11
+ /// </summary>
12
+ bool IgnoreWhiteSpace { get ; set ; }
13
+
14
+ List < DiffResult > buildValues ( List < DiffResult > components , string [ ] newString , string [ ] oldString , bool useLongestToken ) ;
15
+
16
+ BestPath clonePath ( BestPath path ) ;
17
+
18
+ IList < DiffResult > determineDiff ( string [ ] cleanOldString , string [ ] cleanNewString ) ;
19
+
20
+ IList < DiffResult > diff ( string oldString , string newString ) ;
21
+
22
+ /// <summary>
23
+ /// Check whether left matches right.
24
+ /// </summary>
25
+ /// <param name="left"></param>
26
+ /// <param name="right"></param>
27
+ /// <returns></returns>
28
+ bool equals ( char left , char right ) ;
29
+
30
+ /// <summary>
31
+ /// Check whether left matches right.
32
+ /// </summary>
33
+ /// <param name="left"></param>
34
+ /// <param name="right"></param>
35
+ /// <returns></returns>
36
+ bool equals ( string left , string right ) ;
37
+ int extractCommon ( BestPath basePath , string [ ] newString , string [ ] oldString , int diagonalPath ) ;
38
+ string join ( string [ ] strings ) ;
39
+ List < DiffResult > pushComponent ( List < DiffResult > components , bool ? added , bool ? removed ) ;
40
+
41
+ /// <summary>
42
+ /// Remove empty values from the array. Differs per diff type.
43
+ /// </summary>
44
+ /// <param name="array"></param>
45
+ /// <returns></returns>
46
+ string [ ] removeEmpty ( string [ ] array ) ;
47
+
48
+ /// <summary>
49
+ /// Tokenize string, differs per diff type.
50
+ /// </summary>
51
+ /// <param name="value"></param>
52
+ /// <returns></returns>
53
+ string [ ] tokenize ( string value ) ;
54
+ }
55
+ }
0 commit comments