[Interest] Why there is no QChar::toLocal8Bit()?
Thiago Macieira
thiago.macieira at intel.com
Sat Apr 9 17:50:28 CEST 2016
On sábado, 9 de abril de 2016 15:56:36 PDT Prav wrote:
> There is QString::toLocal8Bit() but somehow there is no QChar::toLocal8Bit()
> ... but probably it should be ... as soon as we have pair of toLatin1() for
> both QChar and QString?
>
> This is intensional and there are resons for that Or just did not wrote
> this function yet?
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.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list