Convert a partial UTF8 sequence to UTF32. If the sequence ends in an incomplete code unit sequence, returns sourceExhausted.
Declared in <llvm/Support/ConvertUTF.h>
ConversionResult
ConvertUTF8toUTF32Partial(
UTF8 const** sourceStart,
UTF8 const* sourceEnd,
UTF32** targetStart,
UTF32* targetEnd,
ConversionFlags flags);
A ConversionResult indicating success or the failure reason.
| Name | Description |
|---|---|
| sourceStart [inout] | Pointer to the start of the UTF-8 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-32 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. |