RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.StrRScan Function

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

Pascal
function StrRScan(const Str: PChar; Chr: Char): PChar;
C++
const char * StrRScan(const const char * Str, Char Chr);

SysUtils

StrRScan returns a pointer to the last occurrence of Chr in Str.  

If Chr does not occur in Str, StrRScan returns nil (Delphi) or NULL (C++). The null terminator is considered to be part of the string.

Note: If the source string contains international characters, use AnsiStrRScan instead.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!