News for hackers. Stuff that matters.
Re:A popular but wrong way to convert a string to uppercase ... by gpderetta on Wednesday October 09, 2024 @08:52AM (#41787387)
std::u8string, std::u16string and std::u32string are supposed to be the portable unicode string types, but a lot of machinery is missing and some that has been added has since been deprecated.

> there's no way to implement such a module without being very opinionated about something.

indeed! Boost.Nowide[1] is such an opinionated library.

[1] https://www.boost.org/doc/libs/master/libs/nowide/doc/html/i...

Re:A popular but wrong way to convert a string to uppercase ... by squeaky-clean on Wednesday October 09, 2024 @09:04AM (#41787509)
Yep, there's also ICU and utf8cpp, and many others. They all have trade-offs. So I just don't think the stdlib should cover this because there is no objectively best way to handle it.