C++
Adesk::Int32 replace( const wchar_t* pwszOld, const wchar_t* pwszNew );
Description
Replaces instances of a substring with instances of a new string.
Parameters
Parameters | Description |
---|---|
pwszOld | Input pointer to a string containing the string to be replaced by pwszNew |
pwszNew | Input pointer to a string containing the string replacing pwszOld |
Returns
Number of replaced instances of the substring. Zero, if the string is not changed.
Links
Previous Declaration
AutoCAD 2017 through AutoCAD 2024
ACBASE_PORT int replace(const wchar_t* pwszOld, const wchar_t* pwszNew);
History
AutoCAD 2025
Function now returns Adesk::Int32 instead of int.