Implement String.localeCompare() using QString::localeAwareCompare()
authorMartin Jones <martin.jones@nokia.com>
Fri, 17 Feb 2012 03:08:21 +0000 (13:08 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 21 Feb 2012 23:03:53 +0000 (00:03 +0100)
commitf60588237b230923c6a27f60669fa0230138f1ca
tree7fa24633c22c7aa06dcb395fab499c8abb8f9b6a
parenta73ad904c9a4ad188604de6c64a6c91cd514dc1b
Implement String.localeCompare() using QString::localeAwareCompare()

v8's localeCompare() implementation is not locale aware, so we use
Qt's locale aware compare.

Change-Id: Ia9092b3d6754545bb797adac26080ac7a29dcd92
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
src/declarative/qml/qdeclarativelocale.cpp
src/declarative/qml/qdeclarativelocale_p.h
src/declarative/qml/v8/qv8engine.cpp
tests/auto/declarative/qdeclarativelocale/data/localeCompare.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativelocale/tst_qdeclarativelocale.cpp