google-diff-match-patch:用于对文本进行比对,匹配和补缀
jopen
12年前
google-diff-match-patch:用于对文本进行比对,匹配和补缀。它提供了强大的算法来进行同步纯文本所需的操作。
- Diff:
- Compare two blocks of plain text and efficiently return a list of differences.
- Diff Demo
- Match:
- Given a search string, find its best fuzzy match in a block of plain text. Weighted for both accuracy and location.
- Match Demo
- 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
当前支持Java, JavaScript, Dart, C++, C#, Objective C, Lua 和Python等编程语言。所提供的每种语言版本都具有相同的API和相同的API。