feat: Implement Myers' diffing algorithm (#1508)

This commit is contained in:
Nik
2024-01-21 18:39:13 +01:00
committed by GitHub
parent 9d351317b8
commit a13b5bf8c0
41 changed files with 624 additions and 215 deletions

View File

@@ -995,6 +995,23 @@ namespace hex {
return nullptr;
}
}
namespace ContentRegistry::Diffing {
namespace impl {
std::vector<std::unique_ptr<Algorithm>>& getAlgorithms() {
static std::vector<std::unique_ptr<Algorithm>> algorithms;
return algorithms;
}
void addAlgorithm(std::unique_ptr<Algorithm> &&hash) {
getAlgorithms().emplace_back(std::move(hash));
}
}
}