|
Boost : |
From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-01-07 01:06:24
Jonathan Turkanis wrote:
> template<typename WideStr>
> basic_string<typename Codecvt::extern_type>
actually the return type here is always std::string, since there is no Codecvt
parameter
> narrow(const WideStr& str)
> {
> string_converter<> cvt;
> return cvt::narrow(str);
> }
>
> template<typename NarrowStr>
> basic_string<typename Codecvt::intern_type>
and here it's always std::wstring.
> widen(const NarrowStr& str)
> {
> string_converter<> cvt;
> return cvt::widen(str);
> }
Jonathan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk