[Development] Using QCollator on different platforms, without ICU
Thiago Macieira
thiago.macieira at intel.com
Wed Aug 14 17:30:54 CEST 2013
On quarta-feira, 14 de agosto de 2013 14:54:53, Aleix Pol wrote:
> On Tue, Aug 13, 2013 at 8:08 PM, Thiago Macieira
> > However much I dislike common denominators, what is the common denominator
> > API
> > that we can provide in all platforms?
>
> Hi!
> I've put together a small table displaying whether the different
> methods/properties can be implemented in the different platforms:
> https://qt-project.org/wiki/QCollator
What do you mean by "collation N" in all the columns? Do you mean we can't set
the collation type from QCollation::Collation? If so, that's quite acceptable,
the class should default to whatever the collation type is for the locale.
identifier: it would probably return "System" and that would be fine.
casePreference: looks like we can do case sensitive and insensitive, then.
Sounds like an acceptable compromise. For POSIX, we can implement case-
insensitive collation by lowercasing, even though that might introduce some
errors.
numericMode: this is what KDE wants. We can write our own algorithm.
sortKey: the lack of OS X support is worrying... didn't they have just a
simple wrapper around ICU?
indexCharacters: we can return the English ones and see what happens...
> PS: I also hope it's ok to create new wiki pages like that :)
Sure!
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130814/090c536e/attachment.sig>
More information about the Development
mailing list