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

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.0, 6.1, 6.2
    • None
    • 8
    • Qt6_Foundation_Sprint 40, Foundation_Sprint 41 (Team 1)

      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.

        For Gerrit Dashboard: QTBUG-92021
        # Subject Branch Project Status CR V

            mmutz Marc Mutz
            fabiankosmale Fabian Kosmale
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes