[Development] QLatin1Constant and QtContacts / QtOrganizer

Robin Burchell robin+qt at viroteck.net
Tue Dec 20 15:57:21 CET 2011


On Tue, Dec 20, 2011 at 3:54 PM, Harald Fernengel
<harald.fernengel at nokia.com> wrote:
> I thought about optimizing ::fromUtf8, but since we need to iterate character
> by character to convert the char* to utf16, the length of the string should be
> rather irrelevant?

having the length would at least allow you to semi-sensibly reserve()
a size that's at least close to what the utf16 size would be, though,
wouldn't it?



More information about the Development mailing list