System.AnsiStrings.TextPos
Delphi
function TextPos(Str, SubStr: PAnsiChar): PAnsiChar;
C++
extern DELPHI_PACKAGE char * __fastcall TextPos(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 in a string. TextPos is case-insensitive.
TextPos returns a pointer to the first occurrence of SubStr in Str. If SubStr does not occur in Str, TextPos returns nil (Delphi) or NULL (C++).
Note: TextPos behaves as StrPos, except that it is case-insensitive.