qt5base-lts/tests/auto/corelib/text
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
..
qbytearray QByteArray: add a strict mode to fromBase64 2019-12-05 21:04:50 +01:00
qbytearraylist Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qbytearraymatcher Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qbytedatabuffer Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qchar Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qcollator Move a test for feature ICU from .pro to .cpp 2019-10-25 11:41:30 +02:00
qlatin1string Deprecate QStringViewLiteral 2019-08-10 22:13:49 +02:00
qlocale Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
qregexp Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qregularexpression Avoid initializing QFlags with 0 or nullptr in tests 2019-11-26 09:08:51 +01:00
qstring Introduce QString(View)::isValidUtf16 2019-12-20 11:13:22 +01:00
qstring_no_cast_from_bytearray Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qstringapisymmetry Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qstringbuilder Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qstringiterator Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qstringlist Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qstringmatcher Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qstringref Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qstringview Deprecate QStringViewLiteral 2019-08-10 22:13:49 +02:00
qtextboundaryfinder Update UCD data to Unicode 12.1.0's Revision 24 2019-10-30 17:38:02 +01:00
text.pro Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00