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

Port QLocale's locale name parsing to QAnyStringView

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • None

    Description

      The functions surrounding locale names (qt_splitLocaleName, QLocaleId::fromName()) are called with environment variables (which, to match anything, must be US-ASCII, so Latin1), so they should at least be ported to QLatin1StringView to avoid the conversion to UTF-16. Since they're already implemented for QStringView, we then have the whole set (UTF-8 can be parsed as L1 here) and can expose the API as QAnyStringView.

      Attachments

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

        Activity

          People

            cnn Qt Core & Network
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes