LLVM  8.0.1
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 uint32_t caseFoldingDjbHashCharSlow (StringRef &Buffer, uint32_t H)
 

Function Documentation

◆ caseFoldingDjbHashCharSlow()

static uint32_t caseFoldingDjbHashCharSlow ( StringRef Buffer,
uint32_t  H 
)
static

Definition at line 61 of file DJB.cpp.

References C, chopOneUTF32(), llvm::djbHash(), foldCharDwarf(), and toUTF8().

Referenced by llvm::caseFoldingDjbHash().

◆ chopOneUTF32()

static UTF32 chopOneUTF32 ( StringRef Buffer)
static

◆ foldCharDwarf()

static UTF32 foldCharDwarf ( UTF32  C)
static

Definition at line 52 of file DJB.cpp.

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

Referenced by caseFoldingDjbHashCharSlow().

◆ toUTF8()

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