#include <string>
Go to the source code of this file.
◆ utf8_from_wstring()
std::string utf8_from_wstring |
( |
const std::wstring & |
s, |
|
|
Status * |
err = 0 |
|
) |
| |
opposite of wstring_from_utf8
◆ wstring_from_utf8()
std::wstring wstring_from_utf8 |
( |
const std::string & |
s, |
|
|
Status * |
err = 0 |
|
) |
| |
convert UTF-8 to a wide string (UTF-16 or UCS-4, depending on the platform's wchar_t).
- Parameters
-
s | input string (UTF-8) |
err | if nonzero, this receives the first error encountered (the rest may be subsequent faults) or INFO::OK if all went well. otherwise, the function raises a warning dialog for every error/warning. |