System.AnsiStrings.StrRScan

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function StrRScan(const Str: PAnsiChar; Chr: AnsiChar): PAnsiChar;

C++

extern DELPHI_PACKAGE char * __fastcall StrRScan(const char * Str, char Chr)/* 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 last occurrence of a specified character in a string.

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

If Chr does not occur in Str, StrRScan returns nil (Object Pascal) 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.

See Also

Code Examples