Internet Direct (Indy) Version 9.0.1 Beta
IndyPos
Specifies the Pos function handler for single- or multi-byte character sets.

IndyPos: TPosProc  = nil;
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.