llvm::ConvertUTF16toUTF32

Convert a UTF-16 sequence to UTF-32.

Synopsis

Declared in <llvm/Support/ConvertUTF.h>

ConversionResult
ConvertUTF16toUTF32(
    UTF16 const** sourceStart,
    UTF16 const* sourceEnd,
    UTF32** targetStart,
    UTF32* targetEnd,
    ConversionFlags flags);

Return Value

A ConversionResult indicating success or the failure reason.

Parameters

NameDescription
sourceStart [inout]Pointer to the start of the UTF-16 source; updated past the last converted code unit on return.
sourceEndPointer just past the end of the source buffer.
targetStart [inout]Pointer to the start of the UTF-32 target; updated past the last written code unit on return.
targetEndPointer just past the end of the target buffer.
flagsWhether conversion is strict or lenient.