Return the number of bytes required to store the UTF‐8 translation of the specified UTF‐16 srcBuffer, including the terminating null.

Synopsis

Declared in <bdlde_charconvertutf16.h>

static
std::size_t
computeRequiredUtf8Bytes(
    wchar_t const* srcBuffer,
    wchar_t const* endPtr = 0,
    ByteOrder::Enum byteOrder = ByteOrder::e_HOST);

Created with MrDocs