C++ Logo

sg16

Advanced search

Re: utfN_view

From: Zach Laine <whatwasthataddress_at_[hidden]>
Date: Thu, 4 May 2023 22:37:44 -0500
On Thu, May 4, 2023 at 11:36 AM Zach Laine <whatwasthataddress_at_[hidden]> wrote:
>
> On Thu, May 4, 2023 at 1:20 AM Jens Maurer <jens.maurer_at_[hidden]> wrote:
> >
> >
> > On 04/05/2023 03.58, Zach Laine via SG16 wrote:
> > >> I don't think the operator<< above works as a general-purpose method regardless. What does it do when CharT is wchar_t?
> > >
> > > It transcodes to UTF-16, of course.
> >
> > I hope not. On my box, wchar_t is not UTF-16, it's UTF-32.
>
> Right. I should have said, "it transcodes to UTF-N, of course, where N
> is the number of bits_of<wchar_t>(), of course". On all the big 3,
> that means UTF-16 or UTF-32.


Ok, new revision is available: https://isocpp.org/files/papers/D2728R2.html

I still have not done the change to the concepts, and introduced the
associated adaptor thingy. This breaks literally all of my Boost.Text
test code, so it may take a while. I will do it, but might not finish
by Wednesday.

Zach

Received on 2023-05-05 03:37:57