www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13696] New: Missing entry for unicode code point literals on


          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:


    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:

Nov 07 2014