From 3d0eaf863edeed9095b35026974a54cc7d418962 Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Tue, 20 Feb 2024 15:06:16 +0100 Subject: Add missing QUtf8StringView relational operators Add QU8SV vs QSV, QU8SV vs QChar, and QU8SV vs char16_t relational operators. This allows to get rid of the dummy relational operators in tst_qstringapisymmetry. Task-number: QTBUG-117661 Change-Id: If95d7418efd13c505ed0e3bef748b86ff55e623a Reviewed-by: Thiago Macieira --- src/corelib/text/qutf8stringview.qdoc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/corelib/text/qutf8stringview.qdoc') diff --git a/src/corelib/text/qutf8stringview.qdoc b/src/corelib/text/qutf8stringview.qdoc index dbc524bdb5..b433e5b995 100644 --- a/src/corelib/text/qutf8stringview.qdoc +++ b/src/corelib/text/qutf8stringview.qdoc @@ -11,6 +11,14 @@ \ingroup tools \ingroup string-processing + \compares strong + \compareswith strong char16_t QChar {const char16_t *} QString QStringView \ + QLatin1StringView + \endcompareswith + \compareswith strong {const char *} QByteArray QByteArrayView + The contents of byte arrays is interpreted as utf-8. + \endcompareswith + A QUtf8StringView references a contiguous portion of a UTF-8 string it does not own. It acts as an interface type to all kinds of UTF-8 string, without the need to construct a QString or -- cgit v1.2.3