Add support for the C++11 u and U encoding prefixes for char literals
"u" and "U" are new in C11 and C++11 for char literals.
This commit is contained in:
parent
df86ec5af6
commit
8c2cb4e604
2 changed files with 7 additions and 0 deletions
|
|
@ -47,6 +47,9 @@ wstring aa = L"Wide string";
|
|||
const char *bb = u8"UTF-8 string";
|
||||
const char16_t *cc = u"UTF-16 string";
|
||||
const char32_t *dd = U"UTF-32 string";
|
||||
// New char literals
|
||||
char16_t uchar = u'a';
|
||||
char32_t Uchar = U'b';
|
||||
%}
|
||||
|
||||
/* Raw string literals */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue