File indexing completed on 2024-04-28 05:38:42

0001 #include <QtCore/QString>
0002 
0003 void test()
0004 {
0005     QString s;
0006     s.toLower().startsWith("bar"); // Warning
0007     s.toLower().endsWith("bar"); // Warning
0008     s.toUpper().contains("bar"); // Warning
0009     s.toUpper().compare("bar"); // Warning
0010     s.compare("bar", Qt::CaseInsensitive); // OK
0011     s.contains("bar", Qt::CaseInsensitive); // OK
0012 }