[SG16-Unicode] [ #embed_str ] Unicode Input
JeanHeyd Meneide
phdofthehouse at gmail.com
Wed Nov 6 21:12:40 CET 2019
Dear SG16,
I presented #embed_str to EWG. They said I need to take a trip through
SG16.
The semantics of #embed_str are that the contents of the file are
loaded up as individual entries in a regular string literal. For example,
if the contents of a file were
foo
Then the array that backs the string literal would be loaded as
[f | o | o | \0]
[0 | 1 | 2 | 3]
A better name for it might be #embed_null_terminated`. I don't think
this has much to do with Unicode at the end of the day, because it deals
with code units. There would be no embed_u8str or embed_u16str or
embed_u32str, because there's no guarantee the contents of the file would
be valid UTFX and I am not about to get into the mess that is "source
resource encoding" and "compile-time resource encoding" conversions.
If #embed_str is too suggestive of text, I will be more than happy to
put an axe through it. Do let me know how to proceed.
Sincerely,
JeanHeyd Meneide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open-std.org/pipermail/unicode/attachments/20191106/2a2954d8/attachment.html
More information about the Unicode
mailing list