System.SysUtils.TStringBuilder.Replace

De RAD Studio API Documentation
Aller à : navigation, rechercher

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 */;

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TStringBuilder

Description

Remplace toutes les occurrences d'une chaîne spécifiée par une autre chaîne.

Utilisez Replace pour remplacer toutes les occurrences d'une chaîne spécifiée par une autre chaîne. Replace peut remplacer un OldChar unique par un NewChar n'importe où, une chaîne OldValue par une chaîne NewValue, un OldChar par un NewChar n'importe où dans une sous-chaîne spécifiée, ou une chaîne OldValue par une chaîne NewValue n'importe où dans une sous-chaîne spécifiée.

Voir aussi