Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
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?