<div dir="auto"><div dir="auto">> <span style="font-family:sans-serif">if you truly want to work with text, you usually need to </span><span style="font-family:sans-serif">work on the layer above code points - grapheme clusters.</span></div><div dir="auto"><br></div><div>What makes interactive selection (which uses GCs) more "true" than rendering or collation (to give two examples of work with text that use other kinds of code point sequences)?</div><div dir="auto">Perhaps we could use a list of uses.</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr">On Tue, Jun 19, 2018, 4:19 PM Lyberta <<a href="mailto:lyberta@lyberta.net">lyberta@lyberta.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a href="mailto:keld@keldix.com" target="_blank" rel="noreferrer">keld@keldix.com</a>:<br>
> Is your code point advisory the same as codepoints in 10646/Unicode, also<br>
> called characters in 10646?<br>
<br>
Yes. A code point is unsigned 32 bit integer with the values in the<br>
range of 0-10FFFF. Modern C and C++ have type char32_t which is most<br>
suitable for holding code points.<br>
<br>
> And why not just treat these as 32-bit wchar-t?<br>
> I believe this is what we do in C.<br>
<br>
Because wide execution character set is implementation defined. So far<br>
nobody has expressed opinion of changing that and Windows violates the<br>
standard by having 16 bit wchar_t.<br>
<br>
> Then you can have functions converting to and from wchar-t.<br>
<br>
Yes, except if you convert text to UTF-32 before processing it, you will<br>
waste memory and a lot of interfaces still expect char*. More<br>
importantly, if you truly want to work with text, you usually need to<br>
work on the layer above code points - grapheme clusters.<br>
<br>
_______________________________________________<br>
SG16 Unicode mailing list<br>
<a href="mailto:Unicode@isocpp.open-std.org" target="_blank" rel="noreferrer">Unicode@isocpp.open-std.org</a><br>
<a href="http://www.open-std.org/mailman/listinfo/unicode" rel="noreferrer noreferrer" target="_blank">http://www.open-std.org/mailman/listinfo/unicode</a><br>
</blockquote></div></div></div>