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 a narrow string to a wide string.

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