Moved hash function from StringUtils into player, there is no
other use of that function.
This commit is contained in:
@@ -665,19 +665,6 @@ namespace StringUtils
|
||||
return output.str();
|
||||
} // encodeToHtmlEntities
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
unsigned int simpleHash(const char* input)
|
||||
{
|
||||
int hash = 0;
|
||||
for (int n=0; input[n] != 0; n++)
|
||||
{
|
||||
hash += (hash << (hash & 0xF)) ^ input[n];
|
||||
}
|
||||
|
||||
return hash;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
/** Converts a version string (in the form of 'X.Y.Za-rcU' into an
|
||||
* integer number.
|
||||
|
||||
Reference in New Issue
Block a user