qt5base-lts/tests/auto/corelib/tools/qstring
Giuseppe D'Angelo 601d685849 Make mid() and midRef() properly return empty, non-null objects
If we request a substring starting at the very end of the string,
QString::mid should return an empty string, not a null string.
For instance, QString("abc").mid(3, 0) used to return a null
one, while this patch makes it return an empty one. The
same thing applies to QString::midRef() and QByteArray::mid().

Change-Id: Ie9efd7a0622d429efd0fb682c19856c19e9469af
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2012-01-24 17:36:11 +01:00
..
.gitignore Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
double_data.h Update contact information in license headers. 2012-01-23 04:04:33 +01:00
qstring.pro Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
tst_qstring.cpp Make mid() and midRef() properly return empty, non-null objects 2012-01-24 17:36:11 +01:00