RAD Studio VCL Reference
|
Replaces occurrences of a substring within a string.
function WideStringReplace(const S: Widestring; const OldPattern: Widestring; const NewPattern: Widestring; Flags: TReplaceFlags): Widestring;
BSTR WideStringReplace(const BSTR S, const BSTR OldPattern, const BSTR NewPattern, TReplaceFlags Flags);
WideStringReplace replaces occurrences of the substring specified by OldPattern with the substring specified by NewPattern in the string S.
Flags is a TReplaceFlags type parameter. If rfIgnoreCase is set, the replacement is case-sensitive; otherwise case is ignored. If rfReplaceAll is on, all occurrences of OldPattern are replaced; if not, only the first occurrence is replaced.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|