qt6-bb10/tests/auto/corelib/text
Lars Knoll 95e84c0ea9 Allow qMin, qMax and qBound for types that can be losslessly converted
Add overloads for qMin and friends where the arguments are of different
type, but one can be easily promoted to the other. Return the promoted
type. Promotions are only allowed if both types are either signed,
unsigned or floating point numbers.

This should simplify writing code in many case (as for example
qMin(myint64, 1)) and also help reduce source incompatibilities between
Qt 5 and Qt 6, where the return types for sizes of our containers changes
from int to qsizetype.

Change-Id: Ia6bcf16bef0469ea568063e7c32f532da610d1cd
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-06-25 06:20:18 +02:00
..
qbytearray Port Q_STATIC_ASSERT(_X) to static_assert 2020-06-19 19:38:23 +02:00
qbytearraylist Regenerate tests/auto/corelib/text 2019-11-12 17:26:05 +00:00
qbytearraymatcher Port qtbase/tests/auto/corelib/text tests to CMake 2020-04-27 14:34:51 +02:00
qbytedatabuffer Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qchar QChar: add fromUcs{2,4}() 2020-05-09 06:26:08 +00:00
qcollator Move QTextCodec support out of QtCore 2020-06-20 02:04:38 +02:00
qlatin1string Port qtbase/tests/auto/corelib/text tests to CMake 2020-04-27 14:34:51 +02:00
qlocale Port QLocale::quoteString from QStringRef to QStringView 2020-06-11 02:50:16 +02:00
qregexp CMake: Fix tst_qregexp test 2020-06-04 23:20:49 +02:00
qregularexpression Remove winrt 2020-06-06 20:25:49 +02:00
qstring QString: add char8_t overload of fromUtf8() 2020-06-23 06:31:28 +00:00
qstring_no_cast_from_bytearray Regenerate tests/auto/corelib/text 2019-11-12 17:26:05 +00:00
qstringapisymmetry Rename new slice() method sliced() 2020-06-11 19:14:03 +00:00
qstringbuilder Allow qMin, qMax and qBound for types that can be losslessly converted 2020-06-25 06:20:18 +02:00
qstringconverter Streamline the code in the conversion to and from utf8 2020-05-14 07:51:45 +02:00
qstringiterator Sweep of int-ish → char-ish types near calls to QString::fromU*() 2020-05-12 05:43:37 +00:00
qstringlist Remove QRegExp support from QString and StringList 2020-05-14 14:19:47 +02:00
qstringmatcher Regenerate tests/auto/corelib/text 2019-11-12 17:26:05 +00:00
qstringref Remove deprecated methods 2020-06-12 15:50:08 +02:00
qstringtokenizer Long live QStringTokenizer! 2020-06-03 19:13:54 +02:00
qstringview Port Q_STATIC_ASSERT(_X) to static_assert 2020-06-19 19:38:23 +02:00
qtextboundaryfinder Remove QTextCodec dependency from test 2020-05-14 07:50:49 +02:00
.prev_CMakeLists.txt Port qtbase/tests/auto/corelib/text tests to CMake 2020-04-27 14:34:51 +02:00
CMakeLists.txt Long live QStringTokenizer! 2020-06-03 19:13:54 +02:00
text.pro Long live QStringTokenizer! 2020-06-03 19:13:54 +02:00