Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-114822

Improve documentation of QStringView::compare

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.5
    • Core: Other, Documentation
    • None
    • 1
    • 19b17667d (dev), 90ff2bc5c (6.6), ef8c07b2e (dev), 4ebb1cf29 (6.7), 05ea27ec0 (6.6), 716567917 (tqtc/lts-6.5), 9ac1d0c2f (tqtc/lts-6.5)
    • Foundation Sprint 92, Foundation Sprint 93, Foundations Sprint 94, Foundations Sprint 95, Foundations Sprint 96, Foundations Sprint 97

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            javyas Jaishree Vyas
            hrabowski Maximilian Hrabowski
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: