qt6-bb10/tests/auto/corelib
Marc Mutz 126c4eae84 Split Q_COMPILER_UNICODE_STRINGS: add Q_STDLIB_UNICODE_STRINGS
Since commit bf2160e72c, we can rely on
charNN_t support in all compilers except MSVC 2013, and since that
commit, we use (in 5.10, not 5.9, yet)

  !defined(Q_OS_WIN) || defined(Q_COMPILER_UNICODE_STRINGS)

when we only need charNN_t, the type, as opposed to its library
support (u16string, char_traits<char16_t>, ...).

This patch splits the Q_C_UNICODE_STRINGS macro into two, adding
Q_STDLIB_UNICODE_STRINGS for when we need std::uNNstring, leaving
Q_C_UNICODE_STRINGS for when we need just charNN_t support.

In QDebug, when constructing a QChar out of a char16_t, cast to ushort
first, since QChar(char16_t) was only officially introduced in Qt 5.10.

[ChangeLog][Potentially Source-Incompatible Changes] The internal
Q_COMPILER_UNICODE_STRINGS macro is now defined if the compiler
supports charNN_t, even if the standard library does not. To check for
availability of std::uNNstring, use the new Q_STDLIB_UNICODE_STRINGS
macro.

Change-Id: I8f210fd7f1799fe21faf54506475a759b1f76a59
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2017-04-20 06:50:36 +00:00
..
animation Blacklist a QSequentialAnimationGroup autotest 2017-03-30 12:10:31 +00:00
codecs tst_utf8: Fix one of the overlong sequences to be what we meant 2017-03-01 12:27:17 +00:00
global tst_qmessagehandler: fix qMessagePattern for arm 2017-04-07 08:12:14 +00:00
io Revert "Initialize QLoggingRegistry rules on first use, not qApp construction" 2017-04-19 22:59:43 +00:00
itemmodels Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00
json Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-27 10:42:08 +02:00
kernel QVariant: implement QByteArray ↔ QUuid conversion 2017-04-14 12:54:21 +00:00
mimetypes Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00
plugin QVariant: implement QByteArray ↔ QUuid conversion 2017-04-14 12:54:21 +00:00
statemachine Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
thread Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-27 10:42:08 +02:00
tools Split Q_COMPILER_UNICODE_STRINGS: add Q_STDLIB_UNICODE_STRINGS 2017-04-20 06:50:36 +00:00
xml Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00
corelib.pro Add support for Apple tvOS 2016-05-17 16:11:23 +00:00