BloombergLP::bdlde::CharConvertUtf16::computeRequiredUtf8Bytes

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(
    char16_t const* srcBuffer,
    char16_t const* endPtr = 0,
    ByteOrder::Enum byteOrder = ByteOrder::e_HOST);