qt5base-lts/tests/auto/corelib/text/qstring
Dennis Oberst 016addc201 QString: assign() [4/4]: (it,it) overload for UTF-8 data types
Implement the missing overload to handle UTF-8 specific data types,
including char8_t (C++20), char, uchar and signed char.

Introduce the helper function 'assign_helper_char8' which handles the
non-contiguous_iterator case. The contiguous_iterator case is already
handled by the QAnyStringView overload.

Include 'qstringconverter.h' at the end of the file, since it can't
be included at the top due to diamond dependency conflicts.
QStringDecoder is an implementation detail we don't want users to
depend on when using assign(it, it). It would be unnatural to not
be able to use a function just because we didn't include an
apparently unrelated header.

[ChangeLog][QtCore][QString] Enabled assign() for UTF-8 data types.

Fixes: QTBUG-114208
Change-Id: Ia39bbb70ca105a6bbf1a131b2533f29a919ff66d
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2023-09-28 17:58:41 +00:00
..
.gitignore Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
CMakeLists.txt CI: Enable tests under corelib/text for Wasm platform 2023-07-10 14:53:34 +02:00
double_data.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
tst_qstring_mac.mm QString: change test data to compile with QT_NO_CAST_FROM_ASCII [10/13] 2023-03-15 22:25:57 +02:00
tst_qstring_wasm.cpp wasm: rename JsString -> EcmaString 2023-08-30 23:02:03 +02:00
tst_qstring.cpp QString: assign() [4/4]: (it,it) overload for UTF-8 data types 2023-09-28 17:58:41 +00:00