Beispiel #1
0
 private static String GetRevisedTextByDiff(String original, String delta, String revised)
 {
     if (string.Equals(delta, revised) || string.Equals(delta, original))
     {
         return revised;
     }
     // TODO 由于不知道这里的业务逻辑,所以暂时不做处理  ,后续.找到对应的类
     diff_match_patch diff = new diff_match_patch();
     return (String)diff.patch_apply(diff.patch_make(original, delta), revised)[0];
 }