00001
00002
00003
00004
00005
00006
00007 #ifndef __WVHASH_H
00008 #define __WVHASH_H
00009
00010 #include "wvstring.h"
00011
00012
00013 unsigned WvHash(WvStringParm s);
00014 unsigned WvHash(const char *s);
00015 unsigned WvHash(const int &i);
00016
00017
00018
00019 template <class K>
00020 struct OpEqComp
00021 {
00022 static bool compare(const K *key1, const K *key2)
00023 { return *key1 == *key2; }
00024 };
00025
00026
00027
00028 template <class K>
00029 struct StrCaseComp
00030 {
00031 static bool compare(const K *key1, const K *key2)
00032 { return strcasecmp(*key1, *key2) == 0; }
00033 };
00034
00035 #endif // __WVHASH_H