8
votes
String comparison in Delphi
Yanniel's notes
– Have you ever wondered how utilities like Beyond Compare or DIFF are comparing files? They do this (I guess) by solving the longest common subsequence (LCS) problem.After reading the Wikipedia article liked above, I obtained an overall view of the problem and I looked at the possible resolutions. So, I decided to implement a Delphi class to do the string comparison trick, which is the base for the text file comparison.Let me put it as follows: given two strings been compared, I want to highlight in blue the characters added to the first string and in red the characters removed from it. The ...
Statistics
|
Visits by Source |
User Actions |




