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 */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
説明
文字列の末尾から始まる指定の長さの部分文字列を返します。
RightStr は、AText の末尾から始まる ACount 文字の長さの文字列を返します。したがって、たとえば、AText が "Programmer" という文字列で ACount が 7 の場合、RightStr は "grammer" という文字列を返します。
メモ: AText が AnsiString でかつ現在のロケールでマルチバイト文字が使用されている場合、RightStr は ACount バイトより長い文字列を返す可能性があります。特定のバイト数の文字列を返すには、RightBStr を使用します。