System.AnsiStrings.AnsiStrPos
Delphi
function AnsiStrPos(Str, SubStr: PAnsiChar): PAnsiChar;
C++
extern DELPHI_PACKAGE char * __fastcall AnsiStrPos(char * Str, char * SubStr)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
Description
Returns a pointer to the first occurrence of a substring.
Call AnsiStrPos to locate the first occurrence of SubStr in Str. If SubStr does not occur in Str, AnsiStrPos returns nil (Delphi) or NULL (C++).
Unlike the StrPos function, AnsiStrPos works with multi-byte characters sets (MBCS).