LLVM 20.0.0git
Classes | Namespaces | Typedefs | Functions | Variables
UnicodeNameToCodepoint.cpp File Reference
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Unicode.h"

Go to the source code of this file.

Classes

struct  llvm::sys::unicode::Node
 
struct  llvm::sys::unicode::GeneratedNamesData
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::sys
 
namespace  llvm::sys::unicode
 

Typedefs

using llvm::sys::unicode::BufferType = SmallString< 64 >
 

Functions

static Node llvm::sys::unicode::createRoot ()
 
static Node llvm::sys::unicode::readNode (uint32_t Offset, const Node *Parent=nullptr)
 
static bool llvm::sys::unicode::startsWith (StringRef Name, StringRef Needle, bool Strict, std::size_t &Consummed, char &PreviousCharInName, bool IsPrefix=false)
 
static std::tuple< Node, bool, uint32_tllvm::sys::unicode::compareNode (uint32_t Offset, StringRef Name, bool Strict, char PreviousCharInName, BufferType &Buffer, const Node *Parent=nullptr)
 
static std::tuple< Node, bool, uint32_tllvm::sys::unicode::compareNode (uint32_t Offset, StringRef Name, bool Strict, BufferType &Buffer)
 
static std::size_t llvm::sys::unicode::findSyllable (StringRef Name, bool Strict, char &PreviousInName, int &Pos, int Column)
 
static std::optional< char32_t > llvm::sys::unicode::nameToHangulCodePoint (StringRef Name, bool Strict, BufferType &Buffer)
 
static std::optional< char32_t > llvm::sys::unicode::nameToGeneratedCodePoint (StringRef Name, bool Strict, BufferType &Buffer)
 
static std::optional< char32_t > llvm::sys::unicode::nameToCodepoint (StringRef Name, bool Strict, BufferType &Buffer)
 
std::optional< char32_t > llvm::sys::unicode::nameToCodepointStrict (StringRef Name)
 Maps the name or the alias of a Unicode character to its associated codepoints.
 
std::optional< LooseMatchingResult > llvm::sys::unicode::nameToCodepointLooseMatching (StringRef Name)
 
SmallVector< MatchForCodepointName > llvm::sys::unicode::nearestMatchesForCodepointName (StringRef Pattern, std::size_t MaxMatchesCount)
 

Variables

const charllvm::sys::unicode::UnicodeNameToCodepointDict
 
const uint8_t * llvm::sys::unicode::UnicodeNameToCodepointIndex = UnicodeNameToCodepointIndex_
 
const std::size_t llvm::sys::unicode::UnicodeNameToCodepointIndexSize = 242258
 
const std::size_t llvm::sys::unicode::UnicodeNameToCodepointLargestNameSize = 74
 
constexpr const char *const llvm::sys::unicode::HangulSyllables [][3]
 
constexpr const char32_t llvm::sys::unicode::SBase = 0xAC00
 
constexpr const uint32_t llvm::sys::unicode::LCount = 19
 
constexpr const uint32_t llvm::sys::unicode::VCount = 21
 
constexpr const uint32_t llvm::sys::unicode::TCount = 28
 
static const GeneratedNamesData llvm::sys::unicode::GeneratedNamesDataTable []