qt6-bb10/tests/auto/corelib/text
Marc Mutz fb91b0d307 Q{Any,Utf8}StringView: fix construction from arrays of unknown size
Like QStringView's, these classes' documentation promised
is_constructible<View,Char[]>, but failed to deliver, because neither
the (const Pointer&) nor the (const Container &) compile for arrays of
unkonwn bounds, and the (const Char*) one is just a QDoc fake.

Apply the same fix as for QStringView: Add a ctor specifically for
arrays of unknown bound, delegating to the (ptr) overload.

The GHS compiler doesn't like the CanConvert static_asserts, so
comment them out for it. The functionality itself is tested by
the from*ArrayWithUnknownSize tests.

[ChangeLog][QtCore][QUtf8StringView/QAnyStringView] Made construction
from arrays of unknown size compile. Such arrays will use the const
Char* constructor, determining the size of the array at runtime.

Pick-to: 6.5
Fixes: QTBUG-112746
Change-Id: I7acdcae3c5bdf80a0bed673e621d53ef34a92a1e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 734bd05d0a6d37d6488cf8d1b2b9f79b9329d966)
(cherry picked from commit 51bfc9da41faa41a3161d30879b394a0dac94dcf)
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2024-12-16 20:45:24 +00:00
..
qanystringview Q{Any,Utf8}StringView: fix construction from arrays of unknown size 2024-12-16 20:45:24 +00:00
qbytearray Tests: suppress has_denorm deprecation 2024-09-06 14:38:21 +00:00
qbytearray_large Add REUSE.toml files 2024-11-07 08:38:49 +01:00
qbytearrayapisymmetry Blacklist tests requiring parsing text > 255 chars on VxWorks 2024-06-26 22:52:30 +00:00
qbytearraylist Change license for tests files 2024-02-04 09:56:42 +01:00
qbytearraymatcher Change license for tests files 2024-02-04 09:56:42 +01:00
qbytearrayview tst_QByteArrayView: check conversion from various QSpans 2024-12-15 13:41:43 +00:00
qbytedatabuffer Change license for tests files 2024-02-04 09:56:42 +01:00
qchar Add REUSE.toml files 2024-11-07 08:38:49 +01:00
qcollator Change license for tests files 2024-02-04 09:56:42 +01:00
qlatin1stringmatcher QStaticLatin1StringMatcher: add indexIn(QStringView) 2024-05-08 22:05:35 +02:00
qlatin1stringview Confirm QLatin1StringView can be constructed over arrays of unknown bounds 2024-12-11 06:29:18 +00:00
qlocale QLocale: fix likely subtags to include und -> en_Latn_US 2024-12-10 12:35:05 +01:00
qregularexpression QRegularExpression: coalesce consecutive * tokens in wildcards 2024-08-08 01:09:59 +00:00
qstring tst_QString: extend arg() tests with enums w/o explicit underlying_type 2024-12-13 08:00:16 +00:00
qstring_no_cast_from_bytearray Change license for tests files 2024-02-04 09:56:42 +01:00
qstringapisymmetry tst_QStringApiSymmetry: test QByteArray(weak)/QByteArrayView overloading 2024-12-13 08:00:16 +00:00
qstringbuilder tst_QStringBuilder: add more checks 2024-06-12 12:23:43 +00:00
qstringconverter tst_QStringConverter: compare pointer distances, not pointers 2024-06-07 06:59:22 +00:00
qstringiterator Change license for tests files 2024-02-04 09:56:42 +01:00
qstringlist Change license for tests files 2024-02-04 09:56:42 +01:00
qstringmatcher Change license for tests files 2024-02-04 09:56:42 +01:00
qstringtokenizer Change license for tests files 2024-02-04 09:56:42 +01:00
qstringview Q{Any,Utf8}StringView: fix construction from arrays of unknown size 2024-12-16 20:45:24 +00:00
qtextboundaryfinder Add REUSE.toml files 2024-11-07 08:38:49 +01:00
qunicodetools Change license for tests files 2024-02-04 09:56:42 +01:00
shared Change license for tests files 2024-02-04 09:56:42 +01:00
CMakeLists.txt tst_QStringApiSymmetry: disable for WASM 2024-08-25 10:21:14 +00:00