This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project. See the libstdc++ home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: locale/file/style questions




Well here is one answer

> 
> codecvt_type __cvt = use_facet<codecvt_type>(this->getloc()).unshift(__st, _IO_out_cur, _IO_out_end, __last); 

typedef typename _Traits::state_type		state_type;
typedef codecvt<_CharT, char, state_type> 		codecvt_type;

codecvt_base::result __r =
use_facet<codecvt_type>(this->getloc()).unshift(__st, _M_out_cur,_M_out_end, __last); 
		
if (__r == codecvt_base::ok)
//tralaa