From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function AnsiStrScan(Str: PAnsiChar; Chr: AnsiChar): PAnsiChar;
function AnsiStrScan(Str: PWideChar; Chr: WideChar): PWideChar;


extern DELPHI_PACKAGE char * __fastcall AnsiStrScan _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (char * Str, char Chr)/* overload */;


Type Visibility Source Unit Parent
function public
System.SysUtils System.SysUtils


Warning: Ansi version of AnsiStrScan is deprecated. Please use AnsiStrings unit.

Returns a pointer to the first occurrence of a character in a string.

Call AnsiStrScan to obtain a pointer to the first occurrence of Chr in Str. If Chr does not occur in Str, AnsiStrScan returns nil (Object Pascal) or NULL (C++). The null terminator is considered to be part of the string.

Unlike the StrScan function, AnsiStrScan works with multi-byte character systems (MBCS).

See Also