clang 24.0.0git
clang::TextEncoding Class Reference

#include "clang/Lex/TextEncoding.h"

Public Member Functions

llvm::TextEncodingConverter * getConverter (ConversionAction Action) const
llvm::TextEncodingConverter * getFromLiteralEncodingConverter () const
 Returns the converter from the literal encoding (-fexec-charset) to UTF-8, or nullptr if the literal encoding is UTF-8.
llvm::TextEncodingConverter * getzOSFromAsmLiteralEncodingConverter () const
 Returns the converter from IBM-1047 to UTF-8, or nullptr if not on z/OS.
llvm::StringRef getLiteralEncoding ()

Static Public Member Functions

static std::error_code setConvertersFromOptions (TextEncoding &TE, const clang::LangOptions &Opts, TargetInfo &TInfo)

Detailed Description

Definition at line 28 of file TextEncoding.h.

Member Function Documentation

◆ getConverter()

llvm::TextEncodingConverter * TextEncoding::getConverter ( ConversionAction Action) const

◆ getFromLiteralEncodingConverter()

llvm::TextEncodingConverter * clang::TextEncoding::getFromLiteralEncodingConverter ( ) const
inline

Returns the converter from the literal encoding (-fexec-charset) to UTF-8, or nullptr if the literal encoding is UTF-8.

Definition at line 45 of file TextEncoding.h.

◆ getLiteralEncoding()

llvm::StringRef clang::TextEncoding::getLiteralEncoding ( )
inline

Definition at line 58 of file TextEncoding.h.

◆ getzOSFromAsmLiteralEncodingConverter()

llvm::TextEncodingConverter * clang::TextEncoding::getzOSFromAsmLiteralEncodingConverter ( ) const
inline

Returns the converter from IBM-1047 to UTF-8, or nullptr if not on z/OS.

Definition at line 50 of file TextEncoding.h.

◆ setConvertersFromOptions()

std::error_code TextEncoding::setConvertersFromOptions ( TextEncoding & TE,
const clang::LangOptions & Opts,
clang::TargetInfo & TInfo )
static

The documentation for this class was generated from the following files: