206 void repeatedSignature() const; |
206 void repeatedSignature() const; |
207 void repeated() const; |
207 void repeated() const; |
208 void repeated_data() const; |
208 void repeated_data() const; |
209 void task262677remove(); |
209 void task262677remove(); |
210 void QTBUG10404_compareRef(); |
210 void QTBUG10404_compareRef(); |
|
211 void QTBUG9281_arg_locale(); |
211 }; |
212 }; |
212 |
213 |
213 typedef QList<int> IntList; |
214 typedef QList<int> IntList; |
214 |
215 |
215 Q_DECLARE_METATYPE(QList<QVariant>) |
216 Q_DECLARE_METATYPE(QList<QVariant>) |
4858 QVERIFY(QStringRef(&a2, 1, 2).compare(QStringRef(&a, 1, 3)) < 0); |
4859 QVERIFY(QStringRef(&a2, 1, 2).compare(QStringRef(&a, 1, 3)) < 0); |
4859 QCOMPARE(QStringRef(&a2, 1, 2).compare(QStringRef(&a, 1, 2), Qt::CaseInsensitive), 0); |
4860 QCOMPARE(QStringRef(&a2, 1, 2).compare(QStringRef(&a, 1, 2), Qt::CaseInsensitive), 0); |
4860 QVERIFY(QStringRef(&a2, 1, 2).compare(QStringRef(&a, 1, 3), Qt::CaseInsensitive) < 0); |
4861 QVERIFY(QStringRef(&a2, 1, 2).compare(QStringRef(&a, 1, 3), Qt::CaseInsensitive) < 0); |
4861 } |
4862 } |
4862 |
4863 |
|
4864 void tst_QString::QTBUG9281_arg_locale() |
|
4865 { |
|
4866 QLocale l(QLocale::English, QLocale::UnitedKingdom); |
|
4867 l.setNumberOptions(QLocale::OmitGroupSeparator); |
|
4868 QLocale::setDefault(l); |
|
4869 QString str("*%L1*%L2*"); |
|
4870 str = str.arg(123456).arg(1234.56); |
|
4871 QCOMPARE(str, QString::fromLatin1("*123456*1234.56*")); |
|
4872 QLocale::setDefault(QLocale::C); |
|
4873 } |
|
4874 |
4863 |
4875 |
4864 |
4876 |
4865 QTEST_APPLESS_MAIN(tst_QString) |
4877 QTEST_APPLESS_MAIN(tst_QString) |
4866 |
4878 |
4867 #include "tst_qstring.moc" |
4879 #include "tst_qstring.moc" |