Map a string to a number.

Map a string to a number. The function delivers the same IDs for strings as are calculated with Import of XML files in the dummy nodes.

To ascertain this number the function hashpjw developed by P.J. Weinberg will be used, but which, of course, cannot solve the (insolveable) problem of the countability of strings and which cannot produce a one-to-one arrangement of strings to numbers, but which still offers a ulitisable approximation.

To convert number strings into numbers use the function val.

Name Type Default Description
Return int   Hash ID of the string
str char* - Character string the hash ID of which is to be defined

Since
Version 1.2.2 (12 October 2005)

Available
priint:comet InDesign® Plug-Ins, comet_pdf, Illustrator

Alphabetic index HTML hierarchy of classes or Java