mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
feat: Implement Myers' diffing algorithm (#1508)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user