[Development] QStringRef conversion functions
Thiago Macieira
thiago.macieira at intel.com
Wed Jun 13 22:18:10 CEST 2012
On quarta-feira, 13 de junho de 2012 18.44.41, aaron.kennedy at nokia.com wrote:
> > A QStringRef points to an existing QString. Therefore, if we take a
> > QString that is pointing to a substring of an existing QString, the
> > d-ptr is already allocated. The new QString would be as cheap as the
> > current QStringRef.
> How does that work? Where do you store the substring's offset and length
> data?
In the QString.
You might have missed the other thread where we're discussing moving the data
pointer and length to the main class in QString, QByteArray and QVector.
I've begun doing that work, but turns out that there's a LOT of code to get
ported, starting with moc.
--
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/20120613/e77e33a0/attachment.sig>
More information about the Development
mailing list