Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buggins/coolreader
/ calcStringHash
Function
calcStringHash
crengine/src/lvstring.cpp:1081–1089 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1079
}
1080
1081
lUInt32 calcStringHash( const lChar16 * s )
1082
{
1083
lUInt32 a = 2166136261u;
1084
while (*s)
1085
{
1086
a = a * 16777619 ^ (*s++);
1087
}
1088
return a;
1089
}
1090
1091
static const char * str_hash_magic=
"STRS"
;
1092
Callers
3
find
Method · 0.85
reHash
Method · 0.85
add
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected