System.AnsiStrings.RightStr
Delphi
function RightStr(const AText: AnsiString; const ACount: Integer): AnsiString; overload;
C++
extern DELPHI_PACKAGE System::AnsiString __fastcall RightStr(const System::AnsiString AText, const int ACount)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
Description
Returns the substring of a specified length that appears at the end of a string.
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.