Re: Request for more string_replace() semantics

2002-05-15 Thread Peter Gibbs
Melvin Smith wrote: > BUT... for the string_replace internal API it might still be worthwhile > for performance to add additional semantics so we don't have to > next stuff for performance. > > I'm open to adding a dest_len arg or something, but consider this a > request for comments on any addit

Request for more string_replace() semantics

2002-05-14 Thread Melvin Smith
Daniel brought up on IRC that it might be useful for string_replace() to be able to replace N chars from string 1 with a substr of string 2. I wrote string_replace() to how I understood Perl5 semantics, where if you wanted to only use a substr of the replacement string AS the replancement, you'd h