[Interest] Why there is no QChar::toLocal8Bit()?

Thiago Macieira thiago.macieira at intel.com
Sat Apr 9 23:05:54 CEST 2016


On sábado, 9 de abril de 2016 19:45:52 PDT Prav wrote:
> Hi, Thiago Macieira.
> 
> > It's intentional because it's superfluous. You can get the same by running
> > 
> >         QString(the_qchar).toLocal8Bit();
> > 
> > converting to a multibyte 8-bit representation is a string operation
> > anyway.
> Multibyte?! I thought it should be like
> 
> char QChar::toLocal8Bit() const;
> 
> No?

No, as I said it's a multibyte operation.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list