MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / hashString

Method hashString

engine/source/string/stringTable.cc:52–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50} // namespace {}
51
52U32 _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
66U32 _StringTable::hashStringn(const char* str, S32 len)
67{

Callers 4

onAddMethod · 0.80
createTagMethod · 0.80
renameTagMethod · 0.80
getTagIdMethod · 0.80

Calls 1

initTolowerTableFunction · 0.70

Tested by

no test coverage detected