TDPL reaches Thermopylae level
Leandro Lucarella
llucax at gmail.com
Tue Oct 27 17:22:29 PDT 2009
Bill Baxter, el 27 de octubre a las 13:12 me escribiste:
> > They are?
> >
> > ...Then what is the point of wstring, dstring?
>
> They are all just different representations of Unicode.
>
> string, which is unicode in UTF-8, is good because it's the least
> wasteful for mostly ASCII text. And has a nice ASCII backwards
> compatibility story.
>
> dstring, which is unicode in UTF-32, is good because you have one
> element = one character. So it's good for doing substring and other
> text manipulations.
>
> wstring, which is UTF-16, is good because it lets you call Windows
> Unicode functions.
>
> Here's Daniel Keep's nice explanation:
> http://docs.google.com/View?docid=dtqh79k_1rbxfmb
And here is a nice artible about Unicode and encodings:
http://www.joelonsoftware.com/articles/Unicode.html
--
Leandro Lucarella (AKA luca) http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
He cometido pecados, he hecho el mal, he sido víctima de la envidia, el
egoísmo, la ambición, la mentira y la frivolidad, pero siempre he sido
un padre argentino que quiere que su hijo triunfe en la vida.
-- Ricardo Vaporeso
More information about the Digitalmars-d
mailing list