mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 23:42:17 +00:00
LibDiff: Add new API to generate hunks from two pieces of text
For now this is just a standard implementation of the longest common subsequence algorithm over the lines, except that it doesn't do any coalescing of the lines. This isn't really ideal since we get a single Hunk per changed line, and is definitely something to improve in the future.
This commit is contained in:
parent
27f28998b1
commit
5e28da1aa4
Notes:
sideshowbarker
2024-07-18 03:46:25 +09:00
Author: https://github.com/mustafaquraish
Commit: 5e28da1aa4
Pull-request: https://github.com/SerenityOS/serenity/pull/10052
Reviewed-by: https://github.com/BenWiederhake ✅
Reviewed-by: https://github.com/bgianfo ✅
3 changed files with 105 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
|
||||
set(SOURCES
|
||||
Hunks.cpp
|
||||
Format.cpp
|
||||
Generator.cpp
|
||||
Hunks.cpp
|
||||
)
|
||||
|
||||
serenity_lib(LibDiff diff)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue