On Wed, Oct 12, 2011 at 5:08 PM, Robin Burchell <[email protected]>wrote:

> 2011/10/12 Pau Garcia i Quiles <[email protected]>:
> > In QtCore, have only QRegExp. Maybe rename it to QSimpleRegExp. Simple
> > regexp support for console-only or GUI-less applications. Should be
> enough.
>
> this is not just about missing functionality: the current QRegExp is
> broken[1], and renaming it won't fix that, nor will it discourage
> people from using it.
>
>
The API can be fixed



> Apart from the purist's line of thought, it's also very, very slow in
> a number of common cases (and really, really slow in some
> not-so-common ones).


There is nothing wrong with that.

You want do depend only on QtCore? Fine: you no lookbehind for you, some
cases will be very slow. On the plus side: no dependency on V8, no UTF-16 to
UTF-8 conversion, etc

You want advanced regexp features and a very performant regexp engine?
You'll need to depend on some other module. This is perfectly fine for GUI
applications. In the end, anyone who does GUI will use the new regexp
engine; anyone who does not do GUI will either use QSimpleRegExp or find an
alternative (PCRE, RE2, etc)



> Getting rid of it as much as possible (and
> encouraging porting to something less stupid) is something that really
> should be done, and now's pretty much the only chance anytime soon to
> do that, as leaving it in place implies that it is both good (which it
> isn't) and maintained (which it definitely isn't).
>
>
Unfortunately, it looks like finding a performant and feature-complete
regexp engine without introducing a huge dependency is not that easy. That
huge dependency is unacceptable in QtCore.


-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to