ΒΆbool convertUTF16ToUTF8String(
    ArrayRef<char> SrcBytes,
    std::string& Out)

Description

Converts a stream of raw bytes assumed to be UTF16 into a UTF8 std::string.

Declared at: llvm/include/llvm/Support/ConvertUTF.h:278

Parameters

ArrayRef<char> SrcBytes
A buffer of what is assumed to be UTF-16 encoded text.
std::string& Out
Converted UTF-8 is stored here on success.

Returns

true on success