BloombergLP::bdlde::CharConvertUtf32::utf8ToUtf32

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

Synopsis

Declared in <bdlde_charconvertutf32.h>

static
int
utf8ToUtf32(
    unsigned int* dstBuffer,
    std::size_t dstCapacity,
    std::string_view const& srcString,
    std::size_t* numCodePointsWritten = 0,
    unsigned int errorWord = '?',
    ByteOrder::Enum byteOrder = ByteOrder::e_HOST);