qt6-bb10/tests/auto/corelib
Lars Knoll d2833a3ce5 Ensure left/right/mid behave in a compatible way
QString and QStringRef did bounds checking for left/right/mid, whereas
QStringView was asserting on out of bounds.

Relax the behavior for QStringView and do bounds checking on pos/n
as well. This removes a source of potentially hidden errors when porting
from QStringRef (or QString) to QStringView.

Unfortunately, one difference remains, where QByteArray::left/right()
behaves differently (and somewhat more sane) than QString and
QStringRef. We're keeping the difference here, as it has been around
for many years.

Mark left/right/mid as obsolete and to be replaced with the new
first/last/slice methods.

Change-Id: I18c203799ba78c928a4610a6038089f27696c22e
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2020-06-09 16:51:16 +02:00
..
animation Merge remote-tracking branch 'origin/5.15' into dev 2020-03-16 18:41:27 +01:00
codecs Streamline the code in the conversion to and from utf8 2020-05-14 07:51:45 +02:00
global Remove winrt 2020-06-06 20:25:49 +02:00
io Remove winrt 2020-06-06 20:25:49 +02:00
itemmodels Remove the deprecated QDirModel 2020-06-04 19:11:19 +02:00
kernel Remove winrt 2020-06-06 20:25:49 +02:00
mimetypes QMimeType::suffixForFileName shouldn't lowercase the file suffix 2020-06-01 13:36:05 +02:00
plugin CMake: Fix failing plugin tests on MinGW 2020-06-09 09:34:17 +02:00
serialization Remove winrt 2020-06-06 20:25:49 +02:00
statemachine Merge remote-tracking branch 'origin/5.15' into dev 2020-02-13 18:31:40 +01:00
text Ensure left/right/mid behave in a compatible way 2020-06-09 16:51:16 +02:00
thread Add QPromise implementation 2020-06-09 17:21:38 +03:00
time Remove winrt 2020-06-06 20:25:49 +02:00
tools Stabilize autotest 2020-06-01 20:57:55 +02:00
.prev_CMakeLists.txt cmake: Remove APPLE prefix from platform names 2020-03-16 17:57:56 +01:00
CMakeLists.txt cmake: Remove APPLE prefix from platform names 2020-03-16 17:57:56 +01:00
corelib.pro Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00