Skip to content

add u8 variants #61

@rurban

Description

@rurban

C18 thought about adding the char8_t type, to match the new u8 string prefix: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2231.htm
They only wanted to add some converters mbrtoc8, c8rtomb, no other functions for char8_t, instead of the ASCII str and widechar wcs variants.

80% use UTF-8, not widechar. wcs only makes sense on windows, everywhere else u8 won.

Think of adding u8 variants for all functions (disabled by default).
look at julia's utf8lib and utf8.h (which is not as good).

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions