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

In-place UTF-8 case-insensitive comparisons

    XMLWordPrintable

Details

    • 8
    • b977ae371 (dev)
    • Foundation Sprint 63, Foundation Sprint 64, Foundation Sprint 65, Foundation Sprint 66, Foundation Sprint 67, Foundation Sprint 68, Foundation Sprint 69, Foundation Sprint 70, Foundation Sprint 71

    Description

      I think I weeded out the last code that converted from one encoding to another just to compare strings case-sensitively.

      The places where we still do that are case-insensitive comparisons involving UTF-8.

      It seems it would be pretty easy to extend QUtf8::compareUtf8() with case-insensitivity, because it already compares characters at the char32_t level.

      Unfortunately, qstringconverter.cpp doesn't have access to foldCase (in the qstring.cpp TU). It seems the general approach to this is to #include the .cpp file into qstring.cpp (cf. qstringmatcher.cpp, qchar.cpp), so maybe that works here, too?

      Attachments

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

        Activity

          People

            oyheskes Øystein Heskestad
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes