[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'objpas' (#rtl)

GetResourceStringHash

Return hash value of resource string

Declaration

Source position: objpas.pp line 103

function GetResourceStringHash(

  TableIndex: LongInt;

  StringIndex: LongInt

):LongInt;

Description

GetResourceStringHash returns the hash value associated with the resource string in table TableIndex, with index StringIndex.

The hash value is calculated from the default value of the resource string in a manner that gives the same result as the GNU gettext mechanism. It is stored in the resourcestring tables, so retrieval is faster than actually calculating the hash for each string.

For an example, see Hash.

Errors

If either TableIndex or StringIndex is zero, 0 is returned.

See also

Hash

  

Create GNU Gettext hash value for a string

SetResourceStrings

  

Set values of all resource strings.

GetResourceStringDefaultValue

  

Return default (original) value of resourcestring

GetResourceStringHash

  

Return hash value of resource string

GetResourceStringName

  

Return name of resource string.

ResourceStringTableCount

  

Return number of resource string tables

ResourceStringCount

  

Return number of resource strins in table

The latest version of this document can be found at lazarus-ccr.sourceforge.net.