<div dir="auto">I would like to standardise the encoding and decoding interfaces, however, as long as the implementation is open to extension, I would be content to only require the UTF forms, and what char and wchar_t encodings are supported by default, for example just the &quot;C&quot; locale. <div dir="auto">More concrete proposal underway. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 30, 2019, 17:24 Tony V E &lt;<a href="mailto:tvaneerd@gmail.com">tvaneerd@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do we want to standardize anything besides unicode?<br>
<br>
IMO, no. In fact, I&#39;d only standardize UTF8.<br>
<br>
<br>
Sent from my BlackBerry portable Babbage Device<br>
  Original Message  <br>
From: Lyberta<br>
Sent: Saturday, March 30, 2019 5:12 PM<br>
To: <a href="mailto:unicode@open-std.org" target="_blank" rel="noreferrer">unicode@open-std.org</a><br>
Subject: [SG16-Unicode] Namespaces<br>
<br>
Ranges has made a precedent that we can provide better versions of old<br>
functions by putting them into a separate namespace. It is general<br>
consensus that almost all current text related function are obsolete. We<br>
should consider a namespace for new ones.<br>
<br>
I think std::text fits this. This namespace would contain functions that<br>
are modern and can properly support Unicode (and other encodings!).<br>
<br>
There is also a precedent of my proposal and D1628 having separate<br>
namespace specifically for Unicode. Generally speaking, Unicode is a<br>
subset of text processing so in mathematical sense it would be obvious<br>
to put unicode namespace as std::text::unicode but here I agree that it<br>
is too much typing.<br>
<br>
So I propose the following:<br>
<br>
std::text for general purpose text algorithms (to be determined as we<br>
haven&#39;t even nailed the Unicode yet, but consider std::text::to_upper,<br>
std::text::is_alphanumeric).<br>
std::unicode for Unicode classes and algorithms. Everything in std::text<br>
should be able to work with classes from std::unicode.<br>
<br>
Then we can add more encodings under std or maybe right into std::text<br>
if they are too simple.<br>
<br>
Theoretical examples:<br>
<br>
std::ascii<br>
std::ebcdic<br>
std::shift_jis<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>