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