Date: 12/20/98
- Next message: sas: "[PHP-DEV] CVS update: php3"
- Previous message: Sascha Schumann: "Re: [PHP-DEV] addslashes' speed"
- In reply to: Sascha Schumann: "Re: [PHP-DEV] addslashes' speed"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] addslashes' speed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I'll commit it soon. I'm currently doing some final tests with str2str()
>
> /* {{{ proto string str2str(string haystack, string needle, string str)
> Replaces all occurences of needle in haystack with str */
>
> It's especially interesting since it's binary safe, e.g. replacing all NUL
> bytes in /vmlinuz is no problem. The only problem while implementing it
> was that erealloc(a,b) didn't return a or 0, but a different value.
Just a comment on the naming here. How about str_replace() to go along
with the chr_replace() function. Or, it may be an idea to get rid of
chr_replace() completely and just have str_replace() use the single
character replacement routine if the needle arg is a single char.
-Rasmus
-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>
- Next message: sas: "[PHP-DEV] CVS update: php3"
- Previous message: Sascha Schumann: "Re: [PHP-DEV] addslashes' speed"
- In reply to: Sascha Schumann: "Re: [PHP-DEV] addslashes' speed"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] addslashes' speed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

