| 66 | } |
| 67 | |
| 68 | U32 _StringTable::hashStringn(const char* str, S32 len) |
| 69 | { |
| 70 | if (sgInitTable) |
| 71 | initTolowerTable(); |
| 72 | |
| 73 | U32 ret = 0; |
| 74 | char c; |
| 75 | while((c = *str++) != 0 && len--) { |
| 76 | ret <<= 1; |
| 77 | ret ^= sgHashTable[static_cast<U8>(c)]; |
| 78 | } |
| 79 | return ret; |
| 80 | } |
| 81 | |
| 82 | //-------------------------------------- |
| 83 | _StringTable::_StringTable() |
nothing calls this directly
no test coverage detected