System.SysUtils.TStringHelper.Insert
Delphi
function Insert(StartIndex: Integer; const Value: string): string;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.SysUtils.pas | System.SysUtils | TStringHelper |
説明
文字列をこの 0 基準の文字列の指定された位置に挿入します。
var
MyString: String;
begin
MyString := 'This a string.';
Writeln(MyString.Insert(5, 'is '));
end.
出力は以下のとおりです。
This is a string.