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

Consistent hashing for string types

    XMLWordPrintable

Details

    Description

      We need a form of qHash that generates equal output for equal input, even if the input is in different encodings:

      qHash("foo"_L1) == qHash(QStringView(u"foo")) == qHash(u8"foo")
      

      This is currently not the case, and prevents qHash(QAnyStringView).

      Attachments

        Issue Links

          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:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes