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!
Andrei