#include <hash.h>
|
static unsigned int | DJBHash (const char *Str, const ::TSize &Len) |
|
Definition at line 1172 of file hash.h.
static unsigned int TStrHashF_DJB::DJBHash |
( |
const char * |
Str, |
|
|
const ::TSize & |
Len |
|
) |
| |
|
inlinestaticprivate |
Definition at line 1174 of file hash.h.
1175 unsigned int hash = 5381;
1176 for(
unsigned int i = 0; i < Len; Str++, i++) {
1177 hash = ((hash << 5) + hash) + (*Str); }
static int TStrHashF_DJB::GetPrimHashCd |
( |
const char * |
p | ) |
|
|
inlinestatic |
Definition at line 1181 of file hash.h.
1182 const char *r = p;
while (*r) { r++; }
1183 return (
int)
DJBHash((
const char *) p, r - p) & 0x7fffffff; }
static unsigned int DJBHash(const char *Str, const ::TSize &Len)
static int TStrHashF_DJB::GetPrimHashCd |
( |
const TStr & |
s | ) |
|
|
inlinestatic |
Definition at line 1187 of file hash.h.
static int GetPrimHashCd(const char *p)
static int TStrHashF_DJB::GetPrimHashCd |
( |
const char * |
p, |
|
|
const ::TSize & |
Len |
|
) |
| |
|
inlinestatic |
Definition at line 1191 of file hash.h.
1192 return (
int)
DJBHash((
const char *) p, Len) & 0x7fffffff; }
static unsigned int DJBHash(const char *Str, const ::TSize &Len)
static int TStrHashF_DJB::GetSecHashCd |
( |
const char * |
p | ) |
|
|
inlinestatic |
Definition at line 1184 of file hash.h.
1185 const char *r = p;
while (*r) { r++; }
1186 return (
int)
DJBHash((
const char *) p, r - p) & 0x7fffffff; }
static unsigned int DJBHash(const char *Str, const ::TSize &Len)
static int TStrHashF_DJB::GetSecHashCd |
( |
const TStr & |
s | ) |
|
|
inlinestatic |
Definition at line 1189 of file hash.h.
static int GetSecHashCd(const char *p)
static int TStrHashF_DJB::GetSecHashCd |
( |
const char * |
p, |
|
|
const ::TSize & |
Len |
|
) |
| |
|
inlinestatic |
Definition at line 1193 of file hash.h.
1194 return (
int)
DJBHash((
const char *) p, Len) & 0x7fffffff; }
static unsigned int DJBHash(const char *Str, const ::TSize &Len)
The documentation for this class was generated from the following file: