LLVM 22.0.0git
DJB.cpp File Reference

Go to the source code of this file.

Functions

static UTF32 chopOneUTF32 (StringRef &Buffer)
static StringRef toUTF8 (UTF32 C, MutableArrayRef< UTF8 > Storage)
static UTF32 foldCharDwarf (UTF32 C)
static std::optional< uint32_tfastCaseFoldingDjbHash (StringRef Buffer, uint32_t H)

Function Documentation

◆ chopOneUTF32()

◆ fastCaseFoldingDjbHash()

std::optional< uint32_t > fastCaseFoldingDjbHash ( StringRef Buffer,
uint32_t H )
static

Definition at line 60 of file DJB.cpp.

References llvm::CallingConv::C, and H.

Referenced by llvm::caseFoldingDjbHash().

◆ foldCharDwarf()

UTF32 foldCharDwarf ( UTF32 C)
static

Definition at line 51 of file DJB.cpp.

References llvm::CallingConv::C, and llvm::sys::unicode::foldCharSimple().

Referenced by llvm::caseFoldingDjbHash().

◆ toUTF8()