libgetopt++ and setup and libstdc++

Robert Collins robert.collins@itdomain.com.au
Wed May 1 01:58:00 GMT 2002



> -----Original Message-----
> From: Pavel Tsekov [mailto:ptsekov@syntrex.com] 
> Sent: Wednesday, May 01, 2002 6:53 PM

> Zero terminated strings (C style strings) has nothing to do with the
> basic_string template class. basic_string can contain any character
> including \0. Its much the same as the STL vector. The WCHAR here
> specifies the size of storage of a single character...
> 
> I.e. you can have typedef basic_string<struct SomeStrangeChar>
> SomeStrangeCharString;

Cool. Does it handle MBCS (as opposed to) DBCS ?
 
> RC> Finally, note that Unicde requires 21 bits of storage, so 
> a 16 bit WCHAR
> RC> will still involve multi-byte sequence.
> 
> Quote from "The C++ Programming Language":
> 
>   "A wide character - that is, an object of type wchar_t ($4.3) - is
>   like a char, except that it take up two or more  bytes."

That's cool, except wchar_t is actually 8 bit on some platforms
(shouldn't affect us, we're going off topic here :})

> Btw I read somewhere else that Windows does not support the full
> japanese characterset, but only the most used characters.

Yeah, I recall something like that too.. hmmm..

Rob



More information about the Cygwin-apps mailing list