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 | [email protected] | 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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to