• 大小: 0.30M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-03-27
  • 语言: 其他
  • 标签: 其他  

资源简介


要对文本文件的进行比较的时候,可以考虑使用google-diff-match-patch,它可以进行比较、匹配和生成补丁的操作 google-diff-match-patch这个类库提供了强大的算法用于纯文本内容的差异比较,匹配,打补丁,实现同步纯文本所需要执行一些操作。支持多种语言包括:Java、JavaScript、C++、C#、Objective C、Lua和Python。

资源截图

代码片段和文件信息

/*
 * Copyright 2008 Google Inc. All Rights Reserved.
 * Author: fraser@google.com (Neil Fraser)
 * Author: mikeslemmer@gmail.com (Mike Slemmer)
 *
 * Licensed under the Apache License Version 2.0 (the “License“);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing software
 * distributed under the License is distributed on an “AS IS“ BASIS
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Diff Match and Patch
 * http://code.google.com/p/google-diff-match-patch/
 */

#include 
#include 
// Code known to compile and run with Qt 4.3 through Qt 4.7.
#include 
#include 
#include “diff_match_patch.h“


//////////////////////////
//
// Diff Class
//

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-11-19 20:35  diff_match_patch_20121119\
     目录           0  2012-11-19 20:35  diff_match_patch_20121119\javascript\
     文件        4979  2012-11-19 20:35  diff_match_patch_20121119\javascript\diff_match_patch_test.html
     文件       19192  2012-11-19 20:35  diff_match_patch_20121119\javascript\diff_match_patch.js
     文件       76493  2012-11-19 20:35  diff_match_patch_20121119\javascript\diff_match_patch_uncompressed.js
     文件       38310  2012-11-19 20:35  diff_match_patch_20121119\javascript\diff_match_patch_test.js
     文件       10174  2012-11-19 20:35  diff_match_patch_20121119\COPYING
     目录           0  2012-11-19 20:35  diff_match_patch_20121119\dart\
     文件       47268  2012-11-19 20:35  diff_match_patch_20121119\dart\DiffMatchPatchTest.dart
     文件         483  2012-11-19 20:35  diff_match_patch_20121119\dart\README.txt
     文件         808  2012-11-19 20:35  diff_match_patch_20121119\dart\DiffMatchPatch.dart
     文件        1606  2012-11-19 20:35  diff_match_patch_20121119\dart\DiffClass.dart
     文件       76135  2012-11-19 20:35  diff_match_patch_20121119\dart\DMPClass.dart
     文件        2117  2012-11-19 20:35  diff_match_patch_20121119\dart\PatchClass.dart
     目录           0  2012-11-19 20:35  diff_match_patch_20121119\python2\
     文件       67934  2012-11-19 20:35  diff_match_patch_20121119\python2\diff_match_patch.py
     文件       41744  2012-11-19 20:35  diff_match_patch_20121119\python2\diff_match_patch_test.py
     文件          59  2012-11-19 20:35  diff_match_patch_20121119\python2\__init__.py
     目录           0  2012-11-19 20:35  diff_match_patch_20121119\demos\
     文件        4583  2012-11-19 20:35  diff_match_patch_20121119\demos\demo_patch.html
     文件        4136  2012-11-19 20:35  diff_match_patch_20121119\demos\demo_match.html
     文件        3499  2012-11-19 20:35  diff_match_patch_20121119\demos\demo_diff.html
     目录           0  2012-11-19 20:35  diff_match_patch_20121119\csharp\
     文件       55946  2012-11-19 20:35  diff_match_patch_20121119\csharp\DiffMatchPatchTest.cs
     文件       87264  2012-11-19 20:35  diff_match_patch_20121119\csharp\DiffMatchPatch.cs
     目录           0  2012-11-19 20:35  diff_match_patch_20121119\objectivec\
     目录           0  2012-11-19 20:35  diff_match_patch_20121119\objectivec\Configurations\
     文件          47  2012-11-19 20:35  diff_match_patch_20121119\objectivec\Configurations\base+SnowLeopard.xcconfig
     文件        1119  2012-11-19 20:35  diff_match_patch_20121119\objectivec\Configurations\base.xcconfig
     文件          49  2012-11-19 20:35  diff_match_patch_20121119\objectivec\Configurations\Version.xcconfig
     文件         969  2012-11-19 20:35  diff_match_patch_20121119\objectivec\NSString+UnicharUtilities.h
............此处省略43个文件信息

评论

共有 条评论