ADTF  3.18.3
unicode.h
Go to the documentation of this file.
1 
15 #ifndef A_UTIL_UTIL_STRINGS_UNICODE_INCLUDED
16 #define A_UTIL_UTIL_STRINGS_UNICODE_INCLUDED
17 
18 #include <string>
19 
20 namespace a_util {
21 namespace strings {
22 namespace unicode {
29 std::wstring utf8ToUtf16(const std::string& utf8_str);
30 
37 std::string utf16ToUtf8(const std::wstring& utf16_str);
38 
39 } // namespace unicode
40 } // namespace strings
41 } // namespace a_util
42 
43 #endif // A_UTIL_UTIL_STRINGS_UNICODE_INCLUDED
std::wstring utf8ToUtf16(const std::string &utf8_str)
Convert an utf8 string to utf16 wstring.
std::string utf16ToUtf8(const std::wstring &utf16_str)
Convert an utf16 wstring to utf8 string.
Serves as the root component, with common functionality documented in core functionality.
Definition: base.h:24