December 24, 2002 Re: Unicode strings constants | ||||
---|---|---|---|---|
| ||||
Hi all, Does anybody know any convenient way to specify Unicode characters (wchar_t) in Unicode strings? The problem is that although L"Test" gives me Unicode string constant, I cannot embed some Unicode characters in it. I want something like L"\x1234 Test" to give me a constant with the first character equal U+1234. For now DMC gives first char = U+0123, second L'4' and so on. May be I do something wrong? Waiting for an answer, Nic Tiger. |
December 25, 2002 Re: Unicode strings constants | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nic Tiger | I found out how to do what I want: when I use \u1234 I get Unicode character U+1234. Nic Tiger. "Nic Tiger" <nictiger@progtech.ru> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: news:auafcf$2cce$1@digitaldaemon.com... > Hi all, > > Does anybody know any convenient way to specify Unicode characters (wchar_t) > in Unicode strings? > > The problem is that although L"Test" gives me Unicode string constant, I cannot embed some Unicode characters in it. > > I want something like L"\x1234 Test" to give me a constant with the first character equal U+1234. > > For now DMC gives first char = U+0123, second L'4' and so on. May be I do something wrong? > > Waiting for an answer, > Nic Tiger. > > |
Copyright © 1999-2021 by the D Language Foundation