System.AnsiStrings.AnsiPos
Delphi
function AnsiPos(const Substr, S: AnsiString): Integer;
C++
extern DELPHI_PACKAGE int __fastcall AnsiPos(const System::AnsiString Substr, const System::AnsiString S)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
Description
Get index value of first character in substring that occurs in string.
AnsiPos returns the index value of the first character in a specified substring that occurs in a given string. It operates similarly to the System.Pos function, but supports multi-byte character strings (MBCS) AnsiStrings.