Pyrogenesis
trunk
|
Go to the source code of this file.
Namespaces | |
ERR | |
Introduction | |
Functions | |
LIB_API 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). More... | |
LIB_API std::string | utf8_from_wstring (const std::wstring &s, Status *err=0) |
opposite of wstring_from_utf8 More... | |
Variables | |
const Status | ERR::UTF8_SURROGATE = -100700 |
const Status | ERR::UTF8_OUTSIDE_BMP = -100701 |
const Status | ERR::UTF8_NONCHARACTER = -100702 |
const Status | ERR::UTF8_INVALID_UTF8 = -100703 |
LIB_API std::string utf8_from_wstring | ( | const std::wstring & | s, |
Status * | err = 0 |
||
) |
opposite of wstring_from_utf8
LIB_API 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).
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. |