Converts a UTF-8 string to EBCDIC-1047.
Declared in <llvm/Support/ConvertEBCDIC.h>
std::error_code
convertToEBCDIC(
StringRef Source,
SmallVectorImpl<char>& Result);
An error code if Source contains an illegal or truncated UTF-8 sequence; a default-constructed error code on success.
| Name | Description |
|---|---|
| Source | UTF-8 input text to convert. |
| Result | Empty buffer that receives the EBCDIC-1047 output. |