#include <hash.h>
|
static unsigned int | DJBHash (const char *Str, const ::TSize &Len) |
|
Definition at line 1244 of file hash.h.
static unsigned int TStrHashF_DJB::DJBHash |
( |
const char * |
Str, |
|
|
const ::TSize & |
Len |
|
) |
| |
|
inlinestaticprivate |
Definition at line 1246 of file hash.h.
1247 unsigned int hash = 5381;
1248 for(
unsigned int i = 0; i < Len; Str++, i++) {
1249 hash = ((hash << 5) + hash) + (*Str); }
static int TStrHashF_DJB::GetPrimHashCd |
( |
const char * |
p | ) |
|
|
inlinestatic |
Definition at line 1253 of file hash.h.
1254 const char *r = p;
while (*r) { r++; }
1255 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 1259 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 1263 of file hash.h.
1264 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 1256 of file hash.h.
1257 const char *r = p;
while (*r) { r++; }
1258 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 1261 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 1265 of file hash.h.
1266 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: