From bbb9cf225fd030a87818cb867c24ab651f797100 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 17 Jan 2023 08:13:04 +0100 Subject: Make compare(QU8SV) a non-template, document it Templates have different overload characteristics from normal functions, and treating q_no_char8_t and q_has_char8_t::QUtf8StingView separately is never necessary, as one implicitly converts into the other. Add docs for the new UTF-8 compare() functions. Amends b977ae371a753a82e1d0bb32c5b62099da663721. Found in API review. Pick-to: 6.5 6.5.0 Change-Id: I58b4b28a3eccde1976d71cfa3412b734d46f314d Reviewed-by: Volker Hilsheimer --- src/corelib/text/qutf8stringview.qdoc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/corelib/text/qutf8stringview.qdoc') diff --git a/src/corelib/text/qutf8stringview.qdoc b/src/corelib/text/qutf8stringview.qdoc index e19e451f99..60ebe954ed 100644 --- a/src/corelib/text/qutf8stringview.qdoc +++ b/src/corelib/text/qutf8stringview.qdoc @@ -203,6 +203,11 @@ \sa isNull() */ +/*! + \fn QUtf8StringView::QUtf8StringView(const storage_type *d, qsizetype n) + \internal +*/ + /*! \fn QUtf8StringView::QUtf8StringView(std::nullptr_t) @@ -654,6 +659,19 @@ \sa sliced(), first(), last(), chopped(), truncate() */ +/*! + \fn int QUtf8StringView::compare(QLatin1StringView str, Qt::CaseSensitivity cs) const + \fn int QUtf8StringView::compare(QUtf8StringView str, Qt::CaseSensitivity cs) const + \fn int QUtf8StringView::compare(QStringView str, Qt::CaseSensitivity cs) const + \since 6.5 + + Returns an integer that compares to zero as this string view compares to the + string view \a str. + + \include qstring.qdocinc {search-comparison-case-sensitivity} {comparison} +*/ + + /*! \fn QUtf8StringView::isValidUtf8() const -- cgit v1.2.3