Diff d = new Diff(leftList, rightList); Diff.change script = d.diff_2(false); GUIPrint guiPrint = new GUIPrint(leftList, rightList); guiPrint.printScript(script); List<Change> changes = guiPrint.getChanges();
List<String> leftList = Diff.getLines(str1); List<String> rightList = Diff.getLines(str2); Diff d = new Diff(leftList, rightList); Diff.change script = d.diff_2(false); GUIPrint guiPrint = new GUIPrint(leftList, rightList); guiPrint.printScript(script); List<Change> changes = guiPrint.getChanges();
Diff d = new Diff(str1, str2); Diff.change script = d.diff_2(false); GUIPrint guiPrint = new GUIPrint(str1, str2); guiPrint.printScript(script); List<Change> changes = guiPrint.getChanges();
Copyright 2016-2019 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence