System.StrUtils.RightStr

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function RightStr(const AText: AnsiString; const ACount: Integer): AnsiString; overload;
function RightStr(const AText: string; const ACount: Integer): string; overload;

C++

extern DELPHI_PACKAGE System::AnsiString __fastcall RightStr _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (const System::AnsiString AText, const int ACount)/* overload */;

プロパティ

種類 可視性 ソース ユニット
function public
System.StrUtils.pas
System.StrUtils.hpp
System.StrUtils System.StrUtils

説明

文字列の最後に表示される指定された長さの部分文字列を返します。

RightStr 関数は,AText の末尾から ACount 以内の文字数を返します。したがって,たとえば,AText が「Programmer」という文字列で,ACount が 7 であるとすると,RightStr は「grammer」という文字列を返します。

メモ:  AText が AnsiString で,現在のロケールがマルチバイトの文字列を使用している場合,RightStr は ACount 以上のバイト数を返す場合があります。特定のバイト数を返すには,RightBStr 関数を使用してください。

関連項目