Convert a UTF‐32 sequence to UTF‐8.

Synopsis

Declared in <llvm/Support/ConvertUTF.h>

ConversionResult
ConvertUTF32toUTF8(
    UTF32 const** sourceStart,
    UTF32 const* sourceEnd,
    UTF8** targetStart,
    UTF8* targetEnd,
    ConversionFlags flags);

Return Value

A ConversionResult indicating success or the failure reason.

Parameters

Name

Description

sourceStart [inout]

Pointer to the start of the UTF‐32 source; updated past the last converted code unit on return.

sourceEnd

Pointer just past the end of the source buffer.

targetStart [inout]

Pointer to the start of the UTF‐8 target; updated past the last written code unit on return.

targetEnd

Pointer just past the end of the target buffer.

flags

Whether conversion is strict or lenient.

Created with MrDocs