[Issue 13696] New: Missing entry for unicode code point literals on the lexer page
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Nov 7 02:43:47 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13696
Issue ID: 13696
Summary: Missing entry for unicode code point literals on the
lexer page
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: websites
Assignee: nobody at puremagic.com
Reporter: andrej.mitrovich at gmail.com
An excerpt from Ali's book:
-----
http://ddili.org/ders/d.en/characters.html
Specifying the Unicode values of the characters by using the
\ufour_digit_value syntax for wchar, and the \Ueight_digit_value syntax for
dchar. (Note u vs. U.) The Unicode values must be specified in hexadecimal:
wchar Ğ_w = '\u011e';
dchar Ğ_d = '\U0000011e';
These methods can be used to specify the characters within strings as well. For
example, the following two lines have the same string literals:
writeln("Résumé preparation: 10.25€");
writeln("\x52\ésum\u00e9 preparation: 10.25\€");
-----
This info is missing on our lexer page:
http://dlang.org/lex.html
--
More information about the Digitalmars-d-bugs
mailing list