Specifies the Pos function handler for single- or multi-byte character sets.
IndyPos: TPosProc = nil;
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 Indy library, 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.
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.