[Development] Regular expression libraries for QRegExp

Thiago Macieira thiago.macieira at intel.com
Wed Nov 23 15:58:44 CET 2011


On Wednesday, 23 de November de 2011 15:48:41 Robin Burchell wrote:
> 2011/11/23 Thiago Macieira <thiago at kde.org>:
> > We don't even have to mark this one deprecated. If the new engine's API is
> > compatible, it could be used for both.
> 
> well.... doesn't that depend on how complete you want SC to be?
> QRegExp uses different syntax than pretty much every other RE engine,
> definitely different from PCRE, and supports different features. So if
> people have hardcoded regular expressions, they may function
> differently, or not at all.

It will not be source-compatible because the class name will be different. 
That's not what I was advocating.

I was advocating having a similar API (what Matthias called "static 
polymorphism" in his article on QQ13). That is, having an 
	int indexIn(const QString &string) const;

method. It brings familiarity: people who used this method in QRegExp will 
know what to expect.

-- 
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
-------------- 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/20111123/8a5e1d32/attachment.sig>


More information about the Development mailing list