Regarding hex strings
Kagamin
spam at here.lot
Thu Oct 18 06:56:50 PDT 2012
On Thursday, 18 October 2012 at 09:42:43 UTC, monarch_dodra wrote:
> Have you actually ever written code that requires using code
> points? This feature is a *huge* convenience for when you do.
> Just compare:
>
> string nihongo1 = x"e697a5 e69cac e8aa9e";
> string nihongo2 = "\ue697a5\ue69cac\ue8aa9e";
> ubyte[] nihongo3 = [0xe6, 0x97, 0xa5, 0xe6, 0x9c, 0xac, 0xe8,
> 0xaa, 0x9e];
You should use unicode directly here, that's the whole point to
support it.
string nihongo = "日本語";
More information about the Digitalmars-d
mailing list