Uses a mapping array to convert integers into their corresponding string identifiers.
function IntToIdent(Int: Longint; var Ident: string; const Map: array of TIdentMapEntry): Boolean;
Boolean IntToIdent(Longint Int, AnsiString Ident, const array of TIdentMapEntry Map);
IntToIdent provides the underlying translation from string identifiers to integers that occurs, for example, when you register a mapping using the RegisterIntegerConsts procedure in Delphi.
Int is the integer to translate.
Ident returns the corresponding string identifier.
Map is 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 translate and a Name field, which is the corresponding string identifier.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|