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

Improve documentation of QStringView::compare

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • 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)
    • 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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: