System.SysUtils.TStringBuilder.Replace

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

Delphi

function Replace(const OldChar: Char; const NewChar: Char): TStringBuilder; overload;
function Replace(const OldValue: string; const NewValue: string): TStringBuilder; overload;
function Replace(const OldChar: Char; const NewChar: Char; StartIndex: Integer; Count: Integer): TStringBuilder; overload;
function Replace(const OldValue: string; const NewValue: string; StartIndex: Integer; Count: Integer): TStringBuilder; overload;

C++

TStringBuilder* __fastcall Replace(const System::WideChar OldChar, const System::WideChar NewChar)/* overload */;
TStringBuilder* __fastcall Replace(const System::UnicodeString OldValue, const System::UnicodeString NewValue)/* overload */;
TStringBuilder* __fastcall Replace(const System::WideChar OldChar, const System::WideChar NewChar, int StartIndex, int Count)/* overload */;
TStringBuilder* __fastcall Replace(const System::UnicodeString OldValue, const System::UnicodeString NewValue, int StartIndex, int Count)/* overload */;

プロパティ

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

説明

指定した文字列のすべてのオカレンスを、別の文字列に置き換えます。

Replace を使用して、指定した文字列のすべてのオカレンスを、別の文字列に置き換えます。Replace は、任意の場所の OldCharNewChar に、OldValue 文字列を NewValue 文字列に、指定した部分列内すべての OldCharNewChar に、または、指定した部分列内すべての OldValue 文字列を NewValue 文字列に置き換えます。

関連項目