qt6-bb10/tests/auto/corelib/tools/qstring
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
..
.gitignore Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
double_data.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qstring.pro Add Mac type conversion functions to QtCore 2013-09-21 05:09:41 +02:00
tst_qstring.cpp Simplify and unify Q{ByteArray,String{,Ref}}::{simplify,trimmed} 2014-08-19 03:39:57 +02:00
tst_qstring_mac.mm Add Mac type conversion functions to QtCore 2013-09-21 05:09:41 +02:00