Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ stringToWstring()

std::wstring Ice::stringToWstring ( const std::string & str,
const StringConverterPtr & nc = nullptr,
const WstringConverterPtr & wc = nullptr )

Converts the given narrow string to a wide string.

Parameters
strA narrow string.
ncThe narrow string converter. If null, the result's narrow string encoding is UTF-8.
wcThe wide string converter. If null, the input's wstring encoding is UTF-16 or UTF-32 depending on the size of wchar_t.
Returns
A wide string.