Details
-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
6.5
-
None
-
1
-
19b17667d (dev), 90ff2bc5c (6.6), ef8c07b2e (dev), 4ebb1cf29 (6.7), 05ea27ec0 (6.6), 716567917 (tqtc/lts-6.5)
-
Foundation Sprint 92, Foundation Sprint 93, Foundations Sprint 94, Foundations Sprint 95, Foundations Sprint 96, Foundations Sprint 97
Description
Unify the documentation of QString::compare and QStringView::compare result. They mean the same but are written differently. QString doc is easier to understand IMO.
QString:
int QString::compare(const QString &s1, const QString &s2, Qt::CaseSensitivity cs = Qt::CaseSensitive)
Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.
QStringView
int QStringView::compare(QStringView str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const
Returns an integer that compares to zero as this string view compares to the string view str.
Attachments
Issue Links
- mentioned in
-
Page Loading...