Uses a mapping array to convert string identifiers into their corresponding integer values.
function IdentToInt(const Ident: string; var Int: Longint; const Map: array of TIdentMapEntry): Boolean;
Boolean IdentToInt(const AnsiString Ident, Longint Int, const array of TIdentMapEntry Map);
Classes
IdentToInt provides the underlying translation from string identifiers to integers that occurs, for example, when you register a mapping using the RegisterIntegerConsts procedure in Delphi.
Ident is the string identifier to translate.
Int returns the corresponding integer value.
Mapis an array of records (Delphi) or structs (C++) that describe the mapping. Each member of the array contains a Value field, which is the integer value to return and a Name field, which is the string identifier to translate.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|