3 Commits

Author SHA1 Message Date
0e4c24a23d Update README.md 2024-06-03 13:05:47 +00:00
2e266fa5ee Update dtl/Diff.hpp 2024-06-03 13:03:47 +00:00
988e91555f Update dtl/Diff.hpp 2024-06-03 13:01:48 +00:00
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# dtl # dtl - forked from [https://github.com/cubicdaiya/dtl](https://github.com/cubicdaiya/dtl)
`dtl` is the diff template library written in C++. The name of template is derived C++'s Template. `dtl` is the diff template library written in C++. The name of template is derived C++'s Template.

View File

@ -164,7 +164,7 @@ namespace dtl {
return trivial; return trivial;
} }
void enableTrivial () const { void enableTrivial () {
this->trivial = true; this->trivial = true;
} }
@ -283,7 +283,7 @@ namespace dtl {
editDistance += static_cast<long long>(delta) + 2 * p; editDistance += static_cast<long long>(delta) + 2 * p;
long long r = path[delta+offset]; long long r = path[delta+offset];
P cordinate; P cordinate{};
editPathCordinates epc(0); editPathCordinates epc(0);
// recording edit distance only // recording edit distance only
@ -561,6 +561,8 @@ namespace dtl {
trivial = false; trivial = false;
editDistanceOnly = false; editDistanceOnly = false;
fp = NULL; fp = NULL;
ox = 0;
oy = 0;
} }
/** /**