diff options
Diffstat (limited to 'src/hash.cpp')
-rw-r--r-- | src/hash.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/hash.cpp b/src/hash.cpp index de925a7..dfd5d80 100644 --- a/src/hash.cpp +++ b/src/hash.cpp | |||
@@ -67,22 +67,3 @@ template<> bool Bu::__cmpHashKeys<char *>( char * const &a, char * const &b ) | |||
67 | return false; | 67 | return false; |
68 | } | 68 | } |
69 | 69 | ||
70 | template<> uint32_t Bu::__calcHashCode<std::string>( const std::string &k ) | ||
71 | { | ||
72 | std::string::size_type j, sz = k.size(); | ||
73 | const char *s = k.c_str(); | ||
74 | |||
75 | unsigned long int nPos = 0; | ||
76 | for( j = 0; j < sz; j++, s++ ) | ||
77 | { | ||
78 | nPos = *s + (nPos << 6) + (nPos << 16) - nPos; | ||
79 | } | ||
80 | |||
81 | return nPos; | ||
82 | } | ||
83 | |||
84 | template<> bool Bu::__cmpHashKeys<std::string>( const std::string &a, const std::string &b ) | ||
85 | { | ||
86 | return a == b; | ||
87 | } | ||
88 | |||