public void LinesToChars(CharRepresenter rep) { lmContext = rep.LinesToChars(ContextLines); lmPatched = rep.LinesToChars(PatchedLines); }
public PatienceDiffer(CharRepresenter charRep = null) : base(charRep) { }
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(); }
public void WordsToChars(CharRepresenter rep) { wmContext = ContextLines.Select(rep.WordsToChars).ToArray(); wmPatched = PatchedLines.Select(rep.WordsToChars).ToArray(); }
/// <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(); }
public Differ(CharRepresenter charRep = null) { this.charRep = charRep ?? new CharRepresenter(); }
public LineMatchedDiffer(CharRepresenter charRep = null) : base(charRep) { }