
4 Apr
2005
4 Apr
'05
1:10 p.m.
On Apr 4, 2005 10:34 AM, Stefan Seefeld <seefeld@sympatico.ca> wrote:
Rogier van Dalen wrote:
basic_string has convenient and fast find* and replace methods though.
What is it that you want to find and replace ? Bytes ?
I suppose the Unicode string will contain find*() and replace() methods that will often forward to the underlying container's algorithms. If two strings are normalised and in the same encoding, you can find one in the other by comparing bytes, yes. If you want to replace a codepoint, or a grapheme cluster, by one with a different encoded length, replace() will be your friend (the Unicode string's friend, rather). Anyway, I shouldn't have sent my previous message: let's quickly get out of this bike shed! Regards, Rogier