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

Consistent hashing for string types

XMLWordPrintable

      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).

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

            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

              Created:
              Updated:

                There are no open Gerrit changes