qt5base-lts/tests/auto
Marc Mutz 928d57d8da QChar: add fromUcs{2,4}()
The fromUcs2() named ctor is designed to replace all the non-char
integral-type constructors of QChar which make it very hard to control
the implicit QChar conversions, which have caused a few bugs in Qt
itself. As a classical named contructor, it simply returns QChar.

The fromUcs4() named "ctor", however, needs to expand surrogate pairs,
and thus can't just return QChar. Instead, it returns a small struct
that contains one or two char16_t's, can be iterated over and be
implicitly converted to QStringView.  To avoid bikeshedding the name
(FromUcs4Result, of course :), it's defined inline and thus can't be
named outside the function. This function replaces most uses of
QChar::requiresSurrogates() in QtBase.

[ChangeLog][QtCore][QChar] Added fromUcs2(), fromUcs4().

Change-Id: I803708c14001040f75cb599e33c24a3fb8d2579c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-05-09 06:26:08 +00:00
..
cmake Merge remote-tracking branch 'origin/5.15' into dev 2020-05-05 19:51:50 +02:00
concurrent Add more tests for QtConcurrent::filterReduced() 2020-05-07 15:23:58 +02:00
corelib QChar: add fromUcs{2,4}() 2020-05-09 06:26:08 +00:00
dbus Fix autotests after the QHash changes 2020-04-09 20:04:15 +02:00
gui rhi: vulkan: Fix calling finish() twice with some copy commands in-between 2020-05-07 21:15:52 +02:00
guiapplauncher Fix path to examples part of tst_GuiAppLauncher 2015-02-13 07:28:15 +00:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network QSslSocket::setSslSonfiguration - set d.configuration properly 2020-05-08 18:11:03 +02:00
opengl Get rid of QT_OPENGL_ES* 2020-04-17 11:50:24 +02:00
other tst_Gestures: fix -Wdangling-else GCC warning 2020-04-29 08:10:36 +00:00
printsupport Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
shared QWindowsFontDatabase: Check preferred family names for all fonts 2019-11-29 09:31:21 +01:00
sql QSqlError: Remove deprecated methods 2020-04-06 14:25:12 +02:00
testlib QTest::ignoreMessage(): interpret the message in UTF-8 2020-05-08 09:51:38 +02:00
tools uic/Python: import all the classes for QtCore and QtGui 2020-05-05 22:04:51 +02:00
widgets QGraphicsAnchorLayout: port to QHVContainer [4/4]: sweep Orientation -> Qt::Orientation 2020-05-09 08:24:04 +02:00
xml Merge remote-tracking branch 'origin/5.15' into dev 2020-03-16 18:41:27 +01:00
.prev_CMakeLists.txt Re-order the sub-dirs to catch real culprits before things they break 2020-05-05 15:34:15 +02:00
auto.pro Re-order the sub-dirs to catch real culprits before things they break 2020-05-05 15:34:15 +02:00
CMakeLists.txt Re-order the sub-dirs to catch real culprits before things they break 2020-05-05 15:34:15 +02:00
network-settings.h Revert "QAbstractSocket: deprecate 'error' member-function" 2020-02-26 23:07:52 +03:00