[Development] Why can't QString use UTF-8 internally?

Olivier Goffart olivier at woboq.com
Wed Feb 11 09:51:31 CET 2015


On Tuesday 10 February 2015 17:22:45 Thiago Macieira wrote:
> Because unlike std::vector, std::basic_string is woefully inadequate
> compared to QString and QByteArray. I just mentioned the easy cases, but a
> quick check shows how much more is lacking.
> 
> I rest my case. QString will be there at least through the major release of
> Qt released before 2020.

As I said, you can still use std::basic_string as a container, and then have 
qToLower, qToUpper, QTextCodec::fromUnicode for tasks which you think are 
missing in the standard library.

Then again, it is not really the time to discuss this kind of things.

-- 
Olivier 

Woboq - Qt services and support - http://woboq.com - http://code.woboq.org



More information about the Development mailing list