資源簡介
要對文本文件的進行比較的時候,可以考慮使用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\ja
?????文件????????4979??2012-11-19?20:35??diff_match_patch_20121119\ja
?????文件???????19192??2012-11-19?20:35??diff_match_patch_20121119\ja
?????文件???????76493??2012-11-19?20:35??diff_match_patch_20121119\ja
?????文件???????38310??2012-11-19?20:35??diff_match_patch_20121119\ja
?????文件???????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\ob
?????目錄???????????0??2012-11-19?20:35??diff_match_patch_20121119\ob
?????文件??????????47??2012-11-19?20:35??diff_match_patch_20121119\ob
?????文件????????1119??2012-11-19?20:35??diff_match_patch_20121119\ob
?????文件??????????49??2012-11-19?20:35??diff_match_patch_20121119\ob
?????文件?????????969??2012-11-19?20:35??diff_match_patch_20121119\ob
............此處省略43個文件信息
- 上一篇:ICOFormat64.8bi
- 下一篇:vrep_remoteAPI
評論
共有 條評論