forked from qt-creator/qt-creator
C++: Introduce unicode char/strings support
Those are the types char16_t and char32_t along with the new char/string literals u'', U'', u"", u8"", and U"". This is particularly important for the use of QStringLiteral since in some platforms it relies on expansion such as above. Note: The string literals quickfixes still need some tunning. Task-number: QTCREATORBUG-7449 Change-Id: Iebcfea15677dc8e0ebb6143def89a5477e1be7d4 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
22
src/libs/3rdparty/cplusplus/Keywords.cpp
vendored
22
src/libs/3rdparty/cplusplus/Keywords.cpp
vendored
@@ -778,6 +778,28 @@ static inline int classify8(const char *s, bool q, bool x) {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (x && s[1] == 'h') {
|
||||
if (s[2] == 'a') {
|
||||
if (s[3] == 'r') {
|
||||
if (s[4] == '1') {
|
||||
if (s[5] == '6') {
|
||||
if (s[6] == '_') {
|
||||
if (s[7] == 't') {
|
||||
return T_CHAR16_T;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (s[4] == '3') {
|
||||
if (s[5] == '2') {
|
||||
if (s[6] == '_') {
|
||||
if (s[7] == 't') {
|
||||
return T_CHAR32_T;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (x && s[0] == 'd') {
|
||||
|
||||
Reference in New Issue
Block a user