[Development] QRegularExpression -- first round of API review

Thiago Macieira thiago.macieira at intel.com
Tue Jan 17 13:45:12 CET 2012


On Tuesday, 17 de January de 2012 02.43.33, Giuseppe D'Angelo wrote:
> 1) Support for more pattern options and match options. Right now you
> can see them commented in the .h (and there's no code for them), but
> adding them is trivial. Any opinions for just enabling them or only
> some? In particular, InvertedGreedinessOption for giving a (more or
> less) direct replacement of QRegExp::setMinimal, and
> AllowDuplicatedNamesOption (see the next point) for duplicated names
> in named capturing groups.

Call it NonGreedyOption and I think that should be enabled.

UseUnicodePropertiesOption: can we reduce the size of the library in certain 
scenarios if we don't have this option?

DontCaptureOption: is this a memory saving mechanism? What else does it do, 
besides making the capture groups return empty or invalid? If it's just a 
memory saving option, I'd say let it in.

MatchFirstLineOnlyOption and DollarMatchesOnlyAtEndOption: I can't tell from 
the name only. How do they interact with the MultilineOption? My guess is to 
leave them out for now. We can always introduce them later.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- 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/20120117/b3c60659/attachment.sig>


More information about the Development mailing list