29 std::cout <<
"From UTF16 wchar_t to UTF8 char: "
33 std::wcout << L
"From UTF8 char to UTF16 wchar_t: "
37 std::cout <<
"From UTF16 wchar_t* to UTF8 std::string: ["
41 std::wcout << L
"From UTF8 char* to UTF16 std::wstring: ["
44 std::string utf8str(
"I don't know");
47 std::wcout << L
"From UTF8 std::string to UTF16 std::wstring ["
50 std::wstring utf16str(L
"UTF16 string");
53 std::cout <<
"From UTF16 std::wstring to UTF8 std::string ["
71 stream << L
"김창희" <<
" 사랑해요... " << true ;
77 stream <<
" - types: "<< typelist_t{} <<
nl;
91 stream << std::string(
"김창희");
93 stream << std::wstring(L
" 뭔데요?") <<
nl;
106 std::vector<int> v{1, 2, 3, 4, 5};
108 stream << v <<
" - 사랑해요, 김창희..." <<
nl;
void test_container_output()
void examples_string_conversion()
String encoding conversion examples.
void test_string_output()
void load_default_locale(bool ShowLocaleName=false)
Load system default locale for string conversion.
std::wstring utf8_to_utf16(const std::string &utf8str)
Converts UTF8 std::string to UTF16 std::wstring.
std::string utf16_to_utf8(const std::wstring &utf16str)
Converts UTF16 std::wstring to UTF8 std::string.
String conversions are implemented.
This type is used to manipulate type list.
String conversions are implemented.
Stream output operators << are implemented.