![]() |
VSM C++ SDK
Vehicle Specific Modules SDK
|
Helper class for constructing Windows API compatible wchar strings from UTF-8 strings. More...
#include <windows_wstring.h>
Public Member Functions | |
VSM_DEFINE_EXCEPTION (Conversion_failure) | |
Indicate a problem with data encoding/decoding/conversion. More... | |
Windows_wstring (const std::string &) | |
Construct from UTF-8 string. More... | |
LPCWSTR | Get () const |
Get Windows wide char string. More... | |
operator LPCWSTR () const | |
Type cast operator for convenience. More... | |
Static Public Attributes | |
static constexpr size_t | MAX_WLEN = 8 * 1024 |
Maximum size of Windows wide char string. More... | |
Helper class for constructing Windows API compatible wchar strings from UTF-8 strings.
ugcs::vsm::Windows_wstring::Windows_wstring | ( | const std::string & | ) |
Construct from UTF-8 string.
Conversion_failure | in case of conversion error. |
LPCWSTR ugcs::vsm::Windows_wstring::Get | ( | ) | const |
Get Windows wide char string.
ugcs::vsm::Windows_wstring::operator LPCWSTR | ( | ) | const |
Type cast operator for convenience.
ugcs::vsm::Windows_wstring::VSM_DEFINE_EXCEPTION | ( | Conversion_failure | ) |
Indicate a problem with data encoding/decoding/conversion.
|
static |
Maximum size of Windows wide char string.