[Development] QRegularExpression -- first round of API review

Thiago Macieira thiago.macieira at intel.com
Tue Jan 17 13:37:34 CET 2012


On Tuesday, 17 de January de 2012 02.43.33, Giuseppe D'Angelo wrote:
> 3) Need a couple of better names for partial matching:
> - partial match preferring a complete match
> - partial match returning whatever match (partial or complete) is found
> first
> 
> PCRE uses Soft and Hard respectively (which are quite meaningless to me).

You have a method with two option flags:
   QRegularExpressionMatch match(const QString &subject,
                                  int offset                = 0,
                                  MatchType matchType       = NormalMatch,
                                  MatchOptions matchOptions = NoMatchOption) 
const;

Why can't you fold the partial match into the matchOptions as 
AllowPartialMatchOption ?


-- 
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/802dc91c/attachment.sig>


More information about the Development mailing list