HashString
The HashString function calculates a hash value from a specified string.
Syntax
Copy Code | |
---|---|
int HashString( string input, int multiplier, int maxValue, bool caseSensitive ); |
Parameters
Return Values
Returns a 32-bit integer. The return value is calculated by iterating through each character in the string specified by input, multiplying the byte value of the character by the value specified by multiplier, and then accumulating the product of this multiplication in a running total. After all of the characters in the string have been processed, the value returned is the total value specified by maxValue (that is, total % maxValue).