Package | Description |
---|---|
org.crosswire.common.diff |
An implementation of Diff that works within the line.
|
org.crosswire.jsword.book |
The Book package provides an interface to a real store of data.
|
Modifier and Type | Field and Description |
---|---|
private List<Difference> |
PatchEntry.diffs |
Modifier and Type | Method and Description |
---|---|
Difference |
PatchEntry.getFirstDifference() |
Difference |
PatchEntry.getLastDifference() |
Difference |
PatchEntry.removeFirstDifference() |
Modifier and Type | Method and Description |
---|---|
List<Difference> |
Diff.compare()
Find the differences between two texts.
|
private List<Difference> |
Diff.compute()
Find the differences between two texts.
|
List<Difference> |
DifferenceEngine.generate()
Explore the intersection points between the two texts.
|
Iterator<Difference> |
PatchEntry.iterator() |
protected List<Difference> |
DifferenceEngine.path1(List<Set<String>> vMap,
String newSource,
String newTarget)
Work from the middle back to the start to determine the path.
|
protected List<Difference> |
DifferenceEngine.path2(List<Set<String>> vMap,
String newSource,
String newTarget)
Work from the middle back to the end to determine the path.
|
Modifier and Type | Method and Description |
---|---|
void |
PatchEntry.addDifference(Difference diff) |
Modifier and Type | Method and Description |
---|---|
static void |
DiffCleanup.cleanupEfficiency(List<Difference> diffs)
Reduce the number of edits by eliminating operationally trivial
equalities.
|
static void |
DiffCleanup.cleanupMerge(List<Difference> diffs)
Reorder and merge like edit sections.
|
static void |
DiffCleanup.cleanupSemantic(List<Difference> diffs)
Reduce the number of edits by eliminating semantically trivial
equalities.
|
Patch |
Patch.make(String source,
String target,
List<Difference> diffList)
Compute a list of patches to turn text1 into text2.
|
String |
Diff.prettyHtml(List<Difference> diffs)
Convert a Difference list into a pretty HTML report.
|
protected void |
PatchEntry.setDifferences(List<Difference> newDiffs) |
int |
Diff.xIndex(List<Difference> diffs,
int loc)
loc is a location in source, compute and return the equivalent location
in target.
|
Constructor and Description |
---|
Patch(String source,
String target,
List<Difference> diffs)
Create a patch that can turn text1 into text2.
|
Modifier and Type | Method and Description |
---|---|
static List<org.jdom2.Content> |
OSISUtil.diffToOsis(List<Difference> diffs)
Convert a Difference list into a pretty HTML report.
|