November 07, 2014 [Issue 13696] New: Missing entry for unicode code point literals on the lexer page | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: andrej.mitrovich@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 -- |
Copyright © 1999-2021 by the D Language Foundation