Fix case insensitive comparisons using QCollator
authorLars Knoll <lars.knoll@digia.com>
Mon, 24 Mar 2014 15:12:20 +0000 (16:12 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 12 Jun 2014 08:26:07 +0000 (10:26 +0200)
commit81ba16cad933981f55218964a89ed1446022efba
treee77b373562a7bf9bfc86b6a92eefbd54ea4c4e1e
parentdbe6db192aa1a3e708b00a98a17636af37ceec27
Fix case insensitive comparisons using QCollator

In ICU the strength parameter decides whether a comparison is
case sensitive or not.

Fix mac comparison code. It can't have worked before.

Added some basic automated testing for QCollator.

Change-Id: I2646c464fd22ccd3a93c461fa3dba4bd1d4c7b4b
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
src/corelib/tools/qcollator_icu.cpp
src/corelib/tools/qcollator_macx.cpp
tests/auto/corelib/tools/qcollator/tst_qcollator.cpp