google-diff-match-patch:用于對文本進行比對,匹配和補綴

jopen 12年前發布 | 40K 次閱讀 文本比對 常用工具包

google-diff-match-patch:用于對文本進行比對,匹配和補綴。它提供了強大的算法來進行同步純文本所需的操作。

  1. Diff:
    • Compare two blocks of plain text and efficiently return a list of differences.
    • Diff Demo
    • </ul>

    • Match:
      • Given a search string, find its best fuzzy match in a block of plain text. Weighted for both accuracy and location.
      • Match Demo
      • </ul>

      • Patch:
        • Apply a list of patches onto plain text. Use best-effort to apply patch even when the underlying text doesn't match.
        • Patch Demo
        • </ul> </ol>

          當前支持Java, JavaScript, Dart, C++, C#, Objective C, Lua 和Python等編程語言。所提供的每種語言版本都具有相同的API和相同的API。

          項目主頁:http://www.baiduhome.net/lib/view/home/1338274567839

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!