Skip to content

leutloff/diff-match-patch-cpp-stl

Repository files navigation

diff-match-patch-cpp-stl

Build Status

C++ STL variant of https://code.google.com/p/google-diff-match-patch.

STL Port was done by Sergey Nozhenko (snhere@gmail.com) and posted on https://code.google.com/p/google-diff-match-patch/issues/detail?id=25

The STL Port is header only and works with std::wstring and std::string.

Compile and run the test cases:

g++ diff_match_patch_test.cpp -o diff_match_patch_test && ./diff_match_patch_test

Or use CMake ...

Compile and run the speedtest - requires the files speedtest1.txt and speedtest2.txt for comparison:

g++ speedtest.cpp -o speedtest && ./speedtest