LLVM 22.0.0git
Functions
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()

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

◆ HandleOverflow()

static 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()

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

Definition at line 32 of file TextEncoding.cpp.

References isDigit(), and llvm::SmallVectorTemplateBase< T, bool >::push_back().

Referenced by getKnownEncoding().