qt6-bb10/tests/auto
Giuseppe D'Angelo a2ddd96ac8 Introduce QString(View)::isValidUtf16
QString(View)s can be built or manipulated in ways that make them
contain/refer to improperly encoded UTF-16 data. Problem is,
we don't have public APIs to check whether a string contains
valid UTF-16. This knowledge is precious if the string is to be fed in
algorithms, regular expressions, etc. that expect validated input
(e.g. QRegularExpression can be faster if it can assume valid UTF-16,
otherwise it has to employ extra checks).

Add a function that does the validation.

[ChangeLog][QtCore][QStringView] Added QStringView::isValidUtf16.

[ChangeLog][QtCore][QString] Added QString::isValidUtf16.

Change-Id: Idd699183f6ec08013046c76c6a5a7c524b6c6fbc
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2019-12-20 11:13:22 +01:00
..
bic/data Add binary compatibility files for Qt5.13.0 for QtBase 2019-08-15 04:19:39 +00:00
cmake CMake: Add support for auto-importing plugins in CMake 2019-08-12 18:23:58 +02:00
concurrent Introduce QT_NO_LINKED_LIST and mark QtBase (almost) free of it 2019-07-12 14:26:30 +02:00
corelib Introduce QString(View)::isValidUtf16 2019-12-20 11:13:22 +01:00
dbus Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
gui New features for QPdfWriter 2019-12-19 21:23:43 +01:00
guiapplauncher
installed_cmake
network Merge remote-tracking branch 'origin/5.14' into 5.15 2019-12-10 13:51:40 +02:00
opengl Remove dead code from Qt 4 times 2019-08-20 22:27:46 +00:00
other Session management for macOS 2019-12-02 18:18:22 +01:00
printsupport Remove the remaining usages of deprecated APIs of qtbase 2019-08-01 06:48:27 +02:00
shared QWindowsFontDatabase: Check preferred family names for all fonts 2019-11-29 09:31:21 +01:00
sql Merge remote-tracking branch 'origin/5.14' into 5.15 2019-12-10 13:51:40 +02:00
testlib Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
tools Support Q_GADGET QMetaObject super class hierarchies across templates 2019-12-12 13:02:52 +01:00
widgets Allow hiding tabs in QTabWidget / QTabBar 2019-12-20 09:41:09 +00:00
xml Port QDomDocument to QXmlStreamReader 2019-11-26 09:07:26 +01:00
auto.pro winrt: Skip network auto tests for now 2018-06-22 05:02:39 +00:00
network-settings.h test: migrate QNetworkReply test to QRegularExpression 2019-06-10 16:49:19 +02:00