Load into result the UCS‐2 conversion of the null‐terminated UTF‐8 srcString. Return 0 on success and a non‐zero status otherwise.

Synopsis

Declared in <bdlde_charconvertucs2.h>

static
int
utf8ToUcs2(
    bsl::vector<unsigned short>* result,
    char const* srcString,
    unsigned short errorCharacter = '?');

Created with MrDocs