ΒΆinline llvm::ConversionResult convertUTF8Sequence(
const llvm::UTF8** source,
const llvm::UTF8* sourceEnd,
llvm::UTF32* target,
llvm::ConversionFlags flags)
inline llvm::ConversionResult convertUTF8Sequence(
const llvm::UTF8** source,
const llvm::UTF8* sourceEnd,
llvm::UTF32* target,
llvm::ConversionFlags flags)
Description
Convert the first UTF8 sequence in the given source buffer to a UTF32 code point.
Declared at: llvm/include/llvm/Support/ConvertUTF.h:245
Parameters
- const llvm::UTF8** source
- A pointer to the source buffer. If the conversion succeeds, this pointer will be updated to point to the byte just past the end of the converted sequence.
- const llvm::UTF8* sourceEnd
- A pointer just past the end of the source buffer.
- llvm::UTF32* target
- The converted code
- llvm::ConversionFlags flags
- Whether the conversion is strict or lenient.
Returns
conversionOK on success