Load into result the UCS-2 conversion of the null-terminated UTF-8 srcString.
Declared in <bdlde_charconvertucs2.h>
static
int
utf8ToUcs2(
std::vector<unsigned short>* result,
char const* srcString,
unsigned short errorCharacter = '?');
Return 0 on success and a non-zero status otherwise. See the bsl::vector overload of utf8ToUcs2 for full contract details.
0 on success and a non-zero status otherwise
| Name | Description |
|---|---|
| result | output vector for the UCS-2 conversion |
| srcString | null-terminated UTF-8 input |
| errorCharacter | substitute for invalid input; 0 skips them |