Beispiel #1
0
 BOOST_PROGRAM_OPTIONS_DECL std::wstring
 from_local_8_bit(const std::string& s)
 {
     typedef codecvt<wchar_t, char, mbstate_t> facet_type;
     return from_8_bit(s, 
                       BOOST_USE_FACET(facet_type, locale()));
 }
Beispiel #2
0
 BOOST_PROGRAM_OPTIONS_DECL std::wstring
 from_utf8(const std::string& s)
 {
     return from_8_bit(s, utf8_facet);
 }
Beispiel #3
0
 std::wstring
 from_utf8(const std::string& s)
 {
     return from_8_bit(s, utf8_facet);
 }