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

Parameters
strA wide 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 narrow string.