[Development] Why can't QString use UTF-8 internally?
Thiago Macieira
thiago.macieira at intel.com
Wed Feb 11 01:38:40 CET 2015
On Wednesday 11 February 2015 04:05:02 Konstantin Ritt wrote:
> Previously you said QString::data() must return QChar* (and not a generic
> uchar*), so that QString with an adaptive storage would have to silently
> convert the internal encoding into the one represented by QChar.
> If QString has a UCS-4 indexes and length() that counts the amount of UCS-4
> codepoints, one would expect QString::data() to return UCS-4*, right?
Right.
But the question stands: what's the advantage in doing that over doing UTF-16,
which is what we already have.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list