cvs: phpdoc /en/reference/strings/functions levenshtein.xml
| From: | Jakub Vrana | Date: | Thu, 28 Oct 2004 09:44:23 +0000 |
| Subject: | cvs: phpdoc /en/reference/strings/functions levenshtein.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969364701@lists.php.net to get a copy of this message | ||
vrana Thu Oct 28 05:44:23 2004 EDT
Modified files:
/phpdoc/en/reference/strings/functions levenshtein.xml
Log:
Don't discriminate genetic engineers (bug #30576)
http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/levenshtein.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/strings/functions/levenshtein.xml
diff -u phpdoc/en/reference/strings/functions/levenshtein.xml:1.4
phpdoc/en/reference/strings/functions/levenshtein.xml:1.5
--- phpdoc/en/reference/strings/functions/levenshtein.xml:1.4 Wed Aug 18 11:39:26 2004
+++ phpdoc/en/reference/strings/functions/levenshtein.xml Thu Oct 28 05:44:22 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.12 -->
<refentry id="function.levenshtein">
<refnamediv>
@@ -23,15 +23,13 @@
<type>int</type><methodname>levenshtein</methodname>
<methodparam><type>string</type><parameter>str1</parameter></methodparam>
<methodparam><type>string</type><parameter>str2</parameter></methodparam>
-
<methodparam><type>function</type><parameter>cost</parameter></methodparam>
+
<methodparam><type>callback</type><parameter>cost</parameter></methodparam>
</methodsynopsis>
-->
<para>
This function returns the Levenshtein-Distance between the
two argument strings or -1, if one of the argument strings
- is longer than the limit of 255 characters (255 should be
- more than enough for name or dictionary comparison, and
- nobody serious would be doing genetic analysis with PHP).
+ is longer than the limit of 255 characters.
</para>
<para>
The Levenshtein distance is defined as the minimal number of