help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

GetResourceStringHash

Return hash value of resource string

Declaration

Source position: objpas.pp line 89

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

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505