| 1 | #include "StrAlgo.h" |
| 2 | |
| 3 | unsigned int GetStringHash(const char *str) |
| 4 | { |
| 5 | unsigned int hash = 5381; |
| 6 | int c; |
| 7 | while((c = *str++) != 0) |
| 8 | hash = ((hash << 5) + hash) + c; |
| 9 | return hash; |
| 10 | } |
| 11 | |
| 12 | unsigned int GetStringHash(const char *str, const char *end) |
| 13 | { |
no outgoing calls
no test coverage detected