类 org.test4j.tools.commons.TextDiffMatchPatch.Diff
的使用

使用 TextDiffMatchPatch.Diff 的软件包
org.test4j.tools.commons   
 

org.test4j.tools.commonsTextDiffMatchPatch.Diff 的使用
 

类型参数类型为 TextDiffMatchPatch.Difforg.test4j.tools.commons 中的字段
 LinkedList<TextDiffMatchPatch.Diff> TextDiffMatchPatch.Patch.diffs
           
 

返回变量类型为 TextDiffMatchPatch.Diff 的类型的 org.test4j.tools.commons 中的方法
protected  LinkedList<TextDiffMatchPatch.Diff> TextDiffMatchPatch.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<TextDiffMatchPatch.Diff> TextDiffMatchPatch.diff_fromDelta(String text1, String delta)
          Given the original text1, and an encoded string which describes the operations required to transform text1 into text2, compute the full diff.
 LinkedList<TextDiffMatchPatch.Diff> TextDiffMatchPatch.diff_main(String text1, String text2)
          Find the differences between two texts.
 LinkedList<TextDiffMatchPatch.Diff> TextDiffMatchPatch.diff_main(String text1, String text2, boolean checklines)
          Find the differences between two texts.
static LinkedList<TextDiffMatchPatch.Diff> TextDiffHelper.getDiff(String lText, String rText)
          比较左边和右边的文件,返回比较差异
 

类型变量类型为 TextDiffMatchPatch.Difforg.test4j.tools.commons 中的方法参数
protected  void TextDiffMatchPatch.diff_charsToLines(LinkedList<TextDiffMatchPatch.Diff> diffs, List<String> lineArray)
          Rehydrate the text in a diff from a string of line hashes to real lines of text.
 void TextDiffMatchPatch.diff_cleanupEfficiency(LinkedList<TextDiffMatchPatch.Diff> diffs)
          Reduce the number of edits by eliminating operationally trivial equalities.
 void TextDiffMatchPatch.diff_cleanupMerge(LinkedList<TextDiffMatchPatch.Diff> diffs)
          Reorder and merge like edit sections.
 void TextDiffMatchPatch.diff_cleanupSemantic(LinkedList<TextDiffMatchPatch.Diff> diffs)
          Reduce the number of edits by eliminating semantically trivial equalities.
 void TextDiffMatchPatch.diff_cleanupSemanticLossless(LinkedList<TextDiffMatchPatch.Diff> diffs)
          Look for single edits surrounded on both sides by equalities which can be shifted sideways to align the edit to a word boundary. e.g: The cat came. -> The cat came.
 int TextDiffMatchPatch.diff_levenshtein(LinkedList<TextDiffMatchPatch.Diff> diffs)
          Compute the Levenshtein distance; the number of inserted, deleted or substituted characters.
 String TextDiffMatchPatch.diff_prettyHtml(LinkedList<TextDiffMatchPatch.Diff> diffs)
          Convert a Diff list into a pretty HTML report.
 String TextDiffMatchPatch.diff_text1(LinkedList<TextDiffMatchPatch.Diff> diffs)
          Compute and return the source text (all equalities and deletions).
 String TextDiffMatchPatch.diff_text2(LinkedList<TextDiffMatchPatch.Diff> diffs)
          Compute and return the destination text (all equalities and insertions).
 String TextDiffMatchPatch.diff_toDelta(LinkedList<TextDiffMatchPatch.Diff> diffs)
          Crush the diff into an encoded string which describes the operations required to transform text1 into text2.
 int TextDiffMatchPatch.diff_xIndex(LinkedList<TextDiffMatchPatch.Diff> diffs, int loc)
          loc is a location in text1, compute and return the equivalent location in text2. e.g.
 LinkedList<TextDiffMatchPatch.Patch> TextDiffMatchPatch.patch_make(LinkedList<TextDiffMatchPatch.Diff> diffs)
          Compute a list of patches to turn text1 into text2. text1 will be derived from the provided diffs.
 LinkedList<TextDiffMatchPatch.Patch> TextDiffMatchPatch.patch_make(String text1, LinkedList<TextDiffMatchPatch.Diff> diffs)
          Compute a list of patches to turn text1 into text2. text2 is not provided, diffs are the delta between text1 and text2.
 LinkedList<TextDiffMatchPatch.Patch> TextDiffMatchPatch.patch_make(String text1, String text2, LinkedList<TextDiffMatchPatch.Diff> diffs)
          已过时。 Prefer patch_make(String text1, LinkedList diffs).
 



Copyright © 2013. All rights reserved.