API Reference > Other Classes > OdString Class > OdString Methods > replace Method > OdString::replace Method (OdString&, OdString&)
OdString::replace Method (OdString&, OdString&)
Syntax
C++
inline int replace(const OdString& oldString, const OdString& newString);
Parameters 
Description 
const OdString& oldString 
[in] Old string.  
const OdString& newString 
[in] New string. 

Returns the number of characters or strings replaced.

Replaces all occurrences of the specified string in this String object. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.