| 50 | } // namespace {} |
| 51 | |
| 52 | U32 _StringTable::hashString(const char* str) |
| 53 | { |
| 54 | if (sgInitTable) |
| 55 | initTolowerTable(); |
| 56 | |
| 57 | U32 ret = 0; |
| 58 | char c; |
| 59 | while((c = *str++) != 0) { |
| 60 | ret <<= 1; |
| 61 | ret ^= sgHashTable[c]; |
| 62 | } |
| 63 | return ret; |
| 64 | } |
| 65 | |
| 66 | U32 _StringTable::hashStringn(const char* str, S32 len) |
| 67 | { |
no test coverage detected