google-diff-match-patch:用于对文本进行比对,匹配和补缀
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。
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!