From 09705c74b2987b9b3a0eaf75d7f80187911312ad Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Fri, 16 Feb 2024 17:17:58 +0100 Subject: [PATCH] QByteArrayView: use new qdoc commands to document relational operators Do not remove the existing documentation for now, because the new commands do not contain any links to explain what the types of ordering actually mean. Fixes: QTBUG-108805 Change-Id: I1297c435d700d02968f0d7d3a922af78a61d7e45 Reviewed-by: Edward Welbourne --- src/corelib/text/qbytearrayview.qdoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/corelib/text/qbytearrayview.qdoc b/src/corelib/text/qbytearrayview.qdoc index fc8325cc607..eb890917eb0 100644 --- a/src/corelib/text/qbytearrayview.qdoc +++ b/src/corelib/text/qbytearrayview.qdoc @@ -14,6 +14,15 @@ \reentrant + \compares strong + \compareswith strong QByteArray {const char *} + \endcompareswith + \compareswith strong QString QStringView QUtf8StringView QLatin1StringView \ + QChar char16_t + When comparing with string and Unicode character types, the content is + interpreted as UTF-8. + \endcompareswith + A QByteArrayView references a contiguous portion of raw bytes it does not own. It acts as an interface type to all kinds of byte-array-like data, without the need to construct a QByteArray first.