[SG16-Unicode] code_unit_sequence

Lyberta lyberta at lyberta.net
Tue Jul 16 17:55:00 CEST 2019


This is an early sketch of proposal for std::code_unit_sequence which is
intended to directly replace std::u8string, std::u16string and
std::u32string.

It is based on std::vector so I removed most of useless member functions
that std::basic_string has. The API is much cleaner.

It uses strong types that I mentioned earlier. Those are classes and
since they don't exist in C, there is no NUL-terminator. Finally, owning
string and view are unified.

As I plan to write many more proposals, I'm gonna create a single
repository for them soon.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: code_unit_sequence.md
Type: text/markdown
Size: 5230 bytes
Desc: not available
Url : http://www.open-std.org/pipermail/unicode/attachments/20190716/39b311ef/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://www.open-std.org/pipermail/unicode/attachments/20190716/39b311ef/attachment-0001.bin 


More information about the Unicode mailing list