Am Sonntag, 29. Oktober 2006 20:48 schrieb Abdelrazak Younes: > I think speed wise it will be very efficient. Memory wise, well the > length is indeed multiplied by 6 but the actual data size increase is > less than that. If N is the number of unicode char, the ucs4 version > would occupy 4xN bytes exactly and the utf8 would contain 6xN bytes at > most. So it is only a 50% increase. Resizing a string to a lower size is > cheap.
That means that no copying happens? I am always unsure about that with strings, because I normally do numerics. Then it would probably be a good idea indeed. The only question I have then is this: Why did Lars not do this from the beginning? Georg