Returns a pointer to the first occurrence of a substring.
function AnsiStrPos(Str: PAnsiChar; SubStr: PAnsiChar): PAnsiChar; overload; function AnsiStrPos(Str: PWideChar; SubStr: PWideChar): PWideChar; overload;
PAnsiChar AnsiStrPos(PAnsiChar Str, PAnsiChar SubStr); PWideChar AnsiStrPos(PWideChar Str, PWideChar SubStr);
SysUtils
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).
AnsiPos
StrPos