Reorganize unicode string support in QString
authorJoão Abecasis <joao.abecasis@nokia.com>
Mon, 2 Apr 2012 20:45:29 +0000 (22:45 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 3 Apr 2012 19:10:45 +0000 (21:10 +0200)
commit72eb9d49a9849ba4a27b27e82b60f4bdd887a70e
tree723429d83f6cef71f66ab9a518345e4a5cad4ed2
parent7099c333c4e623b1051b4377d76c632a15b11fbf
Reorganize unicode string support in QString

Cleaned up preprocessor code to have a single definition for
QStaticStringData. A new qunicodechar typedef is introduced representing
a 2-byte integral type that can be used to represent a UTF-16 codepoint.

When QT_NO_UNICODE_LITERAL is not defined, QT_UNICODE_LITERAL converts a
US-ASCII string literal into a (native endian) UTF-16 string literal of
qunicodechar type.

Change-Id: I04822c4cdc0b240bc0fe113aba897348b7316932
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qstring.h