This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
RE: Re[2]: libgetopt++ and setup and libstdc++
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- To: "Pavel Tsekov" <ptsekov at syntrex dot com>
- Cc: "Gary R. Van Sickle" <g dot r dot vansickle at worldnet dot att dot net>,"Cygwin-Apps" <cygwin-apps at cygwin dot com>
- Date: Wed, 1 May 2002 18:58:32 +1000
- Subject: RE: Re[2]: libgetopt++ and setup and libstdc++
> -----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