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

QUtf8StringView should have the same functions as QStringView 1/2 - non-owning return types

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.0, 6.1, 6.2
    • Fix Version/s: None
    • Labels:
      None
    • Story Points:
      8
    • Sprint:
      Qt6_Foundation_Sprint 40, Foundation_Sprint 41 (Team 1)

      Description

      QUtf8StringView::indexOf (witho const char * and QUtf8String arguments) most certainly make sense, and would allow some cleanup in Qt code itself, which currently operates on const char* (without using the semantically less fitting QByteArrayView).

      Functionality like isRightToLeft could be added for consistency, but might be superfluous as we don't actually use QUtf8StringView to display text.

      Adding allocating methods like arg is arguably of dubious value, but see QTBUG-98429.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              mmutz Marc Mutz
              Reporter:
              fabiankosmale Fabian Kosmale
              PM Owner:
              Vladimir Minenko Vladimir Minenko
              RnD Owner:
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes