BloombergLP::bdlde::CharConvertUtf32::utf32ToUtf8

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

Synopsis

Declared in <bdlde_charconvertutf32.h>

static
int
utf32ToUtf8(
    bsl::vector<char>* dstVector,
    unsigned int const* srcString,
    std::size_t srcStringLength,
    std::size_t* numCodePointsWritten = 0,
    unsigned char errorByte = '?',
    ByteOrder::Enum byteOrder = ByteOrder::e_HOST);