Converts a UTF16 string into a UTF8 std::string.

Synopsis

Declared in <llvm/Support/ConvertUTF.h>

bool
convertUTF16ToUTF8String(
    ArrayRef<UTF16> Src,
    std::string& Out);

Return Value

true on success

Parameters

Name

Description

Src [in]

A buffer of UTF‐16 encoded text.

Out [out]

Converted UTF‐8 is stored here on success.

Created with MrDocs