TDPL reaches Thermopylae level

Leandro Lucarella llucax at gmail.com
Thu Oct 29 13:49:40 PDT 2009


Andrei Alexandrescu, el 27 de octubre a las 19:32 me escribiste:
> Leandro Lucarella wrote:
> >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
> >
> 
> Damn guys, with these good explanations, nobody's going to use the
> one in TDPL!

BTW, seeing the explanation about Unicode in your book, one wonders why
UTF-8, UTF-16 and UTF-32 character types are not simply called utf8, utf16
and utf32...

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Ya ni el cielo me quiere, ya ni la muerte me visita
Ya ni el sol me calienta, ya ni el viento me acaricia



More information about the Digitalmars-d mailing list