Пример #1
0
 public void LinesToChars(CharRepresenter rep)
 {
     lmContext = rep.LinesToChars(ContextLines);
     lmPatched = rep.LinesToChars(PatchedLines);
 }
Пример #2
0
 public PatienceDiffer(CharRepresenter charRep = null) : base(charRep)
 {
 }
Пример #3
0
 public Patcher(IEnumerable <Patch> patches, IEnumerable <string> lines, CharRepresenter charRep = null)
 {
     this.patches = patches.Select(p => new WorkingPatch(p)).ToList();
     this.lines   = new List <string>(lines);
     this.charRep = charRep ?? new CharRepresenter();
 }
Пример #4
0
 public void WordsToChars(CharRepresenter rep)
 {
     wmContext = ContextLines.Select(rep.WordsToChars).ToArray();
     wmPatched = PatchedLines.Select(rep.WordsToChars).ToArray();
 }
Пример #5
0
 /// <summary>
 /// performs a line-mode diff on two files
 /// </summary>
 public PatienceDiff(IReadOnlyList <string> lines1, IReadOnlyList <string> lines2, CharRepresenter charRep = null)
 {
     this.lines1  = lines1;
     this.lines2  = lines2;
     this.charRep = charRep ?? new CharRepresenter();
 }
Пример #6
0
 public Differ(CharRepresenter charRep = null)
 {
     this.charRep = charRep ?? new CharRepresenter();
 }
Пример #7
0
 public LineMatchedDiffer(CharRepresenter charRep = null) : base(charRep)
 {
 }