RAD Studio VCL Reference
SysUtils.AnsiStrRScan Function

Returns a pointer to the last occurrence of a specified character in a specified string.

function AnsiStrRScan(Str: PAnsiChar; Chr: AnsiChar): PAnsiChar; overload;
function AnsiStrRScan(Str: PWideChar; Chr: WideChar): PWideChar;
PAnsiChar AnsiStrRScan(PAnsiChar Str, AnsiChar Chr);
PWideChar AnsiStrRScan(PWideChar Str, WideChar Chr);

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

Unlike the StrRScan function, AnsiStrRScan works with multi-byte character systems (MBCS). 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!