llvm::ConverterEBCDIC::convertToEBCDIC

Converts a UTF-8 string to EBCDIC-1047.

Synopsis

Declared in <llvm/Support/ConvertEBCDIC.h>

std::error_code
convertToEBCDIC(
    StringRef Source,
    SmallVectorImpl<char>& Result);

Return Value

An error code if Source contains an illegal or truncated UTF-8 sequence; a default-constructed error code on success.

Parameters

NameDescription
SourceUTF-8 input text to convert.
ResultEmpty buffer that receives the EBCDIC-1047 output.