Req #33506 [Opn->Wfx]: iconv_substr_count
| From: | cmb@php.net | Date: | Tue, 02 Mar 2021 11:06:18 +0000 |
| Subject: | Req #33506 [Opn->Wfx]: iconv_substr_count | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-232467@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=33506&edit=1
ID: 33506
Updated by: cmb@php.net
Reported by: markus dot lervik at necora dot fi
Summary: iconv_substr_count
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: ICONV related
Operating System: Irrelevant
PHP Version: 5.1.0b2
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
The mentioned iconv_*() functions are super slow due to how iconv
works; therefore it doesn't make sense to implement more of these
functions. Use mb_substr_count() instead.
Previous Comments:
------------------------------------------------------------------------
[2005-06-29 13:42:17] markus dot lervik at necora dot fi
Description:
------------
It would be very nice to have an iconv_substr_count -function too, as we have iconv_substr,
iconv_strlen, iconv_strpos and iconv_strrpos.
Naturally you can (and I have) write a recursive PHP function that handles it, but I'm assuming
it'd be a lot more efficent if written in C.
I did attempt writing it myself, but unfortunately my C and the PHP API -knowledge is more than
limited :(
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=33506&edit=1