qt6-bb10/tests/auto/corelib
Thiago Macieira 54da2b2911 Simplify and unify Q{ByteArray,String{,Ref}}::{simplify,trimmed}
As a side effect, QString::simplified() will always return a detached
copy, even if it's the same contents.

QStringRef::trimmed() can use the same calculation algorithm but can't
use the trimmed_helper() template function due to its lack of a
constructor taking begin pointer and size (std::string_view could do
it). That constructor can't be added because QStringRef always refers to
an existing QString, not to data in memory.

Change-Id: Ib966c1741819c68c6bac5fcbb00f8ac818b3ccab
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2014-08-19 03:39:57 +02:00
..
animation Updated corelib's unit tests to use QSignalSpy's functor constructor 2014-05-08 04:22:54 +02:00
codecs Merge remote-tracking branch 'origin/release' into stable 2014-05-14 12:37:34 +02:00
global Ensure that qCleanupFuncinfo works with some C++11 new constructs 2014-08-09 15:35:59 +02:00
io Add the QStorageInfo class 2014-08-13 16:09:58 +02:00
itemmodels QAbstractProxyModel: Forward drop-related API. 2014-06-25 16:31:03 +02:00
json Add initializer list support in QJsonObject. 2014-07-30 10:20:28 +02:00
kernel Update QVariant tests 2014-07-10 13:14:40 +02:00
mimetypes test: Don't build qmimedatabase-cache for QNX 2014-01-16 16:11:04 +01:00
plugin Don't store QLibraryPrivate with empty file names in the global store 2014-07-23 17:50:31 +02:00
statemachine Export QAbstractState active property. 2014-07-29 11:27:09 +02:00
thread QFutureInterface: allow to work with a QThreadPool != globalInstance() 2014-08-05 18:04:56 +02:00
tools Simplify and unify Q{ByteArray,String{,Ref}}::{simplify,trimmed} 2014-08-19 03:39:57 +02:00
xml Include the duplicated attribute name in the error message 2014-05-06 01:20:19 +02:00
corelib.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00