Load into the destination the UTF‐8 conversion of the UTF‐16 source. Return 0 on success and a non‐zero status otherwise. See the first utf16ToUtf8 overload in this group for full contract details.

Synopsis

Declared in <bdlde_charconvertutf16.h>

static
int
utf16ToUtf8(
    bsl::string* dstString,
    char16_t const* srcString,
    std::size_t* numCodePointsWritten = 0,
    char errorByte = '?',
    ByteOrder::Enum byteOrder = ByteOrder::e_HOST);

Created with MrDocs