C++ Logo

std-proposals

Advanced search

Re: [std-proposals] constexpr tolower, toupper, isalpha

From: Thiago Macieira <thiago_at_[hidden]>
Date: Wed, 09 Jul 2025 06:12:52 -0700
On Tuesday, 8 July 2025 20:33:26 Pacific Daylight Time Jason McKesson via Std-
Proposals wrote:
> So what else from Unicode should C++ not support because ICU supports
> it? Should we just not have UTF encoding conversions? No normalization
> rules? How much of Unicode should C++ not support because ICU does?
>
> C++ should support Unicode, and part of that support should be support
> for case folding, and part of Unicode case folding includes simple
> case folding. Considering that what we're talking about involves no
> locale messiness and no language-specific rules, I don't see why C++
> Unicode support would exclude it.

That's a good point and I don't know for sure where to draw the line. The C++
Standard needs some Unicode support and therefore it will need to import some
of the operations that ICU has, and may opt to add a few more that are useful
to a large number of people. But I also don't think it should simply try to be
another ICU, even just the Unicode support.

Further, whatever it does must be a good and complete API. Either do it right,
or don't do it at all. A half-assed implementation is a disservice.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel Platform & System Engineering

Received on 2025-07-09 13:12:57