[Development] Qt6: Adding UTF-8 storage support to QString

Arnaud Clère arnaud.clere at minmaxmedical.com
Mon Jan 28 08:32:47 CET 2019


> -----Original Message-----
> From: Jason H <jhihn at gmx.com> 
> Sent: vendredi 25 janvier 2019 17:40
> Cc: development at qt-project.org
> Subject: Re: [Development] Qt6: Adding UTF-8 storage support to QString
>
> > By all means, let's make sure the internals are efficient for the more 
> > common languages and scripts; but it's way past time to start doing 
> > Unicode properly, so that all cultures are well-served by default, 
> > when the software folk are using is built on Qt,
>
> I don't think anyone knows what "properly" is. 

+1

> But the more I think about it, the more I like the idea I expressed as a list of sequences of various character sizes. 
> I think it is a good balance between space and efficiency.

It looks like proposed boost::text::unencoded_rope to me, except they chose to implement it as a tree of string. 
https://github.com/boostcon/cppnow_presentations_2018/blob/master/05-07-2018_monday/boost_text_fixing_std_string_and_adding_unicode_to_standard_cpp__zach_laine__cppnow_2018__05072018.pdf 
It makes more sense to me if you consider that efficiently editing large strings is not so common.



More information about the Development mailing list