From kde-commits Wed Jan 28 08:02:49 2004 From: Rob Kaper Date: Wed, 28 Jan 2004 08:02:49 +0000 To: kde-commits Subject: Re: kdegames/atlantik Message-Id: <20040128090249.B15633 () capsi ! com> X-MARC-Message: https://marc.info/?l=kde-commits&m=107527724822106 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--V0207lvV8h4k8FAm" --V0207lvV8h4k8FAm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 28, 2004 at 01:00:53AM +0100, Andy Goossens wrote: > > QString::find is faster than ::contains > > > > - if (text.contains("rolls")) > > + if ( text.find( QRegExp("rolls") ) !=3D -1 ) >=20 > Even with a useless QRegExp? It's the "default" method for QString::find, the others are overloaded and provided for convenience only, so I assume ::find will at some point have to use a QRegExp for its mojo anyway. Rob --=20 Rob Kaper | 1/28 The Rasmus, 2/17 Blink-182, 2/29 Anti-Flag cap@capsi.com | 3/5 Anti-Flag/Heideroosjes, 3/19 The Offspring www.capsi.com | 3/24 Good Riddance/None More Black, 5/14 Disney --V0207lvV8h4k8FAm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAF2yotppIl2G1SjcRAp+OAJ98zxnilT0F9peNSAWAWone6Ba0eQCglZ0r yW/QrCE3wPucmDCptrL4Gzc= =ThId -----END PGP SIGNATURE----- --V0207lvV8h4k8FAm--