From: Ronald Garcia (garcia_at_[hidden])
Date: 2002-08-07 09:53:56
Yitzhak Sapir wrote:
>I had seen some conversion facets in the boost files area. What are those?
>Also, it's my understanding (after having written my own Unicode conversion facet) that there is no way to portably write conversion facets, although it's possible to get close. I had written about this in comp.lang.c++.moderated: http://groups.google.com/groups?selm=23be9fc5.0202270746.436ac5b9%40posting.google.com&output=gplain I really hope these issues are solved somehow. It would be wonderful to be able to write compression or encryption conversion facets.
There are two independent implementations of unicode codecvt facets in
the files section. I wrote one in order to learn about both extending
iostreams and unicode itself. Using my codecvt facet (located at:
one manipulate a UTF-8 encoded file internally as UCS-4. The facet
handles translations in both directions. In addition, there is also a
transform iterator which allows you to view a buffer of utf-8 encoded
data as though it were ucs-4 encoded.
There is also another codecvt facet (codecvt.zip) which I believe
handles a superset of the above facet, but I only looked at it briefly a
while ago and I don't think it had documentation.
I haven't looked at this material in a while, so my memory might be inexact.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk