Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!newsstand.cit.cornell.edu!news.kei.com!uhog.mit.edu!news.mathworks.com!newsfeed.internetmci.com!chi-news.cic.net!news.luc.edu!newsfeed.acns.nwu.edu!math.ohio-state.edu!jussieu.fr!lcr.thomson-csf.fr!news.thomson-lcr.fr!news
From: Gilles Demailly <demailly@thomson-lcr.fr>
Subject: Re: string comparison functions?
X-Nntp-Posting-Host: morphee
Content-Type: text/plain; charset=us-ascii
Message-ID: <3110D830.167EB0E7@thomson-lcr.fr>
Sender: news@news.thomson-lcr.fr
Content-Transfer-Encoding: 7bit
Organization: Thomson-CSF, Laboratoire Central de Recherches, Orsay, France
References: <1996Jan31.013625.1463@alw.nih.gov> <NEWTNews.823167674.17708.sellers@sellers.sellers.com>
Mime-Version: 1.0
Date: Thu, 1 Feb 1996 15:11:44 GMT
X-Mailer: Mozilla 2.0b6a (X11; I; SunOS 4.1.3_U1 sun4m)
Lines: 25

John Sellers wrote:
> 
> In Article<1996Jan31.013625.1463@alw.nih.gov>,
> <johnk@spasm.niddk.nih.gov> writes:
> > ...
> > Hi,
> >
> > Does anyone have some good string comparison functions
> > implemented in Smalltalk?  I'm looking for something
> > along the lines of unix's 'diff', but which will compare
> > individual characters for insertions, deletions, or
> > substitutions, rather than just line by line.
> > ...
> 
> You could write your own based line versions.  GNU has source for
> a number of versions of diff.  Check out:
> 
>     http://www.tc.cornell.edu/UserDoc/Software/Util/gdiff/

Hi,

there is a method spellAgainst: in STK that does this job.
(compares two strings and return between 0 and 100)

--Gilles
