Package | Description |
---|---|
org.jboss.errai.otec.client.util |
Modifier and Type | Field and Description |
---|---|
LinkedList<DiffPatchMerge.Diff> |
DiffPatchMerge.Patch.diffs |
Modifier and Type | Method and Description |
---|---|
protected LinkedList<DiffPatchMerge.Diff> |
DiffPatchMerge.diff_bisect(String text1,
String text2,
long deadline)
Find the 'middle snake' of a diff, split the problem in two
and return the recursively constructed diff.
|
LinkedList<DiffPatchMerge.Diff> |
DiffPatchMerge.diff_main(String text1,
String text2)
Find the differences between two texts.
|
LinkedList<DiffPatchMerge.Diff> |
DiffPatchMerge.diff_main(String text1,
String text2,
boolean checklines)
Find the differences between two texts.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DiffPatchMerge.diff_charsToLines(LinkedList<DiffPatchMerge.Diff> diffs,
List<String> lineArray)
Rehydrate the text in a diff from a string of line hashes to real lines of
text.
|
void |
DiffPatchMerge.diff_cleanupEfficiency(LinkedList<DiffPatchMerge.Diff> diffs)
Reduce the number of edits by eliminating operationally trivial equalities.
|
void |
DiffPatchMerge.diff_cleanupMerge(LinkedList<DiffPatchMerge.Diff> diffs)
Reorder and merge like edit sections.
|
void |
DiffPatchMerge.diff_cleanupSemantic(LinkedList<DiffPatchMerge.Diff> diffs)
Reduce the number of edits by eliminating semantically trivial equalities.
|
int |
DiffPatchMerge.diff_levenshtein(LinkedList<DiffPatchMerge.Diff> diffs)
Compute the Levenshtein distance; the number of inserted, deleted or
substituted characters.
|
String |
DiffPatchMerge.diff_prettyHtml(LinkedList<DiffPatchMerge.Diff> diffs)
Convert a Diff list into a pretty HTML report.
|
String |
DiffPatchMerge.diff_text1(LinkedList<DiffPatchMerge.Diff> diffs)
Compute and return the source text (all equalities and deletions).
|
String |
DiffPatchMerge.diff_text2(LinkedList<DiffPatchMerge.Diff> diffs)
Compute and return the destination text (all equalities and insertions).
|
int |
DiffPatchMerge.diff_xIndex(LinkedList<DiffPatchMerge.Diff> diffs,
int loc)
loc is a location in text1, compute and return the equivalent location in
text2.
|
LinkedList<DiffPatchMerge.Patch> |
DiffPatchMerge.patch_make(LinkedList<DiffPatchMerge.Diff> diffs)
Compute a list of patches to turn text1 into text2.
|
LinkedList<DiffPatchMerge.Patch> |
DiffPatchMerge.patch_make(String text1,
LinkedList<DiffPatchMerge.Diff> diffs)
Compute a list of patches to turn text1 into text2.
|
LinkedList<DiffPatchMerge.Patch> |
DiffPatchMerge.patch_make(String text1,
String text2,
LinkedList<DiffPatchMerge.Diff> diffs)
Deprecated.
Prefer patch_make(String text1, LinkedList
|
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.