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

◆ wstringToString()

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

Converts a wide string to a narrow string.

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