29 std::wstring G::Convert::widen(
const std::string & s ,
bool utf8 ,
const std::string & context )
32 for( std::string::const_iterator p = s.begin() ; p != s.end() ; ++p )
33 result.append( 1U , static_cast<wchar_t>(*p) ) ;
37 std::string G::Convert::narrow(
const std::wstring & s ,
bool utf8 ,
const std::string & context )
40 for( std::wstring::const_iterator p = s.begin() ; p != s.end() ; ++p )
41 result.append( 1U , static_cast<char>(*p) ) ;