MCPcopy Index your code
hub / github.com/MapServer/MapServer / hash

Function hash

maphash.c:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35MS_CVSID("$Id$")
36
37static unsigned hash(const char *key)
38{
39 unsigned hashval;
40
41 for(hashval=0; *key!='\0'; key++)
42 hashval = tolower(*key) + 31 * hashval;
43
44 return(hashval % MS_HASHSIZE);
45}
46
47hashTableObj *msCreateHashTable()
48{

Callers 4

msInsertHashTableFunction · 0.85
msLookupHashTableFunction · 0.85
msRemoveHashTableFunction · 0.85
msNextKeyFromHashTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected