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