Re: [PHP4BETA] cvs: php4 /ext/standard/ Makefile.in basic_functions.c levenshtein.c php_string.h

[email protected] (Andi Gutmans)
Newsgroups php.version4
Message-ID <[email protected]>
On Tue, 23 May 2000, Andrei Zmievski wrote:

> On Tue, 23 May 2000, Hartmut Holzgraefe wrote:
> > hholzgra		Tue May 23 16:10:37 2000 EDT
> > 
> >   Added files:
> >     /php4/ext/standard	levenshtein.c 
> > 
> >   Modified files:
> >     /php4/ext/standard	Makefile.in basic_functions.c php_string.h 
> >   Log:
> >   added function "int levdist(string str1, string str2)"
> >   that will calculate the Levenshtein distance between two
> >   strings (faster and possibly more accurate than similar_text())
> 
> Please call it lev_dist() or maybe find a better name... :)

I agree with Andrei that the name should be changed. The standard is to
divide works with underscores.
I would even go with levenshtein() because no one will know what
lev_dist() is and it sounds like various things.

Andi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.