System.SysUtils.TStringHelper.Copy
Delphi
class function Copy(const Str: string): string; inline; static;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.SysUtils.pas | System.SysUtils | TStringHelper |
説明
0 基準の指定された文字列を、コピーして返します。
Copy は、Str
パラメータで指定された 0 基準の文字列をコピーし、それを返します。Copy は、static クラス関数です。
var
MyString: String;
begin
MyString := 'This is a string.';
Writeln(String.Copy(MyString));
end.
出力は以下のとおりです。
This is a string.