Has someone ported Python's difflib already?

Michael Butscher mbutscher at gmx.de
Mon Oct 16 05:03:57 PDT 2006


Hi,

just to avoid doing it once more:

Has someone already ported Python's difflib to D, especially the 
SequenceMatcher class. The comments state that:
"The basic algorithm predates, and is a little fancier than, an 
algorithm published in the late 1980's by Ratcliff and Obershelp under 
the hyperbolic name 'gestalt pattern matching'."

Or, maybe, is there already another D class around which can compare 
two files or byte arrays (or, better, arbitrary arrays) and create a 
list of commands (delete, insert, modify) to transform one array into 
the other?


Michael



More information about the Digitalmars-d mailing list