Boost logo

Boost :

From: Zach Laine (whatwasthataddress_at_[hidden])
Date: 2024-02-24 01:05:38


On Fri, Feb 23, 2024 at 2:10 AM Daniela Engert via Boost
<boost_at_[hidden]> wrote:
>
> Am 23.02.2024 um 05:15 schrieb Arno Schoedl via Boost:
> > That sounds good.
> >
> > In our codebase (and many others?), for interoperability with APIs, char is used for UTF-8 and wchar_t for UTF-16 (on Windows).
>
> I think this is a practical choice and works well. We do the same, with
> the additional advantage of targeting Windows only. So *everything* is
> Unicode (with respective code units), and in the subset of the 7-bit
> 'char' range where ASCII and Unicode code points match value-wise, the
> distinction doesn't really matter and everything is easy and agnostic of
> encoding.

I agree with this 100%.

Zach


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk