Skip to content
Commit 68430040 authored by Holger Kaelberer's avatar Holger Kaelberer
Browse files

core, add native helper functions for real locale aware sorting

String.localeCompare() does not sort alphabetically correct for all
locales. The following native functions can now be used for that:

ApplicationInfo::localeSort()
ApplicationInfo::localeCompare()

The default native implementation uses QCollator which is fine on
platforms that implement the ICU collation backend.

On Android QCollator uses only the posix backend as of Qt 5.5.1
is not capable of doing locale aware comparison. (cf.
https://bugreports.qt.io/browse/QTBUG-43637). Therefore we use native
Collation via jni. That works well for all locales supported by a
device and falls back to the Locale.getDefault() locale otherwise.

https://phabricator.kde.org/T1500
parent c7c4effd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment