Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
5.10
-
None
-
-
ecc307ff41884d04ffc71d70968891f7903e22f3 (qt/qtbase/dev)
Description
When lastIndexOf is used with default option it gives correct results. When used with CaseInsensitive it returns (incorrect) results.
QString bug= "aa"; qDebug()<<bug.lastIndexOf("a", Qt::CaseInsensitive); qDebug()<<bug.lastIndexOf("a"); bug= " aa"; qDebug()<<bug.lastIndexOf("a", Qt::CaseInsensitive); qDebug()<<bug.lastIndexOf("a"); // 0 // 1 // -1 // 2