[Qt-qml] qml locale aware string comparison

denis.dzyubenko at nokia.com denis.dzyubenko at nokia.com
Fri Dec 23 18:24:26 CET 2011


Hi,

On 23 Dec 2011, at 02:18, ext Alan Alpert wrote:

> On Thu, 22 Dec 2011 23:52:31 ext denis.dzyubenko at nokia.com wrote:
>> Hi guys,
>> 
>> Are there are any plans to implement locale aware string comparison api for
>> QML?
>> 
>> What about any other locale aware properties, including but not limiting to
>> date/time formatting?
> 
> It's there already: http://doc.qt.nokia.com/qt5-snapshot/qml-qtquick2-
> locale.html
> 
> I don't think it does locale aware string comparison, but it does do locale 
> aware strings (like date/time formatting). Perhaps you can just compare those.

oh great. I am mostly interested in locale aware string comparison though - what QString::localeAwareCompare() does - e.g. determining sort order of words like "china", "danmark" - they will be sorted differently in english and czech locales.

Denis



More information about the Qt-qml mailing list