Skip to content

IdentToInt

Looks up an integer value in a integer-to-identifier map list.

Declaration

Source position: classesh.inc line 3075

function IdentToInt(const Ident: string; out Int: LongInt; 
                   const Map: Array of TIdentMapEntry = record
public
  Value : Integer;
  Name : string;
end
)
                    : Boolean;

Description

IdentToInt searches Map for an entry whose Name field matches Ident and returns the corresponding integer value in Int. If a match was found, the function returns True, otherwise, False is returned.

See also

Name Description
TIdentToInt Callback for converting identifiers to integers.
TIntToIdent Callback for converting integers to identifiers.
IntToIdent Looks up an identifier for an integer value in a identifier-to-integer map list.
TIdentMapEntry Record used when associating names with integer values.