qt5base-lts/tests/auto/corelib/text
Giuseppe D'Angelo 50f3ccd782 QStringView: add a test for overload resolution versus QString
In the presence of multiple overloads of a function taking either
QString or QStringView, QStringView should always be preferred.

The rationale is that the QStringView overload may have been
added "later" (read: the function was written when QStringView
was not available yet, so it took QString), and the fact that
a function with the _same name_ offers a QStringView overload
implies the function never needed to store/own the string in
the first place.

Add a (compile-time) test for this preference. This is in
preparation for a future QString(char16_t*) constructor
(in Qt 5.15 / Qt 6).

Change-Id: I60a435e494b653548f8f8d52c5d7e7cac2cc875a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-01-09 00:01:55 +01:00
..
qbytearray QByteArray: add a strict mode to fromBase64 2019-12-05 21:04:50 +01:00
qbytearraylist Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qbytearraymatcher Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qbytedatabuffer Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qchar Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qcollator Move a test for feature ICU from .pro to .cpp 2019-10-25 11:41:30 +02:00
qlatin1string Deprecate QStringViewLiteral 2019-08-10 22:13:49 +02:00
qlocale Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-02 01:00:07 +01:00
qregexp Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qregularexpression Avoid initializing QFlags with 0 or nullptr in tests 2019-11-26 09:08:51 +01:00
qstring Introduce QString(View)::isValidUtf16 2019-12-20 11:13:22 +01:00
qstring_no_cast_from_bytearray Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qstringapisymmetry Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qstringbuilder Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qstringiterator Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qstringlist Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qstringmatcher Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qstringref Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
qstringview QStringView: add a test for overload resolution versus QString 2020-01-09 00:01:55 +01:00
qtextboundaryfinder Update UCD data to Unicode 12.1.0's Revision 24 2019-10-30 17:38:02 +01:00
text.pro Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00