Il 11/06/24 11:36, David C. Partridge ha scritto:
Anyone iterating bytewise over a char[] in UTF-8 has also got serious
bugs given that a UTF-8 "graphic character" can be up to 8 bytes
(national flags comprise two UTF-8 code points).

There's no such thing as a UTF-8 "graphic character". Grapheme sequences are treated at a higher level anyhow in Qt, and we have APIs for that (QTextBoundaryFinder, etc.).

And it's not 2. 🏴󠁧󠁢󠁷󠁬󠁳󠁿 is 7 code points.

My 2 c,
--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - Trusted Software Excellence

Attachment: smime.p7s
Description: Firma crittografica S/MIME

-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to