Changeset 226 for cpp/frams/util/hashtable.cpp
- Timestamp:
- 04/18/14 01:51:17 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/util/hashtable.cpp
r197 r226 5 5 #include "hashtable.h" 6 6 7 int HashTable::hash(const char *s)7 int HashTable::hash(const SString &s) 8 8 { 9 int h=0; 10 char c; 11 while(c=*(s++)) 12 h=31*h+c; 13 return h&0x7fffffff; 9 return s.hash()&0x7fffffff; 14 10 } 15 11
Note: See TracChangeset
for help on using the changeset viewer.