MCPcopy Create free account
hub / github.com/ddnet/ddnet / str_quickhash

Function str_quickhash

src/base/str.cpp:899–905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

897}
898
899unsigned str_quickhash(const char *str)
900{
901 unsigned hash = 5381;
902 for(; *str; str++)
903 hash = ((hash << 5) + hash) + (*str); /* hash * 33 + c */
904 return hash;
905}
906
907int str_utf8_encode(char *ptr, int chr)
908{

Callers 12

LocalizeFunction · 0.85
AddStringMethod · 0.85
FindStringMethod · 0.85
operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85
GetFriendStateMethod · 0.85
IsFriendMethod · 0.85
AddFriendMethod · 0.85
RemoveFriendMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected