diff-match-patch
diff-match-patch copied to clipboard
Diff Match Patch is a high-performance library in multiple languages that manipulates plain text.
I'm reading the line diff and word diff section of the wiki. It is stated to "make a copy of linesToChars" and call it "linesToWords"... it would be great if...
using STL string/container to replace QT code, add Make file and all tests passed
I want to get char positions of changed text along with change tuples. Please help if anyone implemented this? Example in Python: ``` import diff_match_patch as dmp_module dmp = dmp_module.diff_match_patch()...
I tried to use python version diff-match-patch to visualize my ocr experiment result. aka difference between gt and prediction. If I just follow the instruction ` dmp = dmp_module.diff_match_patch() diff...
Did anyone use this with angular 7?
encodeURI blows up for some patch_obj: https://github.com/google/diff-match-patch/blob/a6367d7866833ac037fbdefcdbcbee4def86e326/javascript/diff_match_patch_uncompressed.js#L2186 Example: ```js let diff_match_patch = require("diff-match-patch"); let text1 = "🅱"; let text2 = "🅰"; let diff = new diff_match_patch(); console.log(diff.patch_toText(diff.patch_make(text1, text2))); ```
Make patch_apply use StringBuilder instead of String to speed up patch stage.
There was a change in JS version https://github.com/google/diff-match-patch/commit/cd60d246aecf871367313c7cf6dc8814af32c5e3#diff-5270d640a6c9c1b0590326b029d71ec8R76 from plain Array to a `diff_match_patch.Diff` Object that's trying to emulate Array. The new object is not iterable, which messes up for...
I tried to do the [https://github.com/google/diff-match-patch/wiki/Line-or-Word-Diffs](https://github.com/google/diff-match-patch/wiki/Line-or-Word-Diffs) in C#. This is the code that I used (copied from the existing `private List diff_lineMode()` method): ``` csharp public List diff_lineMode(string text1, string...