Open tdauth opened 7 years ago
Currently the delta is calculated by the byte difference using strcmp. It might be the case that one string is part of the other on a different position. Therefore use an algorithm to search for parts of the string in the other -> create a diff.
http://stackoverflow.com/questions/5859561/getting-the-closest-string-match
and
https://en.wikipedia.org/wiki/Levenshtein_distance
https://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Levenshtein_distance#C.2B.2B
http://erikerlandson.github.io/algorithm/libs/algorithm/doc/html/algorithm/Sequence.html
https://en.wikipedia.org/wiki/Approximate_string_matching
Currently the delta is calculated by the byte difference using strcmp. It might be the case that one string is part of the other on a different position. Therefore use an algorithm to search for parts of the string in the other -> create a diff.