RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideStrUtils.WideReplaceText Function

Replaces all occurrences of a substring in a WideString.

Pascal
function WideReplaceText(const AText: WideString; const AFromText: WideString; const AToText: WideString): WideString;
C++
BSTR WideReplaceText(const BSTR AText, const BSTR AFromText, const BSTR AToText);

WideReplaceText replaces all occurrences of a substring in a WideString with another substring without case sensitivity.  

Use WideReplaceStr to make this replacement with case sensitivity.

Note: Recursion substring replacement is not supported.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!