Hi, On 23 May 2013 03:23, Thiago Macieira <[email protected]> wrote: > > 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" ?
I just made a quick couple of tests and couldn't make that work. I don't think the necessary logic is inside PCRE when enabling Unicode (and not old-fashioned locale-dependent matches); moreover I have the gut feeling it won't work even with those. I fired an email at the PCRE devs asking if such a feature could be implemented; all in all there are APIs out there that offer a switch to turn on some support to handle Turkish dotted/dotless "i" letters (f.i. U_FOLD_CASE_EXCLUDE_SPECIAL_I in ICU -- which by the way offers full locale-dependent folding, if one use the right C APIs --, or the NORM_LINGUISTIC_CASING option for Win32 APIs). I'll keep you posted about this. Hope this helps :-) -- Giuseppe D'Angelo >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
