Skip to content

guntersp/diff-match-patch-cpp

Repository files navigation

Building Language grade: C++

diff-match-patch-cpp

Another C++ variant of https://github.com/google/diff-match-patch. based on

This version was done following the current C# version as close as possible algorithm wise. However, this version has some special features:

  • completely header-only as the old versions but the single large file has been splitted into separate files
  • usage of string views
  • tries to prevent most of the string creation operations
  • string and container classes are completely exchangable by traits and wrappers
  • support for more than 256 encoded lines in case of 1byte strings (by using separate traits for line encoding with 16 bit characters)
  • support for string pool, thus completely eliminating the need for dynamic string creation
  • everything is constexpr compatible