TDPL reaches Thermopylae level

Nick Sabalausky a at a.a
Thu Oct 29 15:36:20 PDT 2009


"Chris Nicholson-Sauls" <ibisbasenji at gmail.com> wrote in message 
news:hcctuf$140a$1 at digitalmars.com...
>
> Granted LTR is common enough to be expectable and acceptable.  To be 
> perfectly honest, I don't believe I have *ever* even used wchar/wstring. 
> Char/string gosh yes; dchar/dstring quite a bit as well, where I need the 
> simplicity; but I've yet to feel much need for the "weirdo" middle child 
> of UTF.
>

Given that just about anything outside of D (at least as far as I've seen) 
that attempts to use unicode does so with UTF-16 (or just uses UCS-2 and 
pretends that's UTF-16...), wchar and wstring are great for dealing with 
that. For instance, my Goldie engine for GOLD currently uses wchar in a 
number of places because GOLD's .cfg format stores text in...well, 
presumably UTF-16 (I haven't tested to see if it's really UCS-2). But yea, 
as long as you're not dealing with anything that's already in UTF-16 or that 
expects it, then it does seem to be somewhat questionable. 





More information about the Digitalmars-d mailing list