This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]