note 129669 added to function.levenshtein

From: Date: Wed, 24 Jul 2024 14:15:47 +0000
Subject: note 129669 added to function.levenshtein
Groups: php.notes 
Request: Send a blank email to php-notes+get-221441@lists.php.net to get a copy of this message
This function operates on bytes, not characters, so it is only of limited use when operating on UTF-8 encoded Unicode strings. Running the input strings through Normalizer ( https://www.php.net/manual/en/class.normalizer.php ) can at least somewhat help with this, but you still need to be aware that replacing, inserting or deleting a single UTF-8 encoded unicode character can wrongly report a cost of 2, 3 or 4 depending on the length of the UTF-8 sequence representing it, or even more when dealing with combining character modifiers. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 217.146.146.92) ---- Manual Page -- https://php.net/manual/en/function.levenshtein.php Edit -- https://main.php.net/note/edit/129669 Del: integrated -- https://main.php.net/note/delete/129669/integrated Del: useless -- https://main.php.net/note/delete/129669/useless Del: bad code -- https://main.php.net/note/delete/129669/bad+code Del: spam -- https://main.php.net/note/delete/129669/spam Del: non-english -- https://main.php.net/note/delete/129669/non-english Del: in docs -- https://main.php.net/note/delete/129669/in+docs Del: other reasons-- https://main.php.net/note/delete/129669 Reject -- https://main.php.net/note/reject/129669 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221441) next »