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

QString::right(int n) and string size()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.5.1
    • 5.5.0
    • Documentation
    • None
    • c5461ec

    Description

      Documentation says:

      QString QString::right(int n) const
      ...
      The entire string is returned if n is greater than size() or less than zero.

      But right() returns the entire string if n is greater than OR EQUAL to size()

      Attachments

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

        Activity

          People

            treinio Topi Reiniƶ
            dmitry64 Dmitry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes