[Qt-interest] Fastest way to check if QString is number
Thiago Macieira
thiago at kde.org
Thu Jul 14 14:03:30 CEST 2011
On Thursday, 14 de July de 2011 10:49:14 Lukast dev wrote:
> qreal value = text.toDouble(isNumber);
You mean: double value = text.toDouble(&isNumber);
> Would be QRegExp faster http://doc.qt.nokia.com/latest/qregexp.html ?
No.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110714/58af5ff2/attachment.bin
More information about the Qt-interest-old
mailing list