Making all strings UTF ranges has some risk of WTF

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Feb 3 20:38:00 PST 2010


Walter Bright wrote:
> Andrei Alexandrescu wrote:
>> It's no secret that string et al. are not a magic recipe for writing 
>> correct Unicode code.
> 
> I'm concerned it would be slow. Most operations on strings do not need 
> to decode the unicode characters, for example, find, startsWith, etc., 
> do not. Decoding then doing find, startsWith, etc., will be considerably 
> slower.

Oh, one more thing: doing mixed-width searches would require decoding.

Andrei



More information about the Digitalmars-d mailing list