On quarta-feira, 22 de maio de 2013 18.23.11, Parker Coates wrote: > On Wed, May 22, 2013 at 5:08 PM, Thiago Macieira wrote: > > On quarta-feira, 22 de maio de 2013 13.39.20, Aaron J. Seigo wrote: > >> On Wednesday, May 22, 2013 13:05:04 Volkan Gezer wrote: > >> > https://bugs.kde.org/show_bug.cgi?id16077 > >> > >> this would best be handled in Qt's string comparison code so that it gets > >> fixed everywhere. reporting it to Qt's bug tracker may be the best > >> option. > > > > QString's comparison is locale-unaware. If you need locale-aware > > comparisons, you need to use either QCollator (Qt 5.1) or > > QString::localeAwareCompare. > > > > This needs to be done in each application. > > Maybe I'm missing something, but I don't see how QCollator or > QString::localeAwareCompare() would allow one to do locale-aware, > case-insensitive substring or regex searches.
You don't. You need to do it manually.
Maybe we can add the feature to QRegularExpression to do locale-aware
searches. Peppe, does PCRE support that?
Example: can you use "i" as a pattern and match "İ" but not "I" ?
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
signature.asc
Description: This is a digitally signed message part.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
