Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-09-26 00:04:33


On Tue, 25 Sep 2001 williamkempf_at_[hidden] wrote:
willia> >
willia> > Unfortunately, the fundamental problem with any approach that uses
willia> the
willia> > standard library wide character facilities is that wchar_t isn't
willia> > guaranteed to be large enough to hold a Unicode character.

Right, it takes 21 bits to represent Unicode characters. wchar_t under
Windows is 16 bits. Under linux it is 32 bits.

willia> That's not really a problem since none of the code is restricted to
willia> only char and wchar_t types. It may mean that we need much more
willia> plumbing for a Boost.Unicode library, but the standard library
willia> facilities for doing this should still be where one starts here.

Yes, one would need to do some work to make the streams stuff
work with some 32 bit type.

Cheers,
Jeremy

----------------------------------------------------------------------
 Jeremy Siek http://php.indiana.edu/~jsiek/
 Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
 C++ Booster (http://www.boost.org) office phone: (812) 855-9761
----------------------------------------------------------------------


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk