LLVM 22.0.0git
TextEncoding.cpp File Reference

This file provides utility classes to convert between different character encodings. More...

#include "llvm/Support/TextEncoding.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/ConvertEBCDIC.h"
#include <system_error>

Go to the source code of this file.

Functions

static void normalizeCharSetName (StringRef CSName, SmallVectorImpl< char > &Normalized)
static std::optional< TextEncodinggetKnownEncoding (StringRef Name)
static LLVM_ATTRIBUTE_UNUSED void HandleOverflow (size_t &Capacity, char *&Output, size_t &OutputLength, SmallVectorImpl< char > &Result)

Detailed Description

This file provides utility classes to convert between different character encodings.

Definition in file TextEncoding.cpp.

Function Documentation

◆ getKnownEncoding()

std::optional< TextEncoding > getKnownEncoding ( StringRef Name)
static

◆ HandleOverflow()

LLVM_ATTRIBUTE_UNUSED void HandleOverflow ( size_t & Capacity,
char *& Output,
size_t & OutputLength,
SmallVectorImpl< char > & Result )
static

Definition at line 58 of file TextEncoding.cpp.

◆ normalizeCharSetName()

void normalizeCharSetName ( StringRef CSName,
SmallVectorImpl< char > & Normalized )
static