qt6-bb10/src
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
..
3rdparty Merge remote-tracking branch 'origin/5.14' into 5.15 2019-12-16 07:05:19 +01:00
android Android: Implement MaximizeUsingFullscreenGeometryHint 2019-11-08 07:04:43 +01:00
angle Disable debug-and-release builds for MinGW 2019-09-18 06:28:16 +00:00
concurrent QtConcurrent: fix warning about function parameters shadowing class members 2019-10-08 23:21:14 +02:00
corelib Introduce QString(View)::isValidUtf16 2019-12-20 11:13:22 +01:00
dbus Replace usages of QVariant::value by qvariant_cast 2019-12-15 12:30:52 +01:00
gui New features for QPdfWriter 2019-12-19 21:23:43 +01:00
network Merge remote-tracking branch 'origin/5.14' into 5.15 2019-12-16 07:05:19 +01:00
opengl Merge remote-tracking branch 'origin/5.14' into 5.15 2019-12-04 01:00:07 +01:00
openglextensions QtGui: Disable Windows on ARM64 preprocessor conflict in QtOpenGL 2019-10-21 09:14:18 -04:00
platformheaders Tidy nullptr usage 2019-12-06 12:13:20 +01:00
platformsupport Replace usages of QVariant::value by qvariant_cast 2019-12-15 12:30:52 +01:00
plugins Fix unneeded use of QImage invertPixels and createAlphaMask 2019-12-19 11:45:41 +01:00
printsupport Replace usages of QVariant::value by qvariant_cast 2019-12-15 12:30:52 +01:00
sql Merge remote-tracking branch 'origin/5.14' into 5.15 2019-12-16 07:05:19 +01:00
testlib Merge remote-tracking branch 'origin/5.14' into 5.15 2019-12-16 07:05:19 +01:00
tools Teach moc to output a Make-style depfile 2019-12-17 21:43:41 +01:00
widgets Allow hiding tabs in QTabWidget / QTabBar 2019-12-20 09:41:09 +00:00
winmain Merge remote-tracking branch 'origin/5.13' into dev 2019-05-27 15:34:10 +02:00
xml Use a QMultiHash explicitly if insertMulti() is being used 2019-12-12 15:25:22 +01:00
src.pro MIME: Make the internal database direct content, not a Qt resource 2019-12-10 15:56:09 -08:00