LLVM  10.0.0svn
Functions
DJB.cpp File Reference
#include "llvm/Support/DJB.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/ConvertUTF.h"
#include "llvm/Support/Unicode.h"
Include dependency graph for DJB.cpp:

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 Optional< uint32_tfastCaseFoldingDjbHash (StringRef Buffer, uint32_t H)
 

Function Documentation

◆ chopOneUTF32()

static UTF32 chopOneUTF32 ( StringRef Buffer)
static

◆ fastCaseFoldingDjbHash()

static Optional<uint32_t> fastCaseFoldingDjbHash ( StringRef  Buffer,
uint32_t  H 
)
static

Definition at line 60 of file DJB.cpp.

References C, H, and llvm::None.

Referenced by llvm::caseFoldingDjbHash().

◆ foldCharDwarf()

static UTF32 foldCharDwarf ( UTF32  C)
static

Definition at line 51 of file DJB.cpp.

References llvm::sys::unicode::foldCharSimple().

Referenced by llvm::caseFoldingDjbHash().

◆ toUTF8()

static StringRef toUTF8 ( UTF32  C,
MutableArrayRef< UTF8 Storage 
)
static