[Qt-interest] Converting first character of a char* from local charset

Thiago Macieira thiago at kde.org
Fri May 27 18:06:57 CEST 2011


On Friday, 27 de May de 2011 17:21:15 Nikos Chantziaras wrote:
> I can imagine that the performance of this code ain't the best, since 
> what it does is call QTextCodec::toUnicode() repeatedly, increasing the 
> amount of characters each time, until it hits an amount of bytes that 
> can be converted.
> 
> Is there a better way to achieve this?

Why do you want to achieve this first?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      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/20110527/99c4f7bd/attachment.bin 


More information about the Qt-interest-old mailing list