Boost logo

Boost :

From: George M. Garner Jr. (gmgarner_at_[hidden])
Date: 2004-09-11 19:30:51


Johnathan,

> The problem is really that I haven't finished writing the components that
> make
> this easy. For this, I apologize. (See User's Guide-->Code Conversion.)
>

Looking at the documentation for Code Conversion I do not see any way to
convert from Unicode to multibyte. The converter class only works one way
from multibyte to Unicode. I suppose this falls within the category of
"not-yet-implemented."

I would like to see converter_impl accept codecvt_type as a template
argument perhaps with a default of std::codecvt but so that I can replace
it. const codecvt_type& cvt = codecvt_type() also would be added to the
converter constructor. Regex works this way.

The other common code conversion task that is fairly Windows specific but a
common task nonetheless is to convert \r\n to and from \n in text streams.

Regards,

George.


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