Load into the destination the UTF‐16 conversion of the UTF‐8 source. Return 0 on success and a non‐zero status otherwise. See the overload taking bsl::wstring for full contract details.
Synopsis
Declared in <bdlde_charconvertutf16.h>
static
int
utf8ToUtf16(
char16_t* dstBuffer,
std::size_t dstCapacity,
char const* srcString,
std::size_t* numCodePointsWritten = 0,
std::size_t* numWordsWritten = 0,
char16_t errorChar = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
Created with MrDocs