Unit:StrUtils
function RightStr(const AText: AnsiString; const ACount: Integer): AnsiString;
overload;
function RightStr(const AText: WideString; const ACount: Integer): WideString;
overload;
C++ syntax:
extern PACKAGE AnsiString __fastcall RightStr(const AnsiString AText, int ACount);
extern PACKAGE WideString __fastcall RightStr(const WideString AText, int ACount);
Description
RightStr returns the trailing characters of AText up to a length of ACount characters. Thus, for example, if AText is the string "Programmer" and ACount is 7, RightStr returns the string "grammer".
Note: If AText is an AnsiString and the current locale uses multi-byte characters, RightStr may return more than ACount bytes. To return a specific number of bytes, use RightBStr.