qt5base-lts/src
Marc Mutz cafefd1d33 QStringView/QLatin1String: add trimmed()
... using the same qt_trimmed(), qTrimmed(), Q..::trimmed() split we've
been using for all other out-of-line string-view member functions to
avoid forcing string-view objects onto the stack for the passing of 'this'.

In the test, had to fix nullness not being propagated from a QByteArray
to the QLatin1String constructed from it. Probably worth fixing in
QLatin1String(QByteArray), too.

[ChangeLog][QtCore] Added qTrimmed() free functions.

[ChangeLog][QtCore][QLatin1String] Added trimmed() function.

Change-Id: I73c18ef87e203f30f7552c10dd5c84223bcfae0e
Reviewed-by: Anton Kudryavtsev <antkudr@mail.ru>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2017-05-16 09:34:59 +00:00
..
3rdparty Merge remote-tracking branch 'origin/5.9' into dev 2017-05-07 13:08:18 +02:00
android Merge remote-tracking branch 'origin/5.9' into dev 2017-05-07 13:08:18 +02:00
angle ANGLE: remove dead MinGW code from common.pri 2017-03-28 06:29:43 +00:00
concurrent Adapt to the C++ SIC introduced by P0012: noexcept specialization 2017-05-03 02:39:56 +00:00
corelib QStringView/QLatin1String: add trimmed() 2017-05-16 09:34:59 +00:00
dbus Qt5DBusMacros: remove intermediate variable 2017-04-11 14:07:29 +00:00
gui Simplify code by factoring out brush transformation for gradients 2017-05-15 22:55:06 +00:00
network Merge remote-tracking branch 'origin/5.9' into dev 2017-05-10 10:11:57 +02:00
opengl Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-13 15:55:44 +01:00
openglextensions Also release winmain, qopenglextensions under commercial licenses 2016-11-18 16:19:56 +00:00
platformheaders Merge remote-tracking branch 'origin/5.9' into dev 2017-04-20 12:31:27 +02:00
platformsupport Merge remote-tracking branch 'origin/5.9' into dev 2017-05-07 13:08:18 +02:00
plugins xcb: rename QXcbConnection::{setButton,buttons,m_buttons} 2017-05-16 07:54:46 +00:00
printsupport Merge remote-tracking branch 'origin/5.9' into dev 2017-05-07 13:08:18 +02:00
sql Merge remote-tracking branch 'origin/5.9' into dev 2017-05-07 13:08:18 +02:00
testlib QtTest: add support for printing QStringViews 2017-04-24 19:35:11 +00:00
tools Keep in sync uic sources with qttools module 2017-05-04 06:55:27 +00:00
widgets QMacStyle: Replace QAquaWidgetSize with WidgetSizePolicy 2017-05-15 22:39:28 +00:00
winmain Merge remote-tracking branch 'origin/5.8' into 5.9 2017-02-08 15:49:18 +01:00
xml Prefer rvalue versions of toLatin() and toUtf8() 2017-03-30 20:31:59 +00:00
src.pro Merge remote-tracking branch 'origin/5.9' into dev 2017-03-28 09:28:31 +02:00