MCPcopy Create free account
hub / github.com/WheretIB/nullc / GetStringHash

Function GetStringHash

NULLC/StrAlgo.cpp:3–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "StrAlgo.h"
2
3unsigned int GetStringHash(const char *str)
4{
5 unsigned int hash = 5381;
6 int c;
7 while((c = *str++) != 0)
8 hash = ((hash << 5) + hash) + c;
9 return hash;
10}
11
12unsigned int GetStringHash(const char *str, const char *end)
13{

Callers 15

PushNamespaceFunction · 0.70
IsNamespaceFunction · 0.70
NamespaceSelectFunction · 0.70
AddVariableFunction · 0.70
GetFunctionContextFunction · 0.70
AddGetAddressNodeFunction · 0.70
GetCurrentArgumentTypeFunction · 0.70
AddMemberAccessNodeFunction · 0.70
CallAllocationFunctionFunction · 0.70
FunctionAddFunction · 0.70
FunctionParameterFunction · 0.70
FunctionPrototypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected