Indy 9
IndyPos
Unit: IdGlobal
Specifies the Pos function handler for single- or multi-byte character sets.
IndyPos: TPosProc  = nil;
Unit
IdGlobal
Description
IndyPos is a unit global TPosProc variable that determines the function used for single-byte and multi-byte equivalents of the RTL Pos function. IndyPos is assigned the initialization section of the IdGlobal.pas unit, and will contain a pointer to the function used for run-time support.

For single-byte character sets, where the leading byte is #0 (Decimal 0), IndyPos will use the address of SBPos. SBPos implements the Pos function hidden by Object Pascal "compiler magic".

For multi-byte character sets, IndyPos will use the address of AnsiPos.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.