NAME

::dmh::hash5 - map a string to an integer

SYNOPSIS

package require dmh
::dmh::hash5 string

DESCRIPTION

This command is used to map a character string to a 5 digit or less integer. The hash code result can be used as a starting value for a database key or handle for the string value. Typically, a query will be made to make sure that the value is unique.

The command is part of the dmh package and can be imported from the namespace dmh.

EXAMPLE

package require dmh
dmh_import
set code [hash5 $my_string]

AUTHOR

Hume Integration Software, www.hume.com

SEE ALSO

string

KEYWORDS

hash