8
votes
Vote UpVote

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 ...
Favorite? Off-Topic? Yanniel @ 2012-01-26 16:12

Statistics

Visits: 1078
Votes: 8
Favorites: 2
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Douglas Rodrigues de Almeida
Ericc
homolibere
JC Chu
Jørn E. Angeltveit
Ravaut123
SimaWB
Zzzzz
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)