Load into result the UTF-8 conversion of the null-terminated UCS-2 srcString.
Declared in <bdlde_charconvertucs2.h>
static
int
ucs2ToUtf8(
std::string* result,
unsigned short const* srcString,
std::size_t* numCharsWritten = 0);
Return 0 on success and a non-zero status otherwise. See the bsl::string overload of ucs2ToUtf8 for full contract details.
0 on success and a non-zero status otherwise
| Name | Description |
|---|---|
| result | output string for the UTF-8 conversion |
| srcString | null-terminated UCS-2 input |
| numCharsWritten | if non-null, receives character count written |