locale/file/style questions

Benjamin Kosnik bkoz@cygnus.com
Fri Dec 18 16:08:00 GMT 1998


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	




More information about the Libstdc++ mailing list