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 <edward.welbourne@qt.io>
This commit is contained in:
Ivan Solovev 2024-02-16 17:17:58 +01:00
parent 88763730cc
commit 09705c74b2

View File

@ -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.