TStringHashList.HashOf function
Calculates the hash value for the specified String.
Declaration
function HashOf(const Key: string): CardinalDescription
HashOf is a
Cardinal function used to calculate and
return the 32-bit hash value for the String in Key. HashOf examines all bytes
values in Key (in reverse order). When CaseSensitive is set to
False,
the characters are converted to their uppercase equivalent for use in the
hashing algorithm. Range and overflow checking are disabled in the HashOf
method.
HashOf is used in the Add method to calculate the HashValue stored in the PStringHashItem entry for the hash item. It is also used in the Find method to get the hash value to locate in the storage for the List.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
