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

Dominik Haumann dhaumann at kde.org
Fri Jan 25 10:49:14 CET 2019


On Thu, Jan 24, 2019 at 10:57 PM Thiago Macieira
<thiago.macieira at intel.com> wrote:
>
> On Wednesday, 23 January 2019 23:32:28 PST Olivier Goffart wrote:
> >   - Introduce some iterator that iterates over unicode code points.
>
> I wrote that about a decade ago. It's called QStringIterator and it's inside
> our sources, but in a private header.
>
> But we may want to make it iterate over grapheme clusters instead of Unicode
> codepoints. That is, make it use QTextBoundaryFinder to iterate, instead of
> decode the storage to UTF-32.
> [...]

Sidenote: Such a QStringIterator would also be helpful for
KTextEditor, where we likely have some bugs we usually never see since
we never have > UTF16 or composed characters.

Greetings
Dominik



More information about the Development mailing list