예제 #1
0
 BOOST_PROGRAM_OPTIONS_DECL std::string
 to_local_8_bit(const std::wstring& s)
 {
     typedef codecvt<wchar_t, char, mbstate_t> facet_type;
     return to_8_bit(s, 
                     BOOST_USE_FACET(facet_type, locale()));                        
 }
예제 #2
0
 BOOST_PROGRAM_OPTIONS_DECL std::string
 to_utf8(const std::wstring& s)
 {
     return to_8_bit(s, utf8_facet);
 }
예제 #3
0
 
 std::string
 to_utf8(const std::wstring& s)
 {
     return to_8_bit(s, utf8_facet);
 }