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?
Denis
_______________________________________________
Qt-qml mailing list
Qt-...@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml
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.
--
Alan Alpert
Senior Engineer
Nokia, Qt Development Frameworks
On 23 Dec 2011, at 02:18, ext Alan Alpert wrote:
> On Thu, 22 Dec 2011 23:52:31 ext denis.d...@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
> On Thu, 22 Dec 2011 23:52:31 ext denis.d...@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
btw, who was implementing that api? It seems to be missing toCurrentString - which uses the locale's currency symbol position and spacing.
Denis
Martin.
http://doc.qt.nokia.com/qt5-snapshot/qml-qtquick2-number.html
> Actually, it is documented:
>
> http://doc.qt.nokia.com/qt5-snapshot/qml-qtquick2-number.html
Great! I just didn't find it linked from Locale documentation. I pushed a tiny patch for you to review: http://codereview.qt-project.org/12024
Denis.