- conversions between native and unicode encodings - 1 Update
- Understanding invalid user input - 1 Update
| "Alf P. Steinbach" <alf.p.steinbach@gmail.com>: Nov 21 03:27PM +0100 On 20 Nov 2021 21:43, James Kuyper wrote: > Is it correct that the <cuchar> routines are the only way to perform > such conversions? It seems odd to me that the only way to perform such > conversions uses a C style interface. The std::codecvt stuff is probably/maybe what you're looking for. For conversion UTF-8 -> UTF-16 MSVC and MinGW g++ yield different results wrt. endianess, and wrt. to state after conversion failure. When you have to compensate for compiler differences in order to get portable code that uses standard library stuff, for the same platform, then you know it's really BAD. The UTF-8 specializations were deprecated in C++17, and one would naturally think it was in order to replace with something better, not suffering from all that badness, in e.g. C++20. But no, the idiots (pardon the expression) only wanted to introduce overloads with `char8_t` instead of `char`, that's what c++20 offered. I havent' tested, because I refuse to "upgrade" to C++20. But I presume these academic overloads suffer from all the badness of the old. - Alf |
| Manfred <noname@add.invalid>: Nov 21 04:51AM +0100 On 11/20/2021 11:11 PM, Jorgen Grahn wrote: >>> added namespaces into C++ programming language . >> I suppose that explains a lot. > I don't know: I don't see lots of people read his books[1]. I don't know how many read his books, I have met several who, unlike me, question his programming style, though. > /Jorgen > [1] Except me. I like his writing and I think I'm heavily influenced > by his style, which I find blends well with Unix styles. I like it too, TC++PL has the occasional mistake here and there, but all in all there's no question it's a pretty good book, I believe. |
| You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment