winapi_utf8
|
UTF-8 <-> UTF-16 conversion functions. More...
Go to the source code of this file.
Functions | |
std::wstring | winapi::widen (const std::string &) |
std::wstring | winapi::widen (const void *src, std::size_t nb) |
template<typename T , typename Alloc = std::allocator<T>> | |
std::wstring | winapi::widen (const std::vector< T, Alloc > &src) |
std::string | winapi::narrow (const std::wstring &) |
std::string | winapi::narrow (const std::u16string &) |
std::string | winapi::narrow (const void *src, std::size_t nb) |
template<typename T , typename Alloc = std::allocator<T>> | |
std::string | winapi::narrow (const std::vector< T, Alloc > &src) |
UTF-8 <-> UTF-16 conversion functions.
Definition in file utf8.hpp.
std::wstring winapi::widen | ( | const std::string & | src | ) |
Convert UTF-8 string to UTF-16.
Definition at line 99 of file convert.cpp.
std::wstring winapi::widen | ( | const void * | src, |
std::size_t | nb | ||
) |
Convert UTF-8 string to UTF-16.
src | Memory address of a UTF-8 string. |
nb | String size (in bytes). |
Definition at line 103 of file convert.cpp.
std::wstring winapi::widen | ( | const std::vector< T, Alloc > & | src | ) |
std::string winapi::narrow | ( | const std::wstring & | src | ) |
Convert UTF-16 string to UTF-8.
Definition at line 128 of file convert.cpp.
std::string winapi::narrow | ( | const std::u16string & | src | ) |
Convert UTF-16 string to UTF-8.
Definition at line 133 of file convert.cpp.
std::string winapi::narrow | ( | const void * | src, |
std::size_t | nb | ||
) |
Convert UTF-16 string to UTF-8.
src | Memory address of a UTF-16 string. |
nb | String size (in bytes). |
Definition at line 137 of file convert.cpp.