1#ifndef __DCL_HASH_FUN_H__
2#define __DCL_HASH_FUN_H__ 20110303
4#ifndef __DCL_STRING_H__
10template<
typename TYPE>
18 for( ; *_psz; _psz++) {
19 h = 5 * h + (
unsigned int) *_psz;
27 unsigned int hashKey(
const String& _str)
const
36 unsigned int hashKey(
const wchar_t* _psz)
const
45 unsigned int hashKey(
const wchar_t* _psz)
const
54 for( ; *_psz; _psz++) {
55 h = 5 * h + (
unsigned char) *_psz;
63 unsigned int hashKey(
const ByteString& _str)
const
72 unsigned int hashKey(
const char* _psz)
const
81 unsigned int hashKey(
const char* _psz)
const
99 unsigned int hashKey(
unsigned char _c)
const
164 return (
unsigned int) _n;
171 unsigned int hashKey(
unsigned long long _n)
const
173 return (
unsigned int) _n;
182 return (
unsigned int) (size_t) _p;
191 return (
unsigned int) (size_t) _p;
unsigned int __byte_string_hashKey(const char *_psz)
unsigned int __wide_string_hashKey(const wchar_t *_psz)
DCLCAPI size_t DCLGetNextPrimNumber(size_t _n)
unsigned int hashKey(const ByteString &_str) const
unsigned int hashKey(const String &_str) const
unsigned int hashKey(char _c) const
unsigned int hashKey(const char *_psz) const
unsigned int hashKey(const char *_psz) const
unsigned int hashKey(const void *_p) const
unsigned int hashKey(const wchar_t *_psz) const
unsigned int hashKey(int _n) const
unsigned int hashKey(long _n) const
unsigned int hashKey(long long _n) const
unsigned int hashKey(short _n) const
unsigned int hashKey(unsigned char _c) const
unsigned int hashKey(unsigned int _n) const
unsigned int hashKey(unsigned long _n) const
unsigned int hashKey(unsigned long long _n) const
unsigned int hashKey(unsigned short _n) const
unsigned int hashKey(void *_p) const
unsigned int hashKey(const wchar_t *_psz) const