[Development] char8_t summary?
giuseppe.dangelo at kdab.com
Mon Jul 15 18:30:33 CEST 2019
On 13/07/2019 21:39, Volker Hilsheimer wrote:
> With an (ideally) single template-based API we don’t have peopleusing Qt get lost in the jungle for overloads and string classes. For the implementation, we can specialise the templates to call the suitable internal functions that implement the various algorithms.
This is basically a Qt 7 idea, raised some time ago: a string class that
is a collection of code points under "some" Unicode encoding,
transparently wrapping UTF-8 / 16 / 32 sequences without extra copies.
Functions between these strings dispatch to the right overload, in a
manner that is totally invisible for the user. Similarly, the high level
API works in terms of code points, not units.
Only if one wants to get the hands dirty then one can query and extract
the actual encoded data.
My 2 c,
Giuseppe D'Angelo | giuseppe.dangelo at 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 - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4329 bytes
Desc: S/MIME Cryptographic Signature
More information about the Development